Created
October 28, 2011 13:11
-
-
Save andrewseward/1322222 to your computer and use it in GitHub Desktop.
Determining whether a windows service is install with Powershell
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
$service1 = Get-Service -name "My Service Name" -ErrorAction SilentlyContinue | |
if (!$service1) | |
{ | |
"service1 is not installed" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment