Avatar of ccfcfc
ccfcfc
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Running a batch programme as a scheduled task - how to set "Run as adminstrator"

Running Active Directory in a 2012 Domain.  I have a script/batch programme that works if I run it "as administrator" if I run it as a scheduled task it fails as it needs to run "as administrator"
How to do I resolve this issue ? Is it a policy setting of some how set this on the file so when TASK SCHEDULAR runs it ..it runs.
Windows BatchWindows Server 2012Active Directory

Avatar of undefined
Last Comment
sAMAccountName

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Dirk Mare

Open Test scheduler, right click the task and then click properties.

Under General Tap
Security Options
DirkMare
Sushil Sonawane

sAMAccountName

Suggesting they blindly turn off UAC without knowing their environment is horrible advice.

Is this job running on a domain controller or a member server?  If its a domain controller, checking "run with highest privilege" might not work.  If thats the case, you can force taskmgr to invoke the job using "NT_AUTHORITY\System", which may work for you.
Your help has saved me hundreds of hours of internet surfing.
fblack61