Question Locked

MSinfo32 Automation

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I'm using MSINFO32 to inventory about 100+ servers and I know how to run it using the \computer swith to gather info from a remote host, but is there a way to automate this to have a batch file read a text file with each server listed? One server per line in the text file being read ultimately looping through the list until complete. The server name would replace the computername-here below.

Here is my batch:

:: Format date as mm-dd-yyyy and assign to
:: variable 'Today'
set Today=%Date:~4,2%-%Date:~7,2%-%Date:~10,4%

:: Check for existence of backup folder and
:: create if necessary in location desired
IF NOT EXIST f:\systeminfo md f:\systeminfo

:: Generate output as .csv file (file name based on
:: computer name and date)
start msinfo32.exe /report "F:\systeminfo\%computername%_%Today%.csv" /computer Computername-Here /categories +SystemSummary+components+swenv+resources+Apps

1 reply

This discussion is closed to new replies.