About the Authors


  • David Lau

    Hashim Mundol

    Aaron Hai

    Avto Chachava

    Martin Langolf

Translate

« Install Autodesk DWG TrueView silently without desktop shortcut | Main | A Celebration of Life.... »

12/16/2015

Comments

Peter

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

Hashim

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

Pierre de la Verre

Thanks, works fine.

But the output is created only if there are blanks in the command:

....Vendor>myoutput.txt -->> .... Vendor > myoutput.txt

Hashim

Thanks, my typo in the second example :)

mike-d

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.

Hashim

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

The comments to this entry are closed.


Virtual Agent

RSS Feed