# List Network Connections Get-NetConnectionProfile # Set Network Profile to Private Set-NetConnectionProfile -InterfaceAlias "YourNetworkNameOrAlias" -NetworkCategory Private # Add user cmd net user /ADD wmic UserAccount where Name='' set PasswordExpires=FALSE # Add user Powershell New-LocalUser Set-LocalUser -Name "" -PasswordNeverExpires $True # Add user to the Admin Group net localgroup Administrators /ADD # List printer Get-printer # Print help rundll32 printui.dll PrintUIEntry # Share printer Set-printer -name "My Printer" -shared $true -sharename "My Shared Printer" # Printer Property rundll32 printui.dll PrintUIEntry /n "My Printer" /p # Set Display Scaling Install-Module DisplayConfig Set-DisplayScale -DisplayId 1 -Scale 150 # Set the execution policy to unrestricted to run the script Set-ExecutionPolicy unrestricted -Scope CurrentUser # Wallpaper Set-ItemProperty -path "HKCU:\Control Panel\Desktop" -name WallPaper -value "C:\Path\To\Your\Image.jpg" RUNDLL32.EXE USER32.DLL,UpdatePerUserSystemParameters ,1 ,True # Black Wallpaper Set-ItemProperty -Path "HKCU:\Control Panel\Desktop" -Name WallPaper -Value '' Set-ItemProperty -Path "HKCU:\Control Panel\Colors" -Name Background -Value "0 0 0" # Winget Install-PackageProvider -Name NuGet -Force Install-Module -Name Microsoft.WinGet.Client -Force -Repository PSGallery Repair-WinGetPackageManager -AllUsers # Uninstall apps winget list winget uninstall AppName # Remove OneDrive winget uninstall Microsoft.OneDrive # Rename PC Rename-Computer -NewName MYPC # Sleep timeout powercfg /change monitor-timeout-ac 0 powercfg /change standby-timeout-ac 0 # Change Volume name label c: OS # Dispart custom script diskpart /s d:\diskpart.txt # Change Username Set-LocalUser -Name OldName -NewName NewName # Stop Services net start Stop-Service -Name "windows update" Set-Service -Name "[ServiceName]" -StartupType Disabled # Get Screen Resolution Get-CimInstance -ClassName Win32_VideoController | Select-Object VideoModeDescription # Region VietNam Set-WinHomeLocation -GeoID 251 # Change Regional Format (Date/Time/Currency) Set-Culture # Change System Locale (Non-Unicode Programs) Set-WinSystemLocale # Open Regional Settings GUI CMD control.exe intl.cpl,,2 # Timezone +7 Get-TimeZone -ListAvailable Set-TimeZone -Name "SE Asia Standard Time" # Date Format reg add "HKCU\Control Panel\International" /V sShortDate /T REG_SZ /D "dd/MM/yyyy" /F Set-ItemProperty -Path 'HKCU:\Control Panel\International' -Name 'sShortDate' -Value 'dd/MM/yyyy' # Update user settings RUNDLL32 user32.dll UpdatePerUserSystemParameters # Control Printers Shell:PrintersFolder Control /name Microsoft.Printers # Disable UAC Set-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System' -Name EnableLUA -Value 0 # Dark Mode # Set System and Apps to Dark Mode (Value 0 = Dark, 1 = Light) $regPath = "HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\Themes\Personalize" Set-ItemProperty -Path $regPath -Name SystemUsesLightTheme -Value 0 -Type Dword -Force Set-ItemProperty -Path $regPath -Name AppsUseLightTheme -Value 0 -Type Dword -Force # Stop Process Stop-Process -ProcessName explorer -Force Start-Process explorer.exe # Explorer This PC reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v LaunchTo /t REG_DWORD /d 1 /f Set-ItemProperty -Path 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced' -Name 'LaunchTo' -Value 1 # Explorer shows Extensions reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideFileExt" -Value 0 # Certificates Manger certmgr.msc # Debloat irm christitus.com/win | iex iwr -useb https://christitus.com/win | iex # Diskpart create vhd create vdisk file="e:\mydisk.vhd" maximum=100000 type=expandable attach vdisk create part pri format fs=ntfs quick label=DATA ass # Disk Management diskmgmt.msc # Show file extension reg add HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v HideFileExt /t REG_DWORD /d 0 /f