run bat file

1675 pts.
Tags:
Batch files
Microsoft Windows Server 2003
Microsoft Windows Vista
Microsoft Windows XP
Windows Server 2008
I need to deploy a batch file 123.bat to collect system information to a server in my network.And want to run this bat file on a daily basis at a particlual time .I can simply create a user logon script for this .but my problem is we have more than 200 systems and normlly the users didnt shutdown the system.so I cant run as a logon script .Is there any wany to run the script on a daily basis in fixed time ?

Thanks,

 



Software/Hardware used:
windows xp 2003 ,2008,vista

Answer Wiki

Thanks. We'll let you know when a new response is added.

Yes, you can use a GPO to setup a scheduled task which would be created on all the machine which are effected by the GPO.

Put the batch file in a network share, then add a scheduled task to the GPO. By the next day all the machines will have the new GPO settings and will begin running the task.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • sumeshbnr
    Hi, Thanks for your information .How can I add a script through GPO my ADS is runnning in windows 2000 server na I couldnt see the preferences otion under user /computer configuration .Please help Thanks
    1,675 pointsBadges:
    report
  • ScottSCarver
    Check out the pstools available from Microsoft. One of the apps in the list is psexec. You can create your batch file on the server, create a scheduled task to run the batch file. In that batch file should be something like: psexec \* \servernameshare123.bat You may need to include the -u adminaccount -p password switches, depending on the type of information you need. Make sure the batch file is located in a directory that your pc's will have access too. That's what I have done...in a nutshell.
    90 pointsBadges:
    report
  • Kevin Beaver
    You could also create a file and email it to your users and have them run it or somehow tie it into another login script elsewhere on your network such as an intranet site.
    17,740 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following