Remoting

To connect to another computer using PowerShell, I use the following.

$REMOTE_SERVER = 'server-1'

# Connect to server-1
Enter-PSSession $REMOTE_SERVER
# Do stuff on the remote server
Exit-PSSession

This may be a bit more complex!

There may be policy issues and permissions you need to sort on a per case basis.

Last updated