https://www.nextofwindows.com/the-best-way-to-uniquely-identify-a-windows-machine very Windows installation has a unique UUID that you can use to distinguish machines. While computer names can change, the UUID won’t:
PS> (Get-CimInstance -Class Win32_ComputerSystemProduct).UUID 4C4C4544-004C-4710-8051-C4C04F443732
In reality, the UUID is just a GUID (Globally Unique Identifier), which comes in different formats:
If you’d like to create a new UUID (or GUID) to get a unique identifier for whatever you like to tag, i.e. temporary file names, the New-Guid cmdlet was introduced in PowerShell 5:
PS> New-Guid
Guid
16750457-9a7e-4510-96ab-f9eef7273f3e
It basically runs this .NET call behind the scenes:
PS> [Guid]::NewGuid()
Guid
6cb3cb1a-b094-425b-8ccb-e74c2034884f