Delete Windows Hello for Business registrations using Intune

Windows Hello for Business (WHfB) is a secure authentication method that utilizes biometrics (face/fingerprint) or a PIN for user authentication. You may have completely disabled WHfB in your organization, but you also want to Delete Windows Hello for Business registration from the device.

A Windows Hello for Business (WHfB) container is a logical grouping that stores the user’s keys, certificates, and credentials managed by Windows Hello.

You can remove the Windows Hello for Business container on a Windows 10 or Windows 11 device using a straightforward command: certutil.exe -deleteHelloContainer which needs to be run under the user context. Open a command prompt and execute this command. After that, restart your device to complete the change.

Manually deleting the container is feasible when dealing with a few devices. However, an automated solution is necessary for a more efficient approach, especially when dealing with hundreds of devices.

I’ll use Intune Device Remediations to delete Windows Hello for Business (WHfB) registration information for the logged-on user. I’ve created two PowerShell scripts. The first one detects if a user’s WHfB configuration exists, and if it does, it triggers the remediation script, which executes the certutil.exe command mentioned earlier.

Intune Device Remediations requires users to have one of the following licenses. If you are not meeting the license criteria then you can simply deploy Remediate_WHfB.ps1 script via Intune admin center > Devices > Scripts option. For more information, refer to the blog post: How to deploy a Powershell script using Intune.

  • Windows 10/11 Enterprise E3 or E5 (included in Microsoft 365 F3, E3, or E5)
  • Windows 10/11 Education A3 or A5 (included in Microsoft 365 A3 or A5)
  • Windows 10/11 Virtual Desktop Access (VDA) per user
Source: Microsoft

Step 1 – Download Powershell Scripts

As mentioned earlier, Deleting WHfB registration for a user using Intune Device Remediations requires Detection and Remediation scripts. You can download them using the provided links below.

Step 2 – Create a Script Package

To create a script package on the Intune admin center, follow the below steps:

  • Sign in to the Intune admin center.
  • Go to Devices Scripts and remediations
  • Click on + Create.
Create a Script Package

Basics Tab

Provide the Name and Description of the package. Keep the rest of the settings as default. For Example:

  • Name: Delete WHfB registration
  • Description: Provide a useful description
  • Publisher: Jatin Makhija (auto-filled)
  • Version: Auto-filled
Create a Script Package
Create a Script Package

Settings Tab

Browse to Detection and Remediation scripts and configure the settings below.

  • Detection script file – Browse to the Detection script Detect-WHfB.ps1.
  • Remediation script file – Browse to the Remediation script file Remediate_WHfB.ps1.
  • Run this script using the logged-on credentials – Yes
  • Enforce script signature check – No
  • Run script in 64-bit Powershell – Yes
Create a Script Package
Create a Script Package

Scope tags

Click on Next.

Assignments

Click Add group to include an Entra security group with users or devices. Choose the schedule for running this PowerShell script: Once, Hourly, or Daily.

For testing purposes, opt for an hourly schedule. Once testing proves successful, you can switch to a Daily schedule.

Create a Script Package
Create a Script Package

Review + Create

Review the deployment and click on Create to start the deployment process.

Sync Intune Policies

The device check-in process might not begin immediately. If you’re testing this policy on a test device, you can manually kickstart Intune sync from the device itself or remotely through the Intune admin center.

Alternatively, you can use PowerShell to force the Intune sync on Windows devices. Restarting the device is another way to trigger the Intune device check-in process.

Step 3 – Monitor the Script package

To Monitor the progress of a script package deployed via Intune, follow the below steps:

  • Sign in to the Intune admin center.
  • Go to Devices Remediations.
  • Click on the Remediation script package you want to monitor.
  • Go to the Overview to find the deployment status of the script package.
Monitor the Script package
Monitor the Script package

End-user Experience

End-users won’t receive any notifications after deploying this script package to targeted devices. The script package will run silently in the background, checking if the user has configured Windows Hello for Business (WHfB). If WHfB is configured, the script will delete the WHfB registration without user intervention.

More Information

Where can you find logs for Intune device remediation scripts?

As shown in Step 3, you can monitor Intune device remediation scripts using the Intune admin center. However, to verify the execution of detection and remediation scripts, you can also review the IntuneManagementExtension.log file.

  • Browse to C:\ProgramData\Microsoft\IntuneManagementExtension\Logs and open the most recent IntuneManagementExtension.log log file. You can sort the files list using the Date modified column.
  • Open the file and search for the Intune device remediation script package. You will find Detection and Remediation scripts with Exit codes, which confirm that the scripts are working fine.

3 thoughts on “Delete Windows Hello for Business registrations using Intune”

  1. certutil /deletehellocontainer

    Running the command above manually appeared to succeed but after a reboot Windows Hello was forced on me again.

    Reply

Leave a Comment