Fixing Remoting Bug

by Jan 20, 2016

Have you ever tried to enable PowerShell remoting with Enable-PSRemoting, and just got an error complaining about not being able to check the current firewall status?

On Windows 7 machines, this may be due to a bug explained here:
https://support.microsoft.com/en-us/kb/2697738

On Windows 8/Server 2012 and higher, you may be able to fix the issue by launching a PowerShell with Administrator privileges, and then running these two commands:

 
PS> Enable-NetFirewallRule -Name WINRM-HTTP-In* 
PS> winrm create winrm/config/Listener?Address=*+Transport=HTTP

The first command enables the necessary firewall rules, and the second command adds a listener to WinRM. Once done, try again:

 
PS C:\> Enable-PSRemoting -SkipNetworkProfileCheck 
 

 

Throughout this month, we'd like to point you to three awesome community-driven global PowerShell events taking place this year:

Europe: April 20-22: 3-day PowerShell Conference EU in Hannover, Germany, with more than 30+ speakers including Jeffrey Snover and Bruce Payette, and 60+ sessions: www.psconf.eu.

Asia: October 21-22: 2-day PowerShell Conference Asia in Singapore. Watch latest announcements at www.psconf.asia

North America: April 4-6: 3-day PowerShell and DevOps Global Summit in Bellevue, WA, USA with 20+ speakers including many PowerShell Team members: https://eventloom.com/event/home/PSNA16

All events have limited seats available so you may want to register early.

Twitter This Tip! ReTweet this Tip!