How to enable WinRM via Group Policy

The Windows Remote Management (a.k.a. WinRM) interface is a network service that allow remote management access to computer via the network. It’s used  frequently as a conduit to allow remote management of computer via PowerShell. As a result WinRM is enabled by default on Windows Server 2012 to enable the Server Manager tool but it is not enabled for Windows client OS’s by default.

As it is turned off by default on client OS’s the following describes how you can enable it using Group Policy.

Firstly create a Group Policy Object that targets the workstation that you want to enable the WinRM (e.g. “Enable WinRM”)

Then enable the “Allow remote server management through WinRM” policy setting found under Computer > Policies > Windows Components > Windows Remote Management (WinRM) > WinRM Service. From here you need to specify the IP Address ranges that the service will accept connections from, be cautious if you just add “*” in the field as this can potentially allow incoming connection form all network locations. If possible specify the exact IP ranges that you will be performing the remote management from to reduce the risk of connection coming in from any computer.

Note: This policy is also know as “Allow automatic configuration of listeners”


Next we need to enable the “Windows Remote Management (WS-Management)” Service via the Group Policy Preferences Services.


And finally we need to open up the firewall rules to allow the incoming TCP connection on the Domain Network profile.

Go to Computer Configurations > Policies > Security Settings > Windows Firewall and Advanced Security > Windows Firewall and Advanced Security then right click on “Inbound Rules” and click on the “New Rule…” option.


Check the “Predefined” option and select “Windows Remote Management” from the pop-down list and Click “Next”


Then uncheck the top “Public” rule to again reduce the exposure of this services to the internet and then click “Next”


Then click “Finish”


And you should now have a new listed as similar to below.


To again reduce the exposure of this service again you can double click on the new rule you just created and remove the “Private” from the network profiles that this applies.


You have now enable WinRM on your workstations that is required to allow you run PowerShell remote commands against.

As you might already realise enabling this should not be taken lightly as you are essentially opening up a way to completely remote control your computers. This is why should always limit the scope of incoming network connections to only the required networks/hosts.

Group Policy Preferences Password Behaviour Change – MS14-025

imageA number of month ago I did a blog post explaining why the use of passwords (a.k.a. cPasswords)  in  Group Policy Preferences was such a bad idea ( see Why Passwords in Group Policy Preference are VERY BAD). Well Microsoft have now taken the additional steps and now release a new hot fix for Group Policy Management Console that explicitly blocks the functionality (MS14-025: Vulnerability in Group Policy Preferences could allow elevation of privilege). What this effectively means is that after you have installed this patch you can no longer add or modify the password field on any Group Policy Preferences.

As you can see how this looks in the “User Group Policy Preferences” where the password dialog fields are now greyed out.


But now you might be wondering what happens if you already have the password configured on a Group Policy and you try to edit that password…

As you can see below, when you edit an existing Group Policy Preference settings with a password configured you will see the following dialogue box warning.


You can see that the password is configured, however you will not be able to modify or delete the value using the user interface..


So this means that after years of guidance / warnings from Microsoft to not use passwords in Group Policy Preferences they are now explicitly blocking the ability to configure this via the UI. However this patch is not automatically pushing out this patch therefore this removal of functionality will only happen when you explicitly install the update.

This hotfix is available for ALL versions of Group Policy Management Console that support Group Policy Preferences and you you can get the files via  Vulnerability in Group Policy Preferences Could Allow Elevation of Privilege (2962486)

Coming soon: How to Manage Local Admin Password and How to remove cPasswrods from your AD

How to setup Internet Explorer 11 Enterprise Mode Logging

IE9answerIn my recent blog post about Internet Explorer 11 I explain how you can enable Enterprise Mode via Group Policy. The option “Let users turn on and use Enterprise Mode from the Tools menu” as the name suggest allows users to enable the option form the Tools menu in Internet Explorer.

But as the description of this also mentions:

Optionally, this policy also lets you specify where to get reports about the websites for which users turn on Enterprise Mode using the Tools menu.

This is like Crowd Sourcing the list of internal web sites you have that need to be configured in IE Enterprise Mode for them to work.  You can then use this information and build your own IE Enterprise Mode site list using the Enterprise Mode Site List Manager tool and deploy your own Enterprise Mode XML list so that the other users do not need to explicitly need to do something to make their browsers work.

To setup this option on the client just following the TechNet article  Turn on local control and logging for Enterprise Mode (see example below).

Note: In the example below have used a custom HTTP port 81. I recommend you do this for your logging web server.


But it the TechNet article says:

To turn on logging, you must include a valid URL that points to a server that can be listened to for updates in your registry key

This unfortunately does not explain how to setup an end point server to listed for these incoming POST messages that are sent whenever a user toggles the Enterprise Mode button in the Menu.

Being curious I then cracked open Fiddler to see what exactly the payload was that was being submitted as a POST form. As you can see it submits two parameters in the form of a POST form submission. As a side note I also noticed that the User-Agent string is different in the browser as it switches between modes.



But as you can see by the error messages on the right I did not have a server setup to accept these incoming POST messages.

Therefore I next installed IIS the DC01 server with ASP component so that I could setup an ASP form to accept this incoming information.


