CMD
CMD
secpol.msc
gpedit.msc
lusrmgr.msc
cmd
netsh advfirewall set allprofiles state off
sc stop WaaSMedicSvc
sc stop McpManagementService
sc stop NPSMSvc
sc stop NPSMSvc_1283f2
sc start wuauserv
sc config wuauserv start= auto
sc config wuauserv start= auto
powershell -command "Start-Process powershell -ArgumentList '-NoProfile -Command &
{Get-WindowsUpdate -AcceptAll -Install -AutoReboot}' -Verb RunAs"
mkdir C:\DriverBackup
dism /online /export-driver /destination:C:\DriverBackup
dism /online /add-driver /driver:C:\DriverBackup /recurse
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\
StartupApproved
Get-WinEvent -FilterHashtable @{LogName='System'; Level=2; StartTime=$startTime;
EndTime=$endTime}
winget install VideoLAN.VLC
sfc /scannow
Dism /Online /Cleanup-Image /RestoreHealth
sfc /scannow
@Nurse@2024@
shutdown /r /o /f /t 0
mkdir C:\Tools
Expand-Archive -Path "<ZIP_PATH>\Handle.zip" -DestinationPath C:\Tools
cd C:\Tools
handle "F:\WindowsImageBackup\ANPC\Backup 2024-08-16 214054\3313b337-6925-44c0-
b904-8151e52dbb0c.vhdx"
Mount-VHD -Path "F:\WindowsImageBackup\ANPC\Backup 2024-08-16 214054\3313b337-6925-
44c0-b904-8151e52dbb0c.vhdx" -PassThru | Get-Disk | Set-Partition -NewDriveLetter G
cd C:\Tools
.\handle.exe "F:\WindowsImageBackup\ANPC\Backup 2024-08-16 214054\3313b337-6925-
44c0-b904-8151e52dbb0c.vhdx"
***********************************
DISM.exe /Online /Cleanup-image /StartComponentCleanup
sfc /scannow
******************************************************
# Grant full control to the current user
Icacls "C:\Windows\WinSxS\Temp" /grant Admin:(OI)(CI)F /T
***********************************************
shutdown /r /o /f /t 0
C:\ProgramData\Microsoft\Windows\Start Menu\Programs
C:\Users\ANPC\Apps
powercfg /energy
fixboot c:
Get-WindowsDriver -Online
takeown /f C:\Windows /r /d y
& shutdown /r /t 0
ipconfig /flushdns & ipconfig /registerdns & ipconfig /release & ipconfig /renew &
netsh int ip reset & netsh winsock reset & exit
sfc/scannow
@echo off
echo Checking if image is mounted to C:\Mount\sources\Install.wim...
if exist "C:\Mount\sources\Install.wim" (
echo Image is mounted at C:\Mount\sources\Install.wim
) else (
echo Image is not mounted at C:\Mount\sources\Install.wim
exit /b
)
to fix run
sfc /SCANNOW
Nurse@2025
Akomuna@2024
xVqW3U-Lf@nD6jM
Stop Services:
net stop wuauserv
net stop cryptSvc
net stop bits
net stop msiserver
Rename Folders:
Start Services:
net start wuauserv
net start cryptSvc
net start bits
net start msiserver
pnputil /enum-drivers
If you want to automate the removal of all drivers, you can use PowerShell
scripting. Here’s a basic example:
$drivers = pnputil /enum-drivers | Select-String "Published name" | ForEach-Object
{ $_.ToString().Split(":")[1].Trim() }
foreach ($driver in $drivers) {
pnputil /delete-driver $driver /force
}
***********************************************************************************
*******************************
Get-History | ForEach-Object { $_.CommandLine } > D:\FINALPWSScommands.txt
doskey /history > D:\FINALcommands.txt
***********************************************************************************
*********************************
winget install --id Opera.OperaGX
winget upgrade --id Opera.OperaGX
winget list --name Opera
Get-AppxPackage *WindowsSubsystemForAndroid*
winget install --id=Microsoft.WindowsSubsystemForAndroid --source=msstore
winget install 9p3395vx91nr
*
# Check if Microsoft Store is installed
Get-AppxPackage *Microsoft.WindowsStore*