Well if you are using XP, you can use the systeminfo tool. You will need to run this from a XP machine, but it can then be told to scan Windows 2000. Unfortunately, doesn't work for NT. It can also output the info in a particular way.
For example: SYSTEMINFO /S system /U domain\user /P password /FO TABLE > Outputfile.txt
Details:
SYSTEMINFO [/S system [/U username [/P [password]]]] [/FO format] [/NH]
Description:
This command line tool enables an administrator to query for basic
system configuration information.
Parameter List:
/S system Specifies the remote system to connect to.
/U [domain\]user Specifies the user context under which
the command should execute.
/P [password] Specifies the password for the given
user context. Prompts for input if omitted.
/FO format Specifies the format in which the output
is to be displayed.
Valid values: "TABLE", "LIST", "CSV".
/NH Specifies that the "Column Header" should
not be displayed in the output.
Valid only for "TABLE" and "CSV" formats.
/? Displays this help/usage.
Examples:
SYSTEMINFO
SYSTEMINFO /?
SYSTEMINFO /S system
SYSTEMINFO /S system /U user
SYSTEMINFO /S system /U domain\user /P password /FO TABLE
SYSTEMINFO /S system /FO LIST
SYSTEMINFO /S system /FO CSV /NH
Main Topics
Browse All Topics





by: K_2KPosted on 2004-02-20 at 16:14:28ID: 10417157
for /f "skip=3" %%K in (' net view ^| find /v "The command completed successfully" ' ) do call yourscript.bat %%K