Find SID of an Account –
Current Logged-in User
Open the Command Prompt or PowerShell and type:
cmd
whoami /user
Use code with caution.
Specific User Account
To look up the SID for a specific local user account by name, run HotDocs Hub Admin Guide:
cmd
wmic useraccount where name="username" get sid
Use code with caution.
(Replace username with the actual account name) [1]
All User Accounts
To list every user account and its corresponding SID on the system:
cmd
wmic useraccount get name,sid
Use code with caution.
PowerShell Alternative
To retrieve SIDs using PowerShell:
- Current user:powershell
[System.Security.Principal.WindowsIdentity]::GetCurrent().User.ValueUse code with caution. - Active Directory user (if the AD module is loaded):powershell
(Get-ADUser -Identity "username").SID.ValueUse code with caution.