computer asset inventory
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
computer asset inventory
Win32_Product, although it only contains products installed through Windows Installer. So it may not include everything actually installed on the machine. Also, that class has to be added to Win2003 - it isn't there by default.
computer asset inventory
The win32Reg_AddRemovePrograms class comes from installing SMS Server 2003 onto that computer. It provides different results than Win32_Product. The actual syntax you use (-class or -query) doesn't matter.
computer asset inventory
i'm not seeing a particular software installed in the list even though it is truly installed. why is this?
computer asset inventory
As I said, it's not installed on Win2003 by default. You have to add the class.
computer asset inventory
also, how come I don't see a particular software installed ? it is truly installed as well. but, when i do a...
i do get a list, but one software (the anti virus software) is not listed. Actually, this is one of the softwares I want to filter to show that it is installed. So..
1) how come it is not showing up in the software list?
2) how can i filter it to display that it is installed?
Code: Select all
Get-WmiObject -Query "SELECT * FROM Win32_Product" -ComputerName $_ -Credential $cred |
select-object Name,Vendor,Version,InstallLocation,PackageCache,InstallDate
i do get a list, but one software (the anti virus software) is not listed. Actually, this is one of the softwares I want to filter to show that it is installed. So..
1) how come it is not showing up in the software list?
2) how can i filter it to display that it is installed?
computer asset inventory
is there an alternative to see if the software is installed? yeah this software has another installer package other than windows installer.
computer asset inventory
yes. sorry about that.
1) Can you provide me an example of the CIM_DataFile syntax? Example to find file something.exe?
2) I found how to install the WMI WIndows Installer Provider via control panel/add+remove http://msdn2.microsoft.com/en-us/librar ... S.85).aspx
3) How can out create an output file (.xml or .txt) of the results of my ps? can you provide an example?
Thanks!
Dee
1) Can you provide me an example of the CIM_DataFile syntax? Example to find file something.exe?
2) I found how to install the WMI WIndows Installer Provider via control panel/add+remove http://msdn2.microsoft.com/en-us/librar ... S.85).aspx
3) How can out create an output file (.xml or .txt) of the results of my ps? can you provide an example?
Thanks!
Dee
computer asset inventory
Here is a jump start:
It may not be what you are looking to do but it does demonstrate some ways of approaching output.
Code: Select all
gwmi -win32_product | convertto-html -head "<link href='style.css' rel='stylesheet' type='text/css' />" -property vendor,name,installlocation > products.html
It may not be what you are looking to do but it does demonstrate some ways of approaching output.