Skip to content

Instantly share code, notes, and snippets.

View andrewseward's full-sized avatar

Andrew Seward andrewseward

View GitHub Profile
@andrewseward
andrewseward / checkservice.ps1
Created October 28, 2011 13:11
Determining whether a windows service is install with Powershell
$service1 = Get-Service -name "My Service Name" -ErrorAction SilentlyContinue
if (!$service1)
{
"service1 is not installed"
}