Hi all,
I am just a babe to powershell so please be gentle. I am just learning what powershell can do for me as a desktop admin. I will be straight forward can I or has someone already written a powershell script that I can run against a group of computers to see if they recently have had software licenses applied to them basically I was tasked by my boss to find a way to gather a listing of PC with their corresponding PC names that recently had or have a license for any piece of software installed.
Now I realize this is a tall order but there must be a way I can do this? I hope I don't have to use vbscript to accomplish it I really think powershell would be best.
Please respond to me if you have the time.
You could consider using WMI as the basis of your solution. Using WMI and PowerShell is relatively easy because there is WMI support built into PowerShell. I would start with this example and start exploring:
get-wmiobject -class "Win32_Product" -namespace "root\CIMV2" | Select-Object -Property Name, InstallDate, Version, Vendor
Name InstallDate Version Vendor---- ----------- ------- ------Windows Media Player F. 20080726 1.0.0.8 Microsoft Corp
Read this article for some of the caveats for using Win32_Product in this article.
PowerShell has lots of additional features for saving information, comparing data, etc. You can easily take data collecting from a script and store it in a back-end inventory database (See some of the SQL Server examples scripts on this forum) or more simply an XML file.
Have fun and good luck in your exploration of PowerShell.