Created
May 7, 2019 11:10
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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