Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: Run Batch File On Remote Computer Without PsExec

16 Nov 2012   #11

win 7 64 bit

Ran across this thread while reseaching another subject -
Problem restated - Desire to initiate running a bat file from a network share without using RDP, etc. tools
Solution -
Make a bat file that runs at a set time (scheduled task) or event (Logon script)
Step 1. Make a local bat file and copied to each server that does the folllowing steps
a) Checks for current flag on network share. This could be version number inside a file, or an if exists stepment where the names of the servers are in a run_now folder
b) possible pre-execute stage is write to a log file on share so that know run recieved
c) Execute target bat file
d) post execute stage, remove flag (update local version number so will not re-run or remove server named file from run_now) Both methods have good points. In the run now folder I can at a glance see which machines have not run, in the version method, the local machine version info will tell me when the last update was run.

If you have servers in groups, then a simple push bat file would set things up. For the if exists method
Push FishTeam would just have a series of xcopy with Fish1, fish2, etc. being copied to the Run_now folder

For version number, you can have groups of servers in the version control file.
So Fish would go from 2.5 to 2.6 would mean all the servers configured for Fish would now update.

I have used both and the bat programming is easy. It mainly is which is easier to wrap head around what is going on.

My System SpecsSystem Spec

 Run Batch File On Remote Computer Without PsExec

Thread Tools

Similar help and support threads
Thread Forum
Determine if a network computer is online from a batch file
Under Win 7 I have a batch file in which I want to include an If Exist statement to determine if a specific Network computer is on the network. I thought something like this would work but I keep getting an invalid path error. If exist \\HP-Laptop\\ 'do a little something' Will some please...
Network & Sharing
How to Create a Batch file for last logged on for a remote use
So I am looking to create some kind of batch file or script where I can click on asks for the machine name, I enter it and then it displays the last logged on user. The following command " wmic /NODE:"computername" computersystem get Username" gives me the desired results but I am...
Network & Sharing
[Help] Crash Windows 7 Computer, Batch File [Wrong Section?]
Hey guys, i'm new to this forum, obviously since this is only my first post. I don't know where to actually post this so if a forum mod would like to move this feel free. But i'm looking for a way to crash a Windows 7 computer, using a batch file. I know a decent amount about DOS/Batch files,...
General Discussion
Batch File that grabs file names from folder to insert into batch file
Ok I'm totally at a loss on how to word this so I'm just going to write it out the best that I can... :confused: First I have a batch file that I'm writing that will convert mp4 files to mp3 files (I have a lot) for a buddies band using ffmpeg. Here's the code that I'm using: ffmpeg -i...
General Discussion
Run batch file when network computer is detected
I'm looking for a way to have a batch file run when a network computer is detected. My laptop is often times inaccessible to my desktop unless I ping it first. So I've created a batch file to ping the laptop but now I need to find a way to have it run when the laptop is detected on my local...
Network & Sharing

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 18:41.
Twitter Facebook Google+