Solved

Run a Ms-Dos Command Remotely

Posted on 2011-03-16
6
274 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
DOSBox Keyboard 3 72
Batch file to delete a folder 5 71
question about windows batch/script 3 52
Need to delete empty sub dirs but not include the directory itself 10 68
The following is a collection of cases for strange behaviour when using advanced techniques in DOS batch files. You should have some basic experience in batch "programming", as I'm assuming some knowledge and not further explain the basics. For some…
One of my most closely kept secrets is revealed in this discussion How to output text on the same line This question was recently posted in EE by Simon336697 (http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_2459…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 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

16 Experts available now in Live!

Get 1:1 Help Now