Enable ps-remoting on windows 11

You must have elevated privileges to configure these settings.

  1. Click the Start button.
  2. Type PowerShell.
  3. Right-click Windows PowerShell (or PowerShell 7 if you have it installed) and select Run as administrator.
  4. Click Yes on the User Account Control (UAC) prompt.

In the elevated PowerShell window, type the following command and press Enter:

PowerShell

PowerShell
Enable-PSRemoting -Force
  • What this does: The -Force parameter suppresses the confirmation prompts. This command starts the WinRM service, sets it to start automatically with your system, and creates a firewall rule that allows incoming connections.

If you get an error after running the command, it is almost always because your Windows 11 network connection is set to Public. By default, Enable-PSRemoting blocks execution on Public networks for security reasons.

You have two options to fix this:

Option A: Change your Network Profile to Private (Recommended) This is the safest route for a home or office network.

  1. Open Windows Settings > Network & internet.
  2. Click on Wi-Fi or Ethernet (depending on your connection).
  3. Click on your active network properties.
  4. Change the Network profile type from Public to Private.
  5. Run Enable-PSRemoting -Force again.

Option B: Force it on a Public Network (Use with caution) If you must leave the network as Public and understand the security implications, you can bypass the check:

PowerShell

PowerShell
Enable-PSRemoting -SkipNetworkProfileCheck -Force

If your Windows 11 machine is not part of an Active Directory domain (e.g., a home network), the machine trying to connect to it needs to “trust” it.

On the client machine (the one you are typing on, not the target Windows 11 machine), run this in an Administrator PowerShell window to trust the target IP address:

PowerShell

PowerShell
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "192.168.1.50" -Force

(Replace 192.168.1.50 with the actual IP address or hostname of your Windows 11 target machine, or use "*" to trust all hosts—though trusting all hosts is not recommended for security reasons).

To verify it works, go to another computer on the same network, open PowerShell, and run:

PowerShell

PowerShell
Enter-PSSession -ComputerName "TargetComputerNameOrIP" -Credential "Username"

You will be prompted for the password. If successful, your PowerShell prompt will change to indicate you are now running commands directly on the remote Windows 11 machine.

Categories , , , ,