I then edited the binding of the web site to port 81 to match the custom port I configured in the Group Policy setting. The reason I created a custom port is so that I could have a dedicated site that was only for this incoming information. This is important as I am logging the information to the web sites log file and any other traffic would make it much harder to find the incoming Enterprise Mode Logging  information.


I then modified the logging of the web site to only include Date,Client IP,User Name and URI Query. I did this to keep the log file as simple as possible. If you really wanted to you could just select the URI Query option. But I found the date, client IP useful for discovering who was having issues.


I then placed the ASP file called “ieem.asp” (see code below) which  in the root of the web server. The name of this file again has to match the name you specified in the Group Policy above.

<% @ LANGUAGE=javascript %>


Response.AppendToLog(" ;" + Request.Form("URL") + " ;" + Request.Form("EnterpriseMode"));


The ASP information above simple logs the POST fields to the IIS log file that you can then simply extract the date you need (example highlighted below)..

IIS Log File Output


Internet Explorer 11 Enterprise mode is now rolling out automatically as part of Windows 8.1 Update and the recent Windows 7 internet Explorer 11 security update KB2929437. This means that this functionality is probably already starting to deploy in your organisation if you are using IE11 so why not start taking advantage of your users to Crowed Source what internal web sites have compatibility issues.

Credit: Thanks to Adam Kim and Chris Jackson from Microsoft for the ASP code and point me on the right direction to get this working.

How to use Group Policy to enable or disable the Power Button on Touch (a.k.a Slate) devices for Windows 8.1 Update

imageIf you have updated your touch/slate device to Windows 8.1 Update you will have noticed that the Search button has appeared on your start menu but not the power button. If you were wondering how to enable this button then unfortunately there is no easy way to do this as it is dictated by the type of hardware that you are running the device on (see ). Meaning if your device is a classified as a touch “slate” device then the Power Button will not be visible.

But as discovered by @teroalhonen there is a registry key that can be configured to override this setting:


DWORD  Launcher_ShowPowerButtonOnStartScreen

Value 1 = Button Enabled

Value 0 = Button Disabled

As this is as simple as a registry key then you can easily implemented it as a Group Policy Preferences Registry Extension setting.

To do this open a Group Policy Object that targets the users that you want to enable/disable the power button for and then navigate to User Configuration > Preferences > Windows Settings  then right click Registry and go to New > Registry Item (see below)


Then type in “Software\Microsoft\Windows\CurrentVersion\ImmersiveShell\Launcher\” into the Key Path field and “Launcher_ShowPowerButtonOnStartScreen” into the Value Name box. After that Select REG_DWORD and value “1” (enable) or “0” (disable) to configured the power button.


Once done you need to wait for a Group Policy Update and then the user to log off and back on for the power button to appear or disappear.



Source @teroalhonen (Via )

Internet Explorer Enterprise Mode via Group Policy

imageWith the release of Windows 8.1 Update Microsoft has introduced a new feature Internet Explorer Enterprise Mode. This allows admins to assign via Group Policy a way to force web site to render using specific browser modes.

Internet Explorer has has a long heritage and each new version of the browser shipped has had the rendering engine of the previous installed for compatibility. This option can be invoked by a user by pressing the F12 and then selecting the Document Mode they want to render the page with (see below).


The problem is how IE determine what browsing mode the browser mode should use (See is never an exacting science and it sometimes gets it wrong.

One way was for the web site authors update a meta tag or the host header of the web site to tell the browser to use a particular rendering mode (see  However many organisation have had web sites created internally where the authors have long gone. Therefore Internet Explorer by default will render any intranet web site in the “Intranet Zone” as using the IE7 rendering engine. But buy displaying all the “Intranet Zone” pages as IE7 this means that the pages are being rendered with an older (and MUCH SLOWER) JavaScript engine. So while the browser is capable of cutting edge performance it some time limits it self to much slower performance for the sake of backwards compatibility. If you want more information on this check out myself and Chris Jackson talk about this feature in my recent TechEd presentation The Browser You Loved to Hate

To help address this performance issue and to make it easier for enterprise view internal website using newer rendering engines Microsoft has introduced an new option call Internet Explore Enterprise Mode. This gives administrators more configuration power over what web sites are configured using older and newer rendering engines.

How to enable Internet Explorer Enterprise Mode

Internet Explorer Enterprise mode is not visible to the users out of the box. To enable this feature you need to enable the “Let users turn on and use Enterprise Mode from the Tools menu”.


Once enabled user can toggle the “Enterprise Mode” option from the Internet Explorer menu.


But if the organisation want to specify the location of the Enterprise Mode IE List you can specify the path via the “Use the Enterprise Mode IE website list” group policy.



Update: Managing the Internet Explorer Enterprise Mode Site List

The URL that you specify in the above mentioned setting is an XML tool called the Enterprise Mode Site List Manager (not yet available). This tool will allow you to create you own custom corporate XML file that allow you to granularly specify what web site to render in IE Enterprise Mode.


Once you save the file you publish it to the URL configured via Group Policy and the user will pull down the updated compatibility view list.

Correction: If you have downloading the EMSL tool you can use a text file to bulk import sites in the tool to generate the XML file. As the tools is not out yet you still need to hand craft the XML file.,,



Source #2:

Updated: Enterprise Mode Site List Manager Download  –