thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Systems & Data Center · Intermediate

PowerShell Remoting

Running PowerShell commands on remote computers over WinRM (WS-Management) or SSH.

Definition

Enable-PSRemoting configures WinRM listeners on HTTP 5985 or HTTPS 5986. Enter-PSSession opens an interactive session and Invoke-Command runs commands on many machines in parallel. Remoting is enabled by default on Windows Server.

Example

Invoke-Command -ComputerName web01,web02 -ScriptBlock { Restart-Service W3SVC }

Exam tip

WinRM uses TCP 5985 (HTTP) and 5986 (HTTPS).

Related terms