How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune

Key Takeaways:

  • Manage the Windows Remote Management (WinRM) client uses Basic authentication.
  • Helps to Achieve Zero-Trust Security for Organization
  • Protecting the identity and credentials of administrators and automated systems
  • It eliminating insecure, legacy authentication methods that can expose user credentials.

Let’s discuss How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune. Basic authentication is less robust than other authentication methods available in WinRM because credentials including passwords are transmitted in plain text.

An attacker who is able to capture packets on the network where WinRM is running may be able to determine the credentials used for accessing remote hosts via WinRM. If the WinRM connection uses the HTTP transport (default port 5985), the username and password are transmitted over the network in plain text (unencrypted).

Organizations must carefully weigh the security risks of plain-text credentials against the need for compatibility with legacy or non-standard systems. Disabling this setting is the standard security best practice and is often a requirement in hardening guidelines.

It eliminates the risk of transmitting credentials in plain text over the network when the WinRM client connects over HTTP. An attacker performing a packet capture (sniffing) could easily steal the credentials, leading to a system compromise.

Patch My PC
Table of Contents

How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune

In a large, domain-joined environment using PowerShell Remoting (which uses WinRM) to manage hundreds of servers, this ensures that connections are secured using Kerberos. If Basic authentication were allowed, an administrator could inadvertently use an insecure client configuration, exposing highly privileged admin credentials to network sniffers.

How to Start Policy Creation

As an Admin, you can quickly configure this policy on your organisation. To start the Policy Creation, open the Microsoft Intune Admin center. Then go to Devices > Configuration >+ Create > +New Policy.

How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune - Fig.1
How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune – Fig.1

Profile Creation

Profile creation is the necessary step that helps you to assign the policy to appropriate platform and Profile. Here I would like to configure the policy to  Windows 10 and later platform and settings catalog profile. Then click on the Create button.

How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune - Fig.2
How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune – Fig.2

Basic Tab

Naming the policy is the primary step that help admins to identify the policy later. This is important and necessary step that allows you to know the purpose of the policy. Here is Name is mandatory and description is optional. After adding this click on the Next button.

How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune - Fig.3
How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune – Fig.3

Configure WinRM Basic Authentication

With Settings Picker, you can use the Configuration Settings Tab. On this tab, you can click on the +Add Settings hyperlink to get the Settings Picker. The settings picker shows huge number of settings. Here, I would like to select the settings by browsing by Category. I choose System. Then, I choose Administrative Templates\Windows Components\Windows Remote Management (WinRM)\WinRM Client\Allow Basic authentication.

How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune - Fig.4
How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune – Fig.4

Block WinRM Basic Authentication

If you disable or don’t configure this policy setting, the WinRM client doesn’t use Basic authentication. Click on the Next button to continue.

How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune - Fig.5
How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune – Fig.5

Allow WinRM Basic Authentication

If you enable this policy setting, the WinRM client uses Basic authentication. If WinRM is configured to use HTTP transport, the user name and password are sent over the network as clear text.

How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune - Fig.6
How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune – Fig.6

Scope Tags

With scope tags, you create a restriction to the visibility of the Read Aloud feature in Microsoft Edge. It helps to organise resources as well. Here, I would like to skip this section, because it is not mandatory. Click on the Next button

How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune - Fig.7
How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune – Fig.7

Assignments Tab for Selecting Group

To assign the policy to specific groups, you can use the Assignment Tab. Here I click, +Add groups option under Included groups. I choose a group from the list of groups and click on the Select button. Again, I click on the Select button to continue.

How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune - Fig.8
How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune – Fig.8

Review + Create Tab

Before completing the policy creation, you can review each tab to avoid misconfiguration or policy failure. After verifying all the details, click on the Create Button. After creating the policy, you will get a success message.

How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune - Fig.9
How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune – Fig.9

Monitoring Status

The Monitoring Status page shows whether the policy has succeeded or not. To quickly configure the policy and take advantage of the policy sync the assigned device on Company Portal. Open the Intune Portal. Go to Devices > Configuration > Search for the Policy. Here, the policy shows as successful.

How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune - Fig.10
How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune – Fig.10

Removing the Assigned Group from WinRM Basic Authentication Settings

If you want to remove the Assigned group from the policy, it is possible from the Intune Portal. To do this, open the Policy on Intune Portal and edit the Assignments tab and the Remove Policy.

To get more detailed information, you can refer to our previous post – Learn How to Delete or Remove App Assignment from Intune using by Step-by-Step Guide.

How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune - Fig.11
How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune – Fig.11

How to Delete WinRM Basic Authentication

You can easily delete the Policy from the Intune Portal. From the Configuration section, you can delete the policy. It will completely remove it from the client devices.

For detailed information, you can refer to our previous post – How to Delete Allow Clipboard History Policy in Intune Step by Step Guide.

How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune - Fig.12
How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune – Fig.12

Windows CSP Details

This policy setting allows you to manage whether the Windows Remote Management (WinRM) client uses Basic authentication. This policy is applicable for Windows 10, version 1709 [10.0.16299] and later. The following table shows the ADMX mapping.

NameValue
NameAllowBasic_2
Friendly NameAllow Basic authentication
LocationComputer Configuration
PathWindows Components > Windows Remote Management (WinRM) > WinRM Client
Registry Key NameSoftware\Policies\Microsoft\Windows\WinRM\Client
Registry Value NameAllowBasic
ADMX File NameWindowsRemoteManagement.admx
How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune – Table.1
How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune - Fig.13
How to Disable WinRM Basic Authentication and Achieve Zero-Trust Security using Intune – Fig.13

Need Further Assistance or Have Technical Questions?

Join the LinkedIn Page and Telegram group to get the step-by-step guides and news updates. Join our Meetup Page to participate in User group meetings. Also, Join the WhatsApp Community to get the latest news on Microsoft Technologies. We are there on Reddit as well.

Author

Anoop C Nair has been Microsoft MVP for 10 consecutive years from 2015 onwards. He is a Workplace Solution Architect with more than 22+ years of experience in Workplace technologies. He is a Blogger, Speaker, and Local User Group Community leader. His primary focus is on Device Management technologies like SCCM and Intune. He writes about technologies like Intune, SCCM,  Windows,  Cloud PC,  Windows, Entra, Microsoft Security, Career, etc.

Leave a Comment