Solved

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

Posted on 2016-08-25
4
58 Views
Last Modified: 2016-08-25
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.
0
Comment
Question by:ccfcfc
4 Comments
 
LVL 83

Accepted Solution

by:
oBdA earned 500 total points
ID: 41770083
In the properties of the task in the "General" tab, check the box "Run with highest privileges".
0
 
LVL 16

Expert Comment

by:Dirk Mare
ID: 41770086
Open Test scheduler, right click the task and then click properties.

Under General Tap
Security Options
DirkMare
0
 
LVL 18

Expert Comment

by:Sushil Sonawane
ID: 41770099
0
 
LVL 6

Expert Comment

by:sAMAccountName
ID: 41770476
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.
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…
This tutorial will walk an individual through the process of configuring their Windows Server 2012 domain controller to synchronize its time with a trusted, external resource. Use Google, Bing, or other preferred search engine to locate trusted NTP …

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question