This is some VBScript code which generates a random GUID and copies it to the clipboard. It doesn’t copy the brackets intentionally, so that pasting the GUID can be used for multiple scenario’s such as MSI (ProductCodes and PackageCode etc, by adding the brackets manually) and App-V XML attribute values (For Package GUIDs and Version GUIDs etc, where no brackets are required).
Powershell version maybe..
[guid]::NewGuid()
Nice hints & tips Kae !