Save value in string

echo system( ‘echo | C:\WINDOWS\System32\wbem\wmic.exe path win32_computersystemproduct get uuid’);

I need to save the result of this code in a string, example:

$string = system (‘echo | C: \ WINDOWS \ System32 \ wbem \ wmic.exe path win32_computersystemproduct get uuid’);

but it doesn’t work!

1 Like

Resolved!!!

BTW for those who want to get a unique system ID for hardware-locking, here is a sample:
Adding custom headers to requests (exeoutput.com)

1 Like