DOSR
Top  Previous  Next


Requirements
·Remote admin service  

DOSR
Timeout, Command

Timeout
Seconds, 0-60000  
Any command that does not finish within the timeout period will stop and return an error.  

Command
Command to execute / program to run + command line parameters. Remember to specify full path for executables unknown to the system.  

Other parameters
This command is executed on the current machine that NTinfo scans.  

Tip
The %machine% variable contains the name of the machine that NTinfo currently scans.

Examples
1) Get IP configuration by running "ipconfig /all" on remote machines. Extracted properties: adapter description, physical address, DHCP setting, IP address, subnet mask, default gateway and DNS servers.

Copy the section below, click the tab labeled "SetupBatcher & NTreport " and paste.

[Aux_Begin]
DOSR 10 ; del tmpout.txt
DOSR 10 ; ipconfig /all >tmpout.txt
Import.Textfile2 \\%machine%\admin$\system32\tmpout.txt ; DESC ; Descr ; :
Import.Textfile2 \\%machine%\admin$\system32\tmpout.txt ; PHYS ; Phys ; :
Import.Textfile2 \\%machine%\admin$\system32\tmpout.txt ; DHCP ; DHCP Enabled ; :
Import.Textfile2 \\%machine%\admin$\system32\tmpout.txt ; IP_ADDR ; IP Addr ; :
Import.Textfile2 \\%machine%\admin$\system32\tmpout.txt ; SUB_MASK ; Subnet ; :
Import.Textfile2 \\%machine%\admin$\system32\tmpout.txt ; GATE ; Gateway ; :
Import.Textfile2 \\%machine%\admin$\system32\tmpout.txt ; DNS ; DNS Servers ; : ; 1
[Aux_End]


2) Get number of active TCP connections by running "netstat -s" on remote machines

[Aux_Begin]
DOSR 10 ; del tmpout.txt
DOSR 10 ; netstat -s >tmpout.txt
Import.Textfile2 \\%machine%\admin$\system32\tmpout.txt ; TCP_CON ; Current Con ; =
[Aux_End]