1. Run PowerShell as Administrator
You must have elevated privileges to configure these settings.
- Click the Start button.
- Type
PowerShell. - Right-click Windows PowerShell (or PowerShell 7 if you have it installed) and select Run as administrator.
- Click Yes on the User Account Control (UAC) prompt.
2. Execute the Command
In the elevated PowerShell window, type the following command and press Enter:
PowerShell
Enable-PSRemoting -Force
- What this does: The
-Forceparameter 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.
Important Windows 11 Catch: Network Profiles
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.
- Open Windows Settings > Network & internet.
- Click on Wi-Fi or Ethernet (depending on your connection).
- Click on your active network properties.
- Change the Network profile type from Public to Private.
- Run
Enable-PSRemoting -Forceagain.
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
Enable-PSRemoting -SkipNetworkProfileCheck -Force
3. Connecting from Another Machine (Workgroup / Non-Domain)
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
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).
4. Test the Connection
To verify it works, go to another computer on the same network, open PowerShell, and run:
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.
Leave a Reply
https://jetpack.wordpress.com/jetpack-comment/?blogid=255705777&postid=109&comment_registration=0&require_name_email=1&stc_enabled=1&stb_enabled=1&show_avatars=1&avatar_default=initials&greeting=Leave+a+Reply&jetpack_comments_nonce=61a2ca0bc4&greeting_reply=Leave+a+Reply+to+%25s&color_scheme=light&lang=en_US&jetpack_version=16.1-a.1&iframe_unique_id=2&show_cookie_consent=10&has_cookie_consent=0&is_current_user_subscribed=0&token_key=%3Bnormal%3B&sig=f7266e168c451a2b7e2c50f82c627c9393bb77a4#parent=https%3A%2F%2Fextremesarcasm.org%2Findex.php%3Frest_route%3D%252Fwp%252Fv2%252Fposts%26_embed%3D1%26per_page%3D100%26page%3D1 <!--