Useful Windows commands
***Repair Windows system
dism /Online /Cleanup-image /Restorehealth && sfc /scannow && defrag C: /O /U /V && exit
***Dell update command using Choco
choco install dellcommandupdate
choco upgrade dellcommandupdate
choco uninstall dellcommandupdate
***reset taskbar icons - reseting icon cache:
taskkill /IM explorer.exe /F
DEL /A /Q "%localappdata%\IconCache.db"
DEL /A /F /Q "%localappdata%\Microsoft\Windows\Explorer\iconcache*"
start explorer.exe
***Install Whois using AzureAD admin account:-
runas /user:azuread\admin@example.com "cmd.exe /c choco install whois -y"
***Useful Powershell commands:
List Printers:
Get-Printer
Delete Printer:
Remove-Printer -Name "Printer Name"
Delete Printer Driver:
Remove-PrinterDriver -Name "DriverName"
Delete printer port:
Remove-PrinterPort -Name "IP_192.168.1.50"
⬅️ Back to Home