mardi 31 mars 2015

PowerShell and creating groups based on results





This should be simple, but I guess my brain is fried? :-)



I have a task that takes a list of devices, does a ping check on them and to be super duper sure something is wrong I want to do another check on ONLY the devices which fail the ping test in the previous step.



The ping part I've done, however when I pass on in my IF statement to do the next check the value $s passes all of the devices I initially mentioned and not just the failed ones.



Could anyone shed some light on how I can sort this?



Thanks all,


Aucun commentaire:

Enregistrer un commentaire