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”.
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.