Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Sheldon Alman
- #sheldonalman at gmail.com
- #Output list of installed software into a text files, one text file per IP and one master file with all hosts
- $ip = get-content C:\10.10.1.0.txt
- foreach ($i in $ip)
- {
- wmic /node: $i computersystem get name >> C:\installList.txt
- wmic /node: $i os get name`,version >> C:\installList.txt
- wmic /node: $i product get name`,version >> C:\installList.txt
- wmic /node: $i computersystem get name >> C:\$i.txt
- wmic /node: $i os get name`,version >> C:\$i.txt
- wmic /node: $i product get name`,version >> C:\$i.txt
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement