On 3 Jul 2008 at 10:15, Klint Price - ArizonaITPro wrote:
> What I am looking for is a free-ware utility (or script) that will read from
> a list of computer names in a txt document, and spit out a tabulated file
> with server name, ip address (or error for that line if it is not
> reachable), server os and service pack.
Couldn't you use MBSA do this?
Microsoft Baseline Security Analyzer (MBSA) version 1.2.1
To run the tool from the command line (from the MBSA installation folder),
type mbsacli.exe, and use the following parameters.
mbsacli [/c|/i|/r|/d domainname|ipaddress|ipaddressrange] [/n option]
[/sus SUS server|SUS filename] [/s level] [/nosum] [/nvc] [/o
filename] [/e] [/l] [/ls] [/lr report name] [/ld report name] [/v]
[/?] [/qp] [/qe] [/qr] [/q] [/f] [/unicode]
http://support.microsoft.com/kb/320454
Dump your list of servers into a text file, then use FOR to run MBSA against
each line in the file:
FOR /F ["options"] %variable IN (file-set) DO MBSACLI [command-parameters]
file-set is one or more file names. Each file is opened, read
and processed before going on to the next file in filenameset.
Processing consists of reading in the file, breaking it up into
individual lines of text and then parsing each line into zero or
more tokens. The body of the for loop is then called with the
variable value(s) set to the found token string(s). By default, /F
passes the first blank separated token from each line of each file.
HTH
Angus
--
Angus Scott-Fleming
GeoApps, Tucson, Arizona
1-520-290-5038
+-----------------------------------+
~ Upgrade to Next Generation Antispam/Antivirus with Ninja! ~
~ <http://www.sunbelt-software.com/SunbeltMessagingNinja.cfm> ~