Solved

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

Posted on 2016-08-25
4
48 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 82

Accepted Solution

by:
oBdA earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
0
 
LVL 5

Expert Comment

by:sAMAccountName
Comment Utility
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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

How to remove superseded packages in windows w60 or w61 installation media (.wim) or online system to prevent unnecessary space. w60 means Windows Vista or Windows Server 2008. w61 means Windows 7 or Windows Server 2008 R2. There are various …
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…
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 …

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now