@echo off cmd mkdir c:\Temp echo "starting removal" >> c:\Temp\OldCERemoval.txt wmic product where name="Qualys Cloud Security Agent" call uninstall /nointeractive >> c:\Temp\OldCERemoval.txt wmic product where vendor="CyberSmart Ltd" call uninstall /nointeractive >> c:\Temp\OldCERemoval.txt powershell.exe -ExecutionPolicy Bypass -command Remove-AppxPackage -AllUsers -Package Microsoft.Print3D_3.3.791.0_x64__8wekyb3d8bbwe >> c:\Temp\OldCERemoval.txt powershell.exe -ExecutionPolicy Bypass -command Remove-AppxPackage -AllUsers -Package Microsoft.Microsoft3DViewer_7.2211.24012.0_x64__8wekyb3d8bbwe >> c:\Temp\OldCERemoval.txt powercfg.exe /h off powercfg /x -hibernate-timeout-ac 0 powercfg /x -hibernate-timeout-dc 0 Powercfg /x -standby-timeout-ac 0 powercfg /x -standby-timeout-dc 0 powercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 3 powercfg -setacvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 7648efa3-dd9c-4e3e-b566-50f929386280 3 powercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0 powercfg -setdcvalueindex SCHEME_CURRENT 4f971e89-eebd-4455-a8de-9e59040e7347 5ca83367-6e45-459f-a27b-476b1d01c936 0 powercfg -SetActive SCHEME_CURRENT type c:\Temp\OldCERemoval.txt echo "Done" >> c:\Temp\OldCERemoval.txt