Help for this page

Select Code to Download


  1. or download this
    get-wmiobject Win32_ComputerSystemProduct | Select-Object -ExpandPrope
    +rty UUID # this runs fine from command line
    
  2. or download this
    my ($UUID) = system ("get-wmiobject Win32_ComputerSystemProduct | Sele
    +ct-Object -ExpandProperty UUID"); # 'get-wmiobject' is not recognized
    + as an internal or external command
    my ($UUID) = system ('get-wmiobject Win32_ComputerSystemProduct | Sele
    +ct-Object -ExpandProperty UUID');
    my ($UUID) = `get-wmiobject Win32_ComputerSystemProduct | Select-Objec
    +t -ExpandProperty UUID`; # same error as above, `` works perfectly fi
    +ne on macOS