It should because I pulled it from get-help invoke-command. But if I copy those same machines to the clipboard and issue the following command, why doesn’t this work?:
I see that you’re running (Get-Host).Version. Please tell me you’re not doing this to determine the version of PowerShell on the remote computer. If you are, then you should know that your command is going to produce the wrong results. I wrote a post about this on Tuesday. You may want to take a look: [url]http://tommymaynard.com/ql-get-the-version-of-powershell-not-its-host[/url].