Windows OS Hub
  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux
  • Home
  • About

Windows OS Hub

  • Windows
    • Windows 11
    • Windows 10
    • Windows Server 2025
    • Windows Server 2022
    • Windows Server 2019
    • Windows Server 2016
  • Microsoft
    • Active Directory (AD DS)
    • Group Policies (GPOs)
    • Exchange Server
    • Azure and Microsoft 365
    • Microsoft Office
  • Virtualization
    • VMware
    • Hyper-V
    • Proxmox
  • PowerShell
  • Linux

 Windows OS Hub / Windows 11 / Fixing Duplicate Security Identifier (SID) Issues in Windows

May 25, 2026

Fixing Duplicate Security Identifier (SID) Issues in Windows

Strict uniqueness requirements for local machine Security Identifiers (SIDs) were enforced in security updates released by Microsoft in autumn 2025 for Windows 11 25H2, 24H2, and Windows Server 2025.  These updates require each computer across the network to have a unique SID and prevent network authentication (and therefore access to network shares) between computers with duplicate SIDs. The problem occurs when attempting to authenticate via NTLM/Kerberos with a computer SID that matches the local SID of the machine.

Contents:
  • How to Find Out the Local Machine SID in Windows
  • Find Computers with Duplicate SIDs in Active Directory
  • How to Change (Reset) Machine Security Identifier (SID) in Windows
  • Bypass SID Uniqueness Checks via GPO

Following these changes, administrators who had deployed Windows images to user computers and virtual machines via simple cloning (without generalizing the SID via Sysprep) experienced network connectivity failures between computers with the identical SIDs.

This is how the problem manifests itself:

If a user attempts to establish a remote connection to a computer whose SID matches the local SID of the source machine, the authentication attempt will fail with the error message The username or password is incorrect, even if valid credentials are provided.

Duplicate SIDs сause authentication failures, preventing file share and RDP access

As a result, the user will not be able to:

  • Open a shared (SMB) folder or connect a shared network printer from a remote computer
  • Connect to such a computer via Remote Desktop (RDP).
  • Connect via WinRM (PSRemoting)

In this case, an error with Event ID 6167 will appear in the System log in the Event Viewer console on the remote computer.

Source: LSA (LsaSrv)

There is a partial mismatch in the machine ID. This indicates that the ticket issued by user WOSHUB\maxbak has either been manipulated or it belongs to a different boot session. Failing authentication.
This can also happen if the machine was cloned without using sysprep. More information can be found at https://go.microsoft.com/fwlink/?linkid=2349106

Event ID 6167: There is a partial mismatch in the machine ID. This can also happen if the machine was cloned without using sysprep
This means you won’t be able to remotely connect to or access resources on computers that were cloned or deployed from the same image (without Sysprep) and have the same SID.

 Mark Russinovich’s famous 2009 article, The Machine SID Duplication Myth (and Why Sysprep Matters), created another persistent myth: that duplicate local Machine SIDs on multiple computers on a network are not a security concern and cause no problems. However, in real-world deployments, many administrators have encountered various bugs and oddities when different machines have the same local SID. Furthermore, using the same SIDs across multiple machines within a network introduces significant security risks. The most notable risk is the potential for unauthorized privilege escalation during inter-system authentication and network access operations.

Accordingly, Microsoft addressed this issue at the architectural level by introducing security updates that block remote communication between computers when duplicate SIDs are detected, including the prevention of Kerberos and NTLM authentication.

The following methods can be used to resolve the issue of duplicate SIDs on computers in your network:

  • When deploying a custom Windows image with preinstalled software and configurations, or when cloning physical or virtual Windows machines, the built-in Sysprep utility must be executed with the /generalize parameter prior to capturing, imaging, or cloning the Windows installation. This allows the Machine SID to be reset completely. When the operating system is first started from the image on any computer, a new, unique local security identifier is generated. However, this method is not suitable for existing Windows installations that have already been deployed or are running from a clone (more on this below).
  • If computers have been deployed from a non-sysprepped image, the local machine SID will need to be changed. This is not officially supported, but there are third-party tools available to regenerate the SID.
  • Workaround: you can temporarily disable the new SID uniqueness requirement via GPO or registry.

How to Find Out the Local Machine SID in Windows

It is important to understand the difference between a computer’s local SID (Machine SID) and a computer object’s SID in an Active Directory domain, as they are not the same. A domain SID is generated for a machine when it is joined to an Active Directory domain. A domain machine SID is guaranteed to be unique because it is generated and issued by the domain itself.

The local SID is generated during a clean Windows installation or after running the Sysprep utility with the generalize option. If multiple machines are deployed by cloning from a single image, they will all have the same local SID.

To get the SID of the local computer (Machine SID), you can use the PsGetsid tool from Microsoft. You can either download it to your computer or run it directly from the Sysinternals Live share.

& \\live.sysinternals.com\tools\psgetsid64.exe

psgetsid64 - get local machine SID

It is easier to obtain the local SID of a machine by extracting the value of the AccountDomainSid property from any local user:

(Get-LocalUser |Select-Object -First 1 -ExpandProperty SID).AccountDomainSid.Value

Extract machine SID using PowerShell

Find Computers with Duplicate SIDs in Active Directory

If you want to find computers with duplicate Security Identifiers in an Active Directory domain, you can use a PowerShell startup script approach. The idea is that each computer writes its local SID to one of its AD account attributes when booting up. We discussed this approach in a post about automatically filling in a computer’s description in Active Directory.

The following PowerShell script adds the local machine SID to the ‘Description’ field of the computer in AD (make sure you do not use this attribute for other purposes).You can either assign this script to the OUs containing the computers as a startup script or run it via a scheduled task in GPO.
$localSID=(Get-LocalUser |Select-Object -First 1 -ExpandProperty SID).AccountDomainSid.Value
$Computer = $env:COMPUTERNAME
$DOMAIN= (Get-WmiObject -Namespace root\cimv2 -Class Win32_ComputerSystem).Domain
$ComputerSearcher = New-Object DirectoryServices.DirectorySearcher
$ComputerSearcher.SearchRoot = "LDAP://$("DC=$(($DOMAIN).Replace(".",",DC="))")"
$ComputerSearcher.Filter = "(&(objectCategory=Computer)(CN=$Computer))"
$computerObj = [ADSI]$ComputerSearcher.FindOne().Path
$computerObj.Put( "Description", "$localSID" )
$computerObj.SetInfo()

As a result, the local SIDs of the machines will be displayed in the computer accounts’ properties in AD.

Add the local SID to the computer object properties in AD

Find and display all computers with the same SIDs using the PowerShell cmdlet Get-ADComputer:

# Find all AD computers with a filled-in Description field, excluding those that are empty.
$computers = Get-ADComputer -Filter 'Description -like "*"' -Properties Description
# Group computers with the same SID and display duplicates
$computers | Group-Object Description | Where-Object { $_.Count -gt 1 } | Select-Object Name, Count, Group|fl

Find machines with duplicate SID in Active Directory using PowerShell

How to Change (Reset) Machine Security Identifier (SID) in Windows

The only method officially recommended and supported by Microsoft for resetting and regenerating computer Security Identifiers (SIDs) is to use the Sysprep tool with the /generalize option:

cd C:\Windows\System32\Sysprep
sysprep.exe /generalize /oobe /shutdown

However, this SID regeneration method is unsuitable for already-deployed computers, as it is essentially equivalent to reinstalling the operating system. In addition to resetting the old SID, using the generalize option in Sysprep removes third-party drivers (can be bypassed using the PersistAllDeviceInstalls parameter), resets user profiles and all their settings, configured file associations, and licenses in some apps that are tied to the machine SID or hardware ID (HWID).

Therefore, SysPrep with the ‘Generalise’ option is only suitable for rebuilding existing ‘gold’ Windows images that are deployed to user workstations. In all other cases, it will be necessary to completely reinstall Windows.

Another unofficial method of changing the SID of a deployed machine without reinstalling or resetting Windows involves using the third-party utility SIDCHG ( SID changer utility ).

SIDCHG is a third-party tool that is not officially supported by Microsoft. The tool’s functionality is not guaranteed. In some cases, it may cause critical issues with Windows, including complete data loss.

You can download the SIDCHG utility here: https://www.stratesave.com/html/sidchg.html. To use the tool, either purchase it or copy the trial key from the product download page, which changes every month.

SIDCHG - get trial key

Before resetting the machine’s SID, consider the factors that could be affected by this change, as these may stop working afterwards (to find out more about these and other risks, please visit the tool’s official webpage):

  • If you use EFS encryption for files, export the key and certificate used for encryption.
  • BitLocker volume encryption must be disabled, and the machine’s drives are fully decrypted (BitLocker automatic drive encryption is enabled by default in Windows 11): manage-bde -status Disable BitLocker drive encryption
  • Export the saved passwords from Credential Manager.
  • The computer will fail to establish a trust relationship with the Active Directory domain and will need to rejoin the domain or repair the trust using the Test-ComputerSecureChannel -Repair cmdlet

So, let’s navigate to the directory containing the tool and run the command:

.\sidchg64-3.0n.exe /R

Enter the trial key.

sidchg64 - tool to reset the local machine SID on existing Windows installation

In my case, the tool detected that real-time protection in the built-in Windows antivirus was enabled, and asked me to either pause it or add its process to the exceptions list.

Disable real-time protection in Windows Security

Disable real-time protection in Windows Security, then try running the command again. After some time, you will be logged out and taken to the Windows login screen. A warning will appear notifying you that the SID is being changed on the computer, and you need to wait until it is finished and then reboot. While you wait, do not attempt to log in to your profile or manually restart the machine.

SID of this computer is being changed

After restarting the machine, check that its SID has changed.

PowerShell - ensure that the local SID has been changed

Changing the SID may cause problems with certain Microsoft Store (UWP) apps, including issues with the Taskbar and Start menu search. Use the RESETAPPS=App1_*;App2_* option in the SIDCHG tool to reset the settings of specific Microsoft Store apps. To reset the settings of all Store apps, add the /RESETALLAPPS option.

Bypass SID Uniqueness Checks via GPO

There is a temporary fix that bypasses the new Windows behavior, which blocks network access and authentication between computers with duplicate SIDs.

This is just a temporary fix and will work until the end of 2027, after which it will be disabled by Microsoft in a future security update. This is only a temporary measure to mitigate the problem if you do not have time to quickly remediate a large fleet of computers and assign them unique SIDs.

To temporarily disable SID uniqueness checking, download and install the Windows 11 24H2, Windows 11 25H2 and Windows Server 2025 KB5065426 250923_06201 Known Issue Rollback.msi update.

Windows 11 24H2, Windows 11 25H2 and Windows Server 2025 KB5065426 250923_06201 Known Issue Rollback.msi update

This update adds the new ADMX group policy template file (KB5065426_250923_0620_1_KnownIssueRollback.admx) to the C:\Windows\PolicyDefinitions folder.

Install ADMX template

To manage this option via a domain GPO, copy the ADMX template file to the GPO Central Store.

To enable this option on a specific computer, open the local Group Policy Editor (gpedit.msc) and navigate to Computer Configuration -> Administrative Templates -> Windows 11 24H2, Windows 11 25H2 and Windows Server 2025 KB5065426 250923_06201 Known Issue Rollback. Open the settings for the KB5065426_20250923_06201 Known Issue Rollback option and disable it. This will prevent the checking of SID uniqueness when accessing remote computers.

Enable the GPO option: KB5065426_20250923_06201 Known Issue Rollback

This GPO option creates just one registry item that can be enabled manually without installing the ADMX template:

reg add "HKLM\SYSTEM\CurrentControlSet\Policies\Microsoft\FeatureManagement\Overrides" /v 1517186191 /t REG_DWORD /d 0 /f

Bypass strict SID uniqueness checks in Windows 11

Then restart the computer to apply the changes. After rebooting, you will be able to connect to the remote computer (open a shared folder, map a network drive, or a printer), even if the local machine SIDs are the same. However, this is only a temporary fix. According to Microsoft, it will only work until the end of 2027, after which you will still need to change duplicate SIDs on computers.

0 comment
0
Facebook Twitter Google + Pinterest
Windows 11Windows Server 2025
previous post
Monitor a Folder for File Changes Using PowerShell and FileSystemWatcher

Related Reading

How to Move (Migrate) Windows Shares to a...

February 26, 2026

How to Detect Which User Installed or Removed...

June 25, 2025

Security Warnings When Opening RDP Files in Windows...

April 20, 2026

Find a Process Causing High Disk Usage on...

July 16, 2025

Monitor Windows Log Files in Real Time with...

March 26, 2026

SMB over QUIC: Mount File Share over Internet...

December 24, 2025

Pin and Unpin Apps to Taskbar in Windows...

March 26, 2026

Windows: Create (Install) a Service Manually

December 17, 2025

Leave a Comment Cancel Reply

join us telegram channel https://t.me/woshub
Join WindowsHub Telegram channel to get the latest updates!

Recent Posts

  • Fixing Duplicate Security Identifier (SID) Issues in Windows

    May 25, 2026
  • Monitor a Folder for File Changes Using PowerShell and FileSystemWatcher

    May 15, 2026
  • Protect Windows Server from DDoS and Brute-Force Attacks with IPBan

    May 12, 2026
  • How to Force Uninstall ANY Stubborn Program in Windows

    May 7, 2026
  • How to Safely Disable IPv6 on Windows

    April 30, 2026
  • Updating UEFI Secure Boot Certificates on Windows Devices Explained

    April 20, 2026
  • Security Warnings When Opening RDP Files in Windows 11

    April 17, 2026
  • Find Computers with Pending Reboot Status Using PowerShell

    April 15, 2026
  • Mounting NFS Shares in Windows Using the Built-in Client

    March 26, 2026
  • Monitor Windows Log Files in Real Time with PowerShell

    March 17, 2026

Follow us

  • Facebook
  • Twitter
  • Youtube
  • Telegram
Popular Posts
  • SMB over QUIC: Mount File Share over Internet without VPN on Windows Server 2025
  • Configuring RemoteApps Hosted on Windows 10/11 (without Windows Server)
  • Security Warnings When Opening RDP Files in Windows 11
  • How to Remove ‘Some Settings are Managed by Your Organization’ on Windows 11 or 10
  • Unable to Select Edition During Windows 10/11 Installation
  • Remove the Max Path Length Limit (260-Characters) on Windows
  • How to Hide (Block) a Specific Windows Update
Footer Logo

@2014 - 2026 - Windows OS Hub. All about operating systems for sysadmins


Back To Top