Monday, 31 August 2009

Get local computer UUID/GUID using Windows Powershell

Use the following syntax to get the local computer's UUID/GUID using Windows Powershell:
get-wmiobject Win32_ComputerSystemProduct  | Select-Object -ExpandProperty UUID

Add -computername after the WMI class to find a remote computer's UUID, example:
get-wmiobject Win32_ComputerSystemProduct -computername RANTPC | Select-Object -ExpandProperty UUID

No comments:

Post a Comment

Note: only a member of this blog may post a comment.