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")
{