Need SYSTEMINFO command script help

avatar

I need an easy way to run SYSTEMINFO on each machine and output to a file in a folder or input to the "Notes" field of each scanned session entry.
I am currently using systeminfo /S $HOST$ /U "{1}" /P "{2}" with Execution mode to Capture output to file: C:\systeminfo\$HOST$-$DATE$.txt
But getting invalid file path errors and initial run cmd needs me to hit enter. I'm sure this is easy for someone to do...

Thanks

David Bannerman
Linfield Christian School

All Comments (2)

avatar

Hello,

The enter key can be sent using our Keyboard Macro feature, in the events tab.

What are the invalid file path errors? Right off the bat I would suggest you use DATE_TEXT_ISO and TIME_TEXT_ISO to prevent any issue with date formats.

Maurice

avatar

Let me start over, I made a macro called SYSTEMINFO with the folowing run command "systeminfo /S $HOST$" also used the /U and /P. The Execution mode is capture to a file c:\systeminfo\$HOST$.txt. I can get the macro to work on each remote machine one at a time, but I want to run on all machines. I will then have the information I need that I can reference for each machine. At some point I can cut and paste that info into the Information / Notes tab of each machine. If I try to select say 5 machines and run the script, it only runs on 1 and quits. Am I going about this wrong? Is there an easier way to gather each machines info into the RDM database?

David Bannerman
Linfield Christian School