Tuesday, February 9, 2016

PowerShell Tips : Useful class for getting information on Software licenses information on Windows by using PowerShell.


Looking for finding software licencing information of Windows or other products, try the below command and try to add filters as per your requirements.
You are gonna love it.
Get-CimInstance -ClassName SoftwareLicensingProduct

OR try it.
Get-CimInstance -ClassName SoftwareLicensingProduct |Where{$_.PartialProductKey -and $_.Name -like "*Windows*"}



With Regards.
Aman Dhally
If you like, you can follow me on Twitter and Facebook. You can also check my “You Tube channel for PowerShell video tutorials. You can download all of my scripts from “Microsoft TechNet Gallery”.

1 comment: