?
Solved

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

Posted on 2016-08-25
4
Medium Priority
?
70 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 85

Accepted Solution

by:
oBdA earned 2000 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

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

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

Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
Microsoft Office 365 is a subscriptions based service which includes services like Exchange Online and Skype for business Online. These services integrate with Microsoft's online version of Active Directory called Azure Active Directory.
This tutorial will walk an individual through the process of configuring basic necessities in order to use the 2010 version of Data Protection Manager. These include storage, agents, and protection jobs. Launch Data Protection Manager from the deskt…
This tutorial will walk an individual through the process of installing of Data Protection Manager on a server running Windows Server 2012 R2, including the prerequisites. Microsoft .Net 3.5 is required. To install this feature, go to Server Manager…
Suggested Courses

752 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