Created
June 7, 2016 10:15
-
-
Save pavelch/8a4e693b4494cde2a7b0ef9898b38aba to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$ServicesAll = @('Verne Config', 'VerneController', 'VerneIndexer','Tomcat8', 'OM_Configuration_Service', 'OM_Application_Server', 'OM_Robot_Store_Service', 'OM_Steam_Manager_Service', 'OM_Task_Manager_Service', 'OMCrawlerAdapter0', 'OMCrawlerAdapter1', 'OMCrawlerAdapterWatchDog', 'CodeCrawlerAdapter') | |
foreach ($service in $ServicesAll) { | |
$Srv = Get-Service -Name $service -ErrorAction SilentlyContinue | |
$stat = $Srv.Status | |
if ($stat) { | |
Write-Output "$service IS: $stat" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment