• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

"Pushing" a task or two to network workstations

scauffiel

Senior member
Hey guys and gals, I'm looking for a way to have a batch file run about every six hours on all of my (30ish) workstations on my work Win2k/2k3 network. I've checked using a GPO to run a scheduled task, but can't seem to find what I'm looking for. In essence I need this batch file to run to 'update' our virus scanner (don't ask - it's a horror show) else occasionally workstations will get dropped and not get updated or scanned like they should. So, if I run this batch file every six hours workstations will be sure to stay connected.

Is there a simple way to implement something like this? Set up a task (or four tasks, one for every six hours) on the DC or member servers, and then push it to every workstation?

Appreciate any insight,
Steve
 
There are a lot of ways you could do this I guess... The solution that comes to my mind would be to use Sysinternals psexec.exe command (part of the PsTools package) and essentially run a loop running it on each system. You could either use a static text file for the list of systems or try getting it at runtime using the net view command. If you build the list dynamically like this, you will probably want to also include logic to have a static EXCLUSION list that's a text file somewhere. This way you won't need to update the list everytime you add a PC or the name of the PC changes, AND you'll be able to exclude specific machines like your DC, etc... (if you want).

Hope that helps? It'd probably be easiest just to do it in VBScript depending on what you know best.
 
Back
Top