Advertisement
sheldonalman

Output List of Installed Software In Windows

Jul 6th, 2013
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Sheldon Alman
  2. #sheldonalman at gmail.com
  3. #Output list of installed software into a text files, one text file per IP and one master file with all hosts
  4.  
  5. $ip = get-content C:\10.10.1.0.txt
  6.  
  7. foreach ($i in $ip)
  8. {
  9.     wmic  /node: $i computersystem get name >> C:\installList.txt
  10.     wmic  /node: $i os get name`,version >> C:\installList.txt
  11.     wmic  /node: $i product get name`,version >> C:\installList.txt
  12.     wmic  /node: $i computersystem get name >> C:\$i.txt
  13.     wmic  /node: $i os get name`,version >> C:\$i.txt
  14.     wmic  /node: $i product get name`,version >> C:\$i.txt
  15.    
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement