Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: msinfo32.exe run get info
Any ideas ...
Here's a few more specifics:
DirChange("C:\Temp") RunShell("msinfo32", "/report msinfo.txt", "c:\temp", @hidden,@wait) exitOr assuming you have access you can access a remote machine system information withthe following code:
DirChange("C:\Temp") RunShell("msinfo32", "/computer \\Remoteserver /report msinfo.txt", "c:\temp", @normal,@wait) exit
(I'd substitute @NORMAL for the @hidden until I got it 120% debugged)
you can get msinfo32.exe command line switches from MS knowledge base article Q253534 - Gathering System Information Without GUI Interaction http://search.support.microsoft.com/kb/c.asp where I searched for Specific article ID number & used Q253534
/? Display this Help /msinfo_file Open the specified .nfo or .cab file /nfo or /s Outputs an .nfo file with the specified file name /report Outputs a text-format file to the specified file name /computer Connects to the specified computer /categories Displays or outputs the specified categories /category Set focus to a specific category at startup
You'll probably need to dig through the Network Extender for a way to get the necessary computer names IF you plan on doing it remotely. Then you'd use itemcount/itemExtract & a for-next loop to walk through them all. I'd use the computer name as the filename like so "computername".txt and use strcat to glue on the path where you want the file saved to {I'm fairly sure UNCs are OK}.
OR you could run it as part of the logon script. IF you do that, I'd insert a key in the registry when the report was finished so it would check for the registry key and not produce a report everytime the computer logged onto the network.
Article ID: W15515
File Created: 2003:05:13:11:28:28
Last Updated: 2003:05:13:11:28:28