I am looking for a way of finding out the version of Powerpath that is installed on multiple servers. I found the Remote Registry Powershell module and it seems to do the trick, however when it gets to a server in my list which it can't ping or access etc it seems to just go back to the first server and then goes into an endless loop just looking at those servers it can access.
I'm sure it's probably something simple, but I was wondering if anyone can see what I am doing wrong with this script to stop it going into this endless loop:
Function get-ppversion {
Get-RegValue -ComputerName $servers -Key SOFTWARE\EMC\Powerpath -Value Version -ping
}
$servers = (get-content d:\powershell\servers.txt)
Foreach ($server in $servers){
get-ppversion
}
Thanks in advance for any help