
MS DOS BATCH FILE VIA 2008 R2 Scheduled Task / zaib
Recently I upgraded one of our old File server previously running Windows 2003 with Windows 2008 R2 64bit. this server was a member of AD and was logging with domain admin account. Everything went smooth, but after few days I faced an strange issue that few scheduled BATCH files were not running properly at given time. If I try to execute batch file manual, they give proper result, but from schedule they dont, even by right click on the task and selecting RUN dont actually execute the batch file. To resolve this issue I added the admin account in Domain Group Policy and every thign now running fine as expected.
- Edit Group Policy at Domain Controller
- Goto “Computer Configuration” Policies > Windows Settings > Security Settings > Local Policies > Users Rights Assignment
- Now on Right side menu, Double click on “Log on as a batch job” to take its properties,
- then click button “Add user or Group“
- then click button “Browse”
- then click button “Advanced”
- then button “Find now“
- Add your required user ID / Account here like “administrator” or likewise
- and then “OK“
- Force by gpupdate /force at DC and Client as well.
- (Or if pc is stand alone, then goto “Start” > Administrative tools > local security policy”)
.
This solved my problem of BATCH files not running via Scheduled Task,
Regard’s
Hi Syed, greeting for the day. thanks for sharing these information it will be good for who all are looking in server side his carrier.
*Thanks & Regard* *Brijesh Singh* *mobile no*. 7411113401
On Fri, Jul 18, 2014 at 9:14 AM, Syed Jahanzaib Personnel Blog to Share
LikeLike
Comment by Brijesh Singh — July 18, 2014 @ 10:44 PM