Month: February 2025

Just another Tech site

PowerShell Function to Set-RegistryValueForAllUsers

Below is a PowerShell function that sets a registry value for all users on a Windows machine. This function will iterate through all user profiles and set the specified registry value. function Set-RegistryValueForAllUsers { param ( [Parameter(Mandatory = $true)] [string]$RegistryPath, [Parameter(Mandatory = $true)] [string]$ValueName, [Parameter(Mandatory = $true)] [string]$ValueData, [Parameter(Mandatory = $false)] [Microsoft.Win32.RegistryValueKind]$ValueType = [Microsoft.Win32.RegistryValueKind]::String )…
Read more

PowerShell to set the registry for all users

Here is a PowerShell script that sets a registry value for all users on a Windows machine. This script modifies the registry under the HKEY_USERS hive, which contains subkeys for each user profile. # Define the registry path and value $registryPath = “Software\YourApp\Settings” $valueName = “YourSetting” $valueData = “YourValue” # Get all user SIDs $userSIDs…
Read more

Registry – Windows 11 move Start Menu to left

Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] “TaskbarAl”=dword:00000000 Some people are used to legacy way of previous OS version’s, and this is an easy way to move from the center to the left the Start Menu.    

PowerShell – Stop process before Service

## Stop process before Service # Define the process name and service name $processName = “YourProcessName” $serviceName = “YourServiceName” # Stop the process $process = Get-Process -Name $processName -ErrorAction SilentlyContinue if ($process) { Stop-Process -Name $processName -Force Write-Output “Process ‘$processName’ has been stopped.” } else { Write-Output “Process ‘$processName’ is not running.” } # Stop…
Read more

Disable Copilot

Here is the registry settings to disable Copilot Windows Registry Editor Version 5.00 ; Disable Copilot button on taskbar [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced] “ShowCopilotButton”=dword:00000000 ; Disable Copilot service for current user [HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\WindowsCopilot] “TurnOffWindowsCopilot”=dword:00000001 ; Disable Copilot service for all users [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsCopilot] “TurnOffWindowsCopilot”=dword:00000001 or you can download the registry setting here   Disable Copilot

PowerShell – Working on a template build – rough draft

I am working on updating a process for installing software…I like the audio process for letting me know where in the code I am at in the process. Rough draft see if I can figure a way to streamline this process. #################################################################### ## Write-Host “`n” Write-Host ” ————————————————- ” -ForegroundColor Cyan Write-Host ” | |…
Read more