I'm trying to stop a process on a remote PC but I get an error that the process cannot be found - though it is in fact running on the remote PC.
I'm on Server 2012 and trying to connect to a Windows 10 client PC on the same domain.I have already enabled PowerShell remoting on the remote computer
I can stop the process using CMD
Text
Taskkill.exe/s .... Text
PS C:\ Invoke-Command -ComputerName [computername] {Get-Process ctsrgui.exe | Stop-Process -force} 
Your Thoughts?