I am using this command on several computers
get-ciminstance -class SoftwareLicensingProduct -ComputerName $Computer -Filter "Description like '%office%'"
All have Office installed. Some are activated some are not. Thanks to O365 I had to upgrade everyone in the company and at some point, my VL ran out and some did not get activated.
Anyway, some computers come back with the desired information others do not return anything. I then tried on the ones that returned nothing to get all licenses and yes it returns the Windows license status correctly. Why can't I get the Office license from these computers? And yes I did a sanity check one and it does have Office installed.
Any help would be greatly appreciated.
Thanks in advance,