Created
November 8, 2014 04:39
-
-
Save AmrEldib/de4e018fe11a98b42a18 to your computer and use it in GitHub Desktop.
MirrorHardDrives-GetSqlServiceStatus
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
function Get-SqlServiceStatus ($serviceName) | |
{ | |
# Get a reference to the service | |
$sqlService = Get-Service $serviceName | |
# Return the service status | |
return $sqlService.status | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment