Windows

To check Windows OS health

dism /online /cleanup-image /checkhealth

If any errors are found, fix them with

dism /online /cleanup-image /restorehealth

check disk errors

chkdsk

Fix disk errors

chkdsk /f

check for system file corruption

sfc /scannow

Compress a file using powershell

Compress-Archive -Path "C:\mppcwin" -DestinationPath "C:\Downloads\mppcwin.zip"

To change hostname of a computer, run as Administrator in PowerShell. If you don’t want to restart, remove -Restart option.

Rename-Computer -NewName "new-host-name-here" -Restart

To stop/start a servce

sc start service_name
sc stop service_name
sc query service_name

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *