OrphanedSid

1.0.0

Finds orphaned SIDs in Active Directory ACLs, removes them with a backup of every ACL it touches, and restores an ACL from that backup

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name OrphanedSid -RequiredVersion 1.0.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name OrphanedSid -Version 1.0.0

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2026 Jeffrey Stuhr. All rights reserved.

Package Details

Author(s)

  • Jeffrey Stuhr

Tags

ActiveDirectory AD SID OrphanedSID ACL Security Permissions Cleanup Audit Compliance Backup Restore Windows

Functions

Find-OrphanedSid Remove-OrphanedSid Restore-OrphanedSidBackup

PSEditions

Desktop Core

Dependencies

This module has no dependencies.

Release Notes

1.0.0 - First release as a module.
Find-OrphanedSid, Remove-OrphanedSid and Restore-OrphanedSidBackup replace the three modes of the
Find-UnknownSID.ps1 script that lived in the TechbyJeff repository. Results are written to the
pipeline as objects; -OutputPath still writes a CSV. Remove-OrphanedSid and
Restore-OrphanedSidBackup prompt before changing anything and need -Force (or -Confirm:$false)
to run unattended.
See CHANGELOG.md for the detail.

FileList

Version History

Version Downloads Last updated
1.0.1 8 11/9/2026
1.0.0 (current version) 8 11/9/2026