I make heavy use of the Sysinternals tool pslist -s to monitor specific processes on remote servers. I use it as a way to keep tabs on something I’ve got running remotely – for example, I’ll issue pslist -s tiworker \\SERVER01 to monitor a server that’s patching.
Has anyone discovered a PowerShell replacement for this?
Thanks Olaf! (I think you’ve helped before as well, thanks again for that)!
Invoke-Command -ComputerName {Get-Process tiworker} was the way I was going, however it doesn’t seem to perform the continuous updating that pslist -s tiworker would (the -s switch is what does this). Are you aware of a method to get that real-time data?
If you want to have a loop you have to use a loop. You could do an infinite loop you interrupt if you don’t need anymore or you set a condition until the loop loops.