Tips & Tricks

Remote Powershell

14th May 2022

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

cross