Summary: Learn how to use Windows PowerShell to run a command on a remote server.
How can I run a command on a remote server by using Windows PowerShell Remoting?
Use the Invoke-Command cmdlet, specify the computer name, and place the command in a script block:
Invoke-Command -ComputerName server1 -ScriptBlock {hostname}
0 comments