none
Use powershell to loop psinfo.exe and export installed apps to text files RRS feed

  • Question

  • Hi,

    I am trying to use powershell in conjunction with psinfo.exe -s with variables to pull an installed programs list from a list of computers specified in a text file, but its not working as intended.  It hits the first computer in the list and just sits there.

    This is what I have so far, any suggestions?

    I want a separate text file listing the installed programs on each computer.

    Any input is appreciated.

    $computersToQuery = get-content computers.txt
    
    foreach ($computer in $computersToQuery)
       {./psinfo.exe -s Applications \\$computer > $computer.txt}   
       
     

    Thursday, October 31, 2013 4:44 PM

Answers

All replies