Enable-PSRemoting: Turn On PowerShell Remoting in Windows

4 min read James Futhey Updated November 13, 2026
Microsoft Learn documentation for the Enable-PSRemoting cmdlet showing its PowerShell syntax

Quick answer: open PowerShell with Run as administrator and run Enable-PSRemoting -Force. It starts the WinRM service, sets it to start automatically, creates a listener, opens the firewall for WS-Management and enables the session endpoints. Run it only on computers that receive remote commands, not on the ones that send them.

Enable-PSRemoting -Force

What does Enable-PSRemoting do?

Enable-PSRemoting configures a Windows computer to receive PowerShell commands sent over WS-Management (WinRM). Microsoft lists these steps:

Step What changes
Runs Set-WSManQuickConfig Starts WinRM and sets its startup type to Automatic
Creates a listener Accepts requests on any IP address
Firewall Enables an exception for WS-Management traffic
Endpoints Creates the session endpoint configurations if needed and enables all of them
Permissions Changes each endpoint's security descriptor to allow remote access
Restart Restarts WinRM so the changes apply

PowerShell remoting is already on by default on Windows Server. On Windows 10 and 11 you need to run the cmdlet yourself.

Syntax and parameters

Enable-PSRemoting [-Force] [-SkipNetworkProfileCheck] [-WhatIf] [-Confirm]
Parameter What it does
-Force Runs without asking for confirmation
-SkipNetworkProfileCheck Allows remoting on a Windows client that's on a public network, limited to the same local subnet
-WhatIf Shows what would happen without running
-Confirm Asks before running

What do you need before running it?

  • Administrator rights. Start PowerShell with Run as administrator.
  • Windows. The cmdlet isn't available in PowerShell on Linux or macOS.
  • Open ports. WinRM listens on TCP 5985 for HTTP and 5986 for HTTPS.
  • Admin accounts to connect. By default only members of the Administrators group can connect.

How do you enable PowerShell remoting step by step?

  1. Open PowerShell as administrator.
  2. Run Enable-PSRemoting -Force.
  3. List the endpoints it enabled:
Get-PSSessionConfiguration
  1. Test a session to the same computer. In PowerShell 7, name the endpoint:
$session = New-PSSession -ComputerName localhost -ConfigurationName PowerShell.7
Invoke-Command -Session $session -ScriptBlock { $PSVersionTable }

If that returns a version table, remoting works. From another computer, use Enter-PSSession for an interactive shell, and Get-Credential when you need a different account.

Windows PowerShell 5.1 vs PowerShell 7

Each PowerShell version configures its own endpoints:

Run it in It enables
Windows PowerShell 5.1 The Windows PowerShell endpoints, such as microsoft.powershell
PowerShell 7 Two endpoints for that version, for example PowerShell.7 and a longer name with the exact version

Running it in PowerShell 7 doesn't touch the Windows PowerShell endpoints; it prints a warning saying so. To enable both, run it once in each. To reach a PowerShell 7 endpoint, pass -ConfigurationName to New-PSSession, Enter-PSSession or Invoke-Command.

How do you enable remoting on a public network?

On Windows 10 and 11, the cmdlet normally refuses when the network profile is Public. Add -SkipNetworkProfileCheck to allow connections from the same local subnet:

Enable-PSRemoting -SkipNetworkProfileCheck -Force

To allow connections from any address on a public network, change the firewall rule. Rule names vary by Windows version, so list them first:

Get-NetFirewallRule -Name 'WINRM*' | Select-Object -Property Name
Set-NetFirewallRule -Name 'WINRM-HTTP-In-TCP' -RemoteAddress Any

The public rule exists to block outside connection attempts. Remove the subnet limit only when you need to.

Windows Server already allows public-network connections from the same subnet, so the switch has no effect there.

How do you check if PowerShell remoting is enabled?

Check Command Enabled looks like
WinRM answers Test-WSMan -ComputerName <name> Returns WS-Management protocol details
Endpoints allow network access Get-PSSessionConfiguration Permission has no NT AUTHORITY\NETWORK AccessDenied
A session opens New-PSSession -ComputerName <name> Session state is Opened

Domain vs workgroup computers

Connecting by computer name inside a domain uses Kerberos, which verifies both you and the server. Connecting by IP address, or to a workgroup computer, can't use Kerberos and falls back to NTLM. NTLM is off by default for remoting; to use it, either set up HTTPS on the target or add the target to the client's WinRM TrustedHosts list. TrustedHosts only suppresses the server identity error. It doesn't make the host trustworthy.

How do you disable PowerShell remoting?

Disable-PSRemoting -Force

This blocks remote access to the endpoints for the PowerShell version you run it in. Run it in both PowerShell 7 and Windows PowerShell to block all of them. It doesn't undo everything. To finish:

  1. Stop and disable the WinRM service.
  2. Delete the listener that accepts requests on any IP address.
  3. Disable the WS-Management firewall exceptions.
  4. Set LocalAccountTokenFilterPolicy back to 0.

Troubleshooting

Problem Likely cause Fix
Access denied running the cmdlet Not elevated Reopen PowerShell with Run as administrator
Refuses on a laptop or desktop Network profile is Public Add -SkipNetworkProfileCheck, or set the network to Private
Works in 7, not in 5.1 Each version has its own endpoints Run Enable-PSRemoting in Windows PowerShell too
Can't reach the PowerShell 7 endpoint Session uses the default endpoint Add -ConfigurationName PowerShell.7
Fails by IP or in a workgroup Kerberos isn't available Use HTTPS or add the host to TrustedHosts
Timeout from another subnet Public firewall rule limits to local subnet Change the rule with Set-NetFirewallRule
Command not found on Mac or Linux Windows only Use SSH-based remoting there

Summary

  • Run Enable-PSRemoting -Force as administrator on each computer that receives commands.
  • Windows Server has remoting on by default; Windows 10 and 11 don't.
  • Run it in both Windows PowerShell and PowerShell 7 if you use both.
  • Use -SkipNetworkProfileCheck on public networks; it still limits access to the local subnet.
  • Disable-PSRemoting leaves WinRM, the listener and the firewall exceptions in place.

Related: Enter-PSSession, Get-Credential, Get-Service, Set-ExecutionPolicy.

Meeting Room 365 turns any iPad or Android tablet into a room display for Exchange and Microsoft 365 calendars. See the features or pricing: $9 a display a month.

Add a display to your office

Every room, on the door.

Live availability on every meeting room. Works with Microsoft 365, Exchange and Google Workspace.