Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

PowerShell Command Help

$
0
0

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 .... 
But not with PowerShell
Text
PS C:\ Invoke-Command -ComputerName [computername] {Get-Process ctsrgui.exe | Stop-Process -force} 


Your Thoughts?



Viewing all articles
Browse latest Browse all 15370

Trending Articles