Power shell to list all Autodesk products installed on a windows machine
get-wmiobject Win32_Product |where {$_.Vendor -like "*Autodesk*"} |Format-Table IdentifyingNumber, Name, LocalPackage, Vendor -Wrap
« Install Autodesk DWG TrueView silently without desktop shortcut | Main | A Celebration of Life.... »
The comments to this entry are closed.
Hi
I never usd PS before, so I opened the PS ISE (Win 7 x64 German), pasted the code to the editor and pressed "Run Skript / F5".
It took around 2-3 min (the next start was done after 2-3 seconds), then I got the result. The problem is, that every column is limited to 32 characters, so the result is like:
{5783F2D7-8001-0407-1102-00... AutoCAD 2010 Language Pack ... C:\Windows\Installer\b5227... Autodesk
Any (simple) idea to improve?
Peter
Posted by: Peter | 12/16/2015 at 03:41 PM
Hi Peter
you can use -Wrap parameter to fit the content into a column or reduce the number of columns.
also use > to output to a file.
e.g
get-wmiobject Win32_Product |where {$_.Vendor -like "*Autodesk*"} |Format-Table IdentifyingNumber, Name, LocalPackage, Vendor -Wrap >myoutput.txt
OR
get-wmiobject Win32_Product |where {$_.Vendor -like "*Autodesk*"} |Format-Table IdentifyingNumber, Name -Wrap -GroupBy Vendor >myoutput.txt
More on Format-Table cmdlet can be found here
https://technet.microsoft.com/en-us/library/dd347677.aspx
Posted by: Hashim | 12/16/2015 at 04:25 PM
Thanks, works fine.
But the output is created only if there are blanks in the command:
....Vendor>myoutput.txt -->> .... Vendor > myoutput.txt
Posted by: Pierre de la Verre | 12/18/2015 at 11:22 AM
Thanks, my typo in the second example :)
Posted by: Hashim | 12/18/2015 at 11:24 AM
Hello All, thanks for the script. this works nicely.
Can someone tell me what does 'IndentifyingNumber' means? is that a unique number related to the SN? also, is there a way to get more detailed info, for example - is there a way to get the revit build number on the current local machine?
thank you.
Posted by: mike-d | 01/29/2016 at 08:15 PM
IndentifyingNumber is usually the GUID of the package.
More details could be found here.
https://msdn.microsoft.com/en-us/library/windows/desktop/aa370568(v=vs.85).aspx
Finding accurate build number for Revit might be bit challenging with this method,
You could try to get the version information with one of the commands listed below. but not the absolute build number
https://technet.microsoft.com/en-us/library/dd347651.aspx
To get the real build number you could get the ProductVersion Number from Revit.exe file using powershell
e.g.
(Get-Item "C:\Program Files\Autodesk\Revit 2016\Revit.exe").VersionInfo | fl *
Hope this helps
Posted by: Hashim | 02/01/2016 at 12:19 PM