Reboot into Safe Mode - Run cmd as Adminsitrator
To set safe mode with networking
bcdedit /set {current} safeboot network
To Reboot
shutdown -r -f -t 0
To turn off safe mode on restart
bcdedit /deletevalue {current} safeboot
To Reboot
shutdown -r -f -t 0
------------------------------------------------------------------------------
String to create batch file to delete files in a location
@echo off
forfiles /p "C:\foldername" /s /m *.* /d -60 /c "cmd /c del @file"
pause
Save as .bat file and schedule in task scheduler
-----------------------------------------------------------------------------
MSIInstaller needs to run in safemode
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer" /VE /T REG_SZ /F /D "Service"
REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Network\MSIServer" /VE /T REG_SZ /F /D "Service" net start msiserver
net start msiserver
------------------------------------------------------------------------------
Open control panel from cmd
start control
CMD Line
Copyright © 2024 CMD Line - All Rights Reserved.
Powered by GoDaddy
We use cookies to analyze website traffic and optimize your website experience. By accepting our use of cookies, your data will be aggregated with all other user data.