Skip to content

Instantly share code, notes, and snippets.

@jhochwald
Created May 7, 2019 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhochwald/7ff3b7e3c175ff3dfac8b87ce2f5ff80 to your computer and use it in GitHub Desktop.
Save jhochwald/7ff3b7e3c175ff3dfac8b87ce2f5ff80 to your computer and use it in GitHub Desktop.
Check the Storage Service (StorSvc) and/or set it to the right Startup Type
# Get the Startup Type for the Storage Service
Get-Service -Name StorSvc | Select-Object -ExpandProperty StartType
# Check of the Storage Service is set to Manual Startup (Manual seems to be fine)
Get-Service -Name StorSvc | Where-Object { $_.StartType -cne 'Manual' }
# Set the Startup Type to Manual if it is not the case
Get-Service -Name StorSvc | Where-Object { $_.StartType -cne 'Manual' } | Set-Service -StartupType Manual
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment