Complete collection of system scripts, audits, and power-user commands.
Before running commands, you must ensure you have full administrative permissions. Use any of these methods:
powershell, and check the box "Create this task with administrative privileges".By default, Windows blocks script files. Run this to allow locally created .ps1 files to execute on your machine.
Set-ExecutionPolicy RemoteSigned -Scope CurrentUserTo run a file, move PowerShell to that folder first.
Example: If your script is named setup.ps1 in a folder called "Work", use the steps below.
cd "C:\Users\YourName\Desktop\Work"
.\setup.ps1Scans every registry path and creates a neat file called All_Apps_List.txt on your desktop.
Get-ItemProperty HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*, HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*, HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\* | Select-Object DisplayName, DisplayVersion | Sort-Object DisplayName > $env:USERPROFILE\Desktop\All_Apps_List.txtOpens an interactive GUI to debloat Windows and install essential apps instantly.
irm christitus.com/win | iexInstantly empties the trash for all users on all drives without asking for confirmation.
Clear-RecycleBin -Force -ErrorAction SilentlyContinueFixes corrupted Windows system files and repairs the internal recovery image.
dism /online /cleanup-image /restorehealth; sfc /scannowFollow these steps to save your commands as a permanent tool:
CleanMyPC.ps1).