This script gets the user SID for the current username. If the same name exists in both the local computer and the domain, both SIDs will be returned.
This script will query the SID used by the computer as well as the domain object SID used by Active Directory and return the output for both.
For the local SID that the computer uses for itself, this is the same as the SID for the local Administrator without the -500 on the end.
For the Domain Object SID, this is queried from Attribute editor of the Computer object in AD.