Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Invoke-Command not returning correct information...?

$
0
0

Hi,

I'm trying to get the responding state of the java process on a remote server. When i run the command below locally on the server I get the state "false":

Get-Process java | select -Expand Responding
False

When I run the same command with "Invoke-Command" from my computer i get "True":

Invoke-Command -ComputerName $Server {Get-Process java | select -Expand Responding}
True

Any Ideas would be appreciated :)...


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>