SYNOPSIS
sid [[domain\]user ... ]
sid [security_ID]
DESCRIPTION
The sid command displays the security identifier in the standard format, for either the current user, or a given user, optionally specified with a domain.
Also, if a security identifier is specified, sid sid displays the user associated with that identifier.
EXAMPLES
This example takes all the users on the local system, finds their registry hives, takes the registry hive and loads it, and adds "-o vi" as an option setting to the registry information for the PTC MKS Toolkit shell.
plist='users\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList' for user in $(userinfo -b | cut -f1) do sid=$(sid_$user) profile=$(registry -r -p -k "$plist"\\$sid -n ProfileImagePath) # Ignore an error if already loaded... registry -s -L $profile/ntuser.dat -k users -n $sid registry -s -k \ 'users\'$sid'\Software\Mortice Kern Systems\Toolkit\Shell' \ -n OptionSettings -V "-o vi" # Will get an error trying to unload, if we didn't do the load registry -s -U -n $sid done
DIAGNOSTICS
Possible exit status values are:
PORTABILITY
Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.
AVAILABILITY
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
PTC MKS Toolkit 10.4 Documentation Build 39.