Offline Windows Repair notes

 

Offline SFC Scan

sfc /scannow /offbootdir=C:\ /offwindir=C:\Windows

 

Dism to cleanup server updates

Dism Server Updates Cleanup
dism.exe /Online /Cleanup-Image /AnalyzeComponentStore
dism.exe /Online /Cleanup-Image /StartComponentCleanup


Dism online repair
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth

 

Dism offline, where C: = the drive letter of the windows drive, so if it’s a mounted image, DISM /Image:F:

DISM /Image:C: /Cleanup-Image /RestoreHealth


DISM /Online /Cleanup-Image /RestoreHealth /Source:G:\sources\install.wim

 

Stupid IIS performance counter:

cd c:\Windows\Inf\W3SVC
lodctr .\0409\w3ctrs.ini
lodctr /T:W3SVC

cd c:\windows\system32
lodctr /R
cd c:\windows\sysWOW64
lodctr /R

Resyncing the counters with Windows Management Instrumentation (WMI):
WINMGMT.EXE /RESYNCPERF

Comments are closed.