Solved

Run a Ms-Dos Command Remotely

Posted on 2011-03-16
6
267 Views
Last Modified: 2012-05-11
Hi,

I need to run a Ms-Dos command from one server to another. say i m on  server 78.246.105.126 and need to execute a command on 78.246.105.125 how would I execute that command. The background of the problem is i have  search server program installed on 78.246.105.125 and I need to run a clear search command like indexeradmin clearcollection ABC from 78.246.105.126?

78.246.105.125 has windows server 2003 installed on it.
0
Comment
Question by:mmalik15
  • 3
  • 2
6 Comments
 
LVL 4

Accepted Solution

by:
LeDaouk earned 500 total points
ID: 35147324
0
 
LVL 16

Expert Comment

by:Brian Pringle
ID: 35147357
You want to use PSExec from the above link.  You issue the following to run the program

psexec \\computername programname.exe
0
 

Author Comment

by:mmalik15
ID: 35147422
thanks for the comments

I have slightly different issue as i dont want to run an exe file on a remote computer.

say if i m logged on 78.246.105.125 and i have command window open i will type in the following command and this command would execute

C:/indexeradmin cleancollection somename

now I want to run and schedule this command using a batch file on 78.246.105.126. I know how to create a task and schedule it, all i m looking for is the command which i need to put in batch file
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 4

Expert Comment

by:LeDaouk
ID: 35147443
yeh use it to run the command prompt on the remote computer
0
 
LVL 4

Expert Comment

by:LeDaouk
ID: 35147449
psexec \\computername cmd.exe
0
 
LVL 16

Expert Comment

by:Brian Pringle
ID: 35147487
If you are asking about making a scheduled task, the command is "at".  Go to a command line and issue the following command for instructions.

at /?

0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Using dates in 'DOS' batch files has always been tricky as it has no built in ways of extracting date information.  There are many tricks using string manipulation to pull out parts of the %date% variable or output of the date /t command but these r…
YESTERDAY YESTERDAY.BAT is inspired by a previous article I wrote entitled: TOMORROW.BAT (http://www.experts-exchange.com/OS/Microsoft_Operating_Systems/MS_DOS/A_4196-Advanced-Batch-File-Programming-TOMORROW-BAT.html). The crux of this batch f…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now