I need a way to check via PowerShell if Windows is activated, I’ve found a working solution:
Get-CIMInstance -query “select Name, Description, LicenseStatus from SoftwareLicensingProduct where LicenseStatus=1” | Format-Wide LicenseStatus
But i don’t find a way, to get the Result (the 1 (if activated)) as a simple string, maybe someone has an idea ?
I guess it’s very simple, but i don’t even know what to ask Mr. google in this case.