Remote Powershell
Nginx
Synology
Windows
Tips & Tricks
Remote Powershell
Updated: 11th 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