Remote Powershell

Both Systems
Enable-PSRemoting -Force

Local system to Remote System
Replace “COMPUTER” with computer name and “COMMAND” with command (cmd commands work too) and “USERNAME” with remote username.
Invoke-Command -ComputerName COMPUTER -ScriptBlock { COMMAND } -credential USERNAME

Last Updated On October 30, 2019
Menu