Username or Email Address
Password
Remember Me
Username
Home » Documentation » Tips & Tricks » Windows » Remote Powershell
Enable-PSRemoting -Force
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