Manage remote Windows machines with PowerShell remoting
8 steps · about 1 h 25 min · Intermediate
- Choose how to run commands on remote computers (reference, Microsoft Learn, 10 min)
Maps the remoting options before you configure any.
- Turn on WinRM remoting with Enable-PSRemoting (reference, Microsoft Learn, 8 min)
Sets up the listener and firewall rule remoting needs.
- Fan out commands to many hosts with Invoke-Command (reference, Microsoft Learn, 15 min)
Is the main tool for running one script across a fleet.
- Work interactively on a server with Enter-PSSession (reference, Microsoft Learn, 6 min)
Gives a remote shell for one-off fixes.
- Reuse persistent sessions across commands (reference, Microsoft Learn, 10 min)
Saves setup time and keeps state between calls.
- Remote over SSH instead of WinRM (guide, Microsoft Learn, 12 min)
Lets you reach Linux and non-domain machines the same way.
- Solve the second-hop credential problem (guide, Microsoft Learn, 12 min)
Explains why access to a file share fails from a remote session.
- Limit admin rights with Just Enough Administration (guide, Microsoft Learn, 12 min)
Lets helpdesk staff run only the commands they need.