Am trying to write the output of this command into a variable, but can't quite get the syntax to work...
My WMIC query is:
wmic PATH SoftwareLicensingProduct WHERE "ProductKeyID like '%-%' AND Description like '%Windows%'" get LicenseStatus
Can anyone help?