Manage remote Windows machines with PowerShell remoting

8 steps · about 1 h 25 min · Intermediate

  1. Choose how to run commands on remote computers (reference, Microsoft Learn, 10 min)

    Maps the remoting options before you configure any.

  2. Turn on WinRM remoting with Enable-PSRemoting (reference, Microsoft Learn, 8 min)

    Sets up the listener and firewall rule remoting needs.

  3. 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.

  4. Work interactively on a server with Enter-PSSession (reference, Microsoft Learn, 6 min)

    Gives a remote shell for one-off fixes.

  5. Reuse persistent sessions across commands (reference, Microsoft Learn, 10 min)

    Saves setup time and keeps state between calls.

  6. Remote over SSH instead of WinRM (guide, Microsoft Learn, 12 min)

    Lets you reach Linux and non-domain machines the same way.

  7. Solve the second-hop credential problem (guide, Microsoft Learn, 12 min)

    Explains why access to a file share fails from a remote session.

  8. Limit admin rights with Just Enough Administration (guide, Microsoft Learn, 12 min)

    Lets helpdesk staff run only the commands they need.