PowerShell: Return User SIDs from HKEY_USERS
This will return user SIDs using pattern matching. In the code below, S-1-5-21 and S-1-12-1 are the SID patterns we’re looking for. Also notice how we’re excluding SIDs with _Classes. Code.ps1 # MrNetTek # eddiejackson.net # 11/14/2024 # free for public use # free to claim as your own # Return SIDs that match Read More …