|
Answer» Here's my situation.
I am creating a batch file that would auto restart computers and logins. The issue I am getting here is if the batch file is executed through remote procedures (remote machines), my batch file to auto login does not work. I would GET an error stating remote procedures failed. If I run my batch files locally on the machine, it has no problem restarting and logging in.
So my question is how do I execute a remote command that would run my batch file locally on a particular machine?
Example: my computer is Computer A. Computer B is a test machine. I WANT to execute a command from Computer A to run a batch file that is located on Computer B. But I want to run the batch file locally on Computer B.
OH I have tried "CALL" and our DOS version don't support "rexecd". Hi,
For this kind of tasks I use psexec from pstools. I actually saw the psexec but I can't install anything on most of the computers I am working on. Any other ideas?There 's nothing to install but only an exe to copy to your PC. Nothing is needed but a valid account on the remote PC.
From your PC, the command to execute The_batch.cmd on a remote PC would be something like :
psexec \\"remote computer or ip address" - u "valid account on remote" -p "valid password on remote" -c (this option is optional and copies The_Batch.cmd on the remote PC) "The_batch.cmd"
Regards.
yeah, I know it's just copying files over but where I work they are pretty picky on what's on your computer. Let's just say I would not risk it.
After some DIGGING around found that I could use Task Scheduler. The only down side to this is user will have to wait for 2-5 minutes for Scheduler to activate it. I tried doing it (command "at") without time but it keeps telling me my parameters are wrong. At least it's a solution.
If you guys know how to admit time for the "at" command that would be great.This doesn't sound right to me.....
You can google the AT command.
yeah, I have google the "at" command. I tried it the way it was mentioned but my computer for some reason still requires a time. Is it different for MS- DOS version?
|