Working on an inventory project where I need to link a computer to an object in Active Directory.
I have an export of all computer objects from Active Directory including some unique identifiers such as objectGUID and objectSID.
I now need to query the local device (ideally via powershell) for one of those unique identifiers so I can positively link the device to the computer object in Active Directory. The device may be off network, and not able to access a domain controller when it is queried.
Is the Active Directory computer object's objectGUID or objectSID attribute stored locally on a domain joined computer?