Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scheduling/Executing on all computers in domain?

Status
Not open for further replies.

humbletech99

Programmer
Nov 22, 2005
155
GB
Is there a way to schedule/execute a script on all computers in a 2003 active directory domain?

I know I can add a script to startup/shutdown via the gpo for the domain but I want to actually schedule a script to run on all computers while they are up. I just can't do this via startup/shutdown scripts since a lot of the machines will not reboot for a long time to come.

Since my group policies update fairly frequently and I know some settings can take effect immediately like firewall settings, it must be possible to get the gpo to distribute a job to be carried out by all machines or there must be some other tool or way of doing this.
 
well, either a batch or a python script. Basically anything that can be run from the command line.
 
Have you considered executing a batch file/vbscript when users login. This also can be performed via Group Policy. Hope this helps.
 
as I mentioned above I can't really go around and reboot everything so logon scripts aren't really an option here.
 
What do you want the .bat or python script to do?

The reason I ask, it because depending on what you want to accomplish you could create a VBScipt to remotely connect to all your PC's to accomplish the task... but, what is the task you want to accomplish?
 
If your answer is basically anything that you can do from a command prompt, that leaves your solution wide open. there are a lot of tasks you can complete remotely using command utilites and VBScript.

If you are unfamiliar with VBScripting, there is a forum that can answer some of your questions. forum239

As an Admin\Engineer I would highly recommend that you start using VBScripting and PowerShell to automate your admin tasks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top