NTDOC I did use a combination of both yours and Chris’ code, assuming the fnWMIService function was the same. Also in reference to your comment about using the DisplayName, it was showing blank until I changed it to the service name, which is what the function is looking for.

Code:

from

"Service Name: " fnWMIService('Aventail Connect','DisplayName',$Remote)

to

"Service Name: " fnWMIService(‘AventailAutoSOCKS’,'DisplayName',$Remote)


Your code was a life saver, since I had to make the change to 100 Citrix servers. Thanks to both of you for all your help.
And everyone else who contributed to this thread.