Skip to content

Instantly share code, notes, and snippets.

@matthewskelton
Created July 8, 2013 17:12
Show Gist options
  • Save matthewskelton/5950649 to your computer and use it in GitHub Desktop.
Save matthewskelton/5950649 to your computer and use it in GitHub Desktop.
Restore a WMI repository
C:\>sc config winmgmt start= demand
[SC] ChangeServiceConfig SUCCESS
C:\>sc stop winmgmt
SERVICE_NAME: winmgmt
STATE : 3 STOP_PENDING
...
C:\>winmgmt /salvagerepository %windir%\System32\wbem
WMI repository has been salvaged
C:\>sc config winmgmt start= auto
[SC] ChangeServiceConfig SUCCESS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment