get-wmiobject Win32_ComputerSystemProduct | Select-Object -ExpandProperty UUID # this runs fine from command line