Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Script to check specific service and status

$
0
0

Hi,

i have a list of machines which on i want to chek few specific services AVAILABILITY and its STATUS. If these services are absent then it should give me the machine name of that machine and the service which is UNAVILABLE.

I am using simple cmdlets combination but it is failing.

Like =>

$comp = get-service <remote computer name >  

if ($comp.name -like "winrm")

{


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>