Lookup GUID of Server 2016 server

IT Guy
IT Guy used Ask the Experts™
on
What is the process to lookup the Globally Unique Identifier (GUID) of a Server 2016 server?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Top Expert 2016
Commented:
$entry = 'HKLM:\SOFTWARE\Microsoft\windows nt\CurrentVersion'
(Get-ItemProperty -Path $entry -Name ProductId).productid

Open in new window

Most Valuable Expert 2018
Distinguished Expert 2018
Commented:
Since Actiove Directory is in the topic list, assuming you want Its GUID in AD, or its SID?
In the ADUC console: enable "Advanced Features" from the View menu, open the properties of the computer object, go to the Attribute Editor tab, look for objectGUID and/or objectSid
In PowerShell:
Get-ADComputer -Identity <ComputerName> | Select-Object ObjetGUID, SID

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial