Solved

Run a Scheduled Task on a Server 2008 domain controller with elevated permissions?

Posted on 2009-05-14
2
2,345 Views
Last Modified: 2012-05-07
I am trying to run a CMD file on my Server 2008 domain controller as a scheduled task.  The CMD file fails as a scheduled task because "The requested operation requires elevation."  In the Properties of the scheduled task, I have checked the "Run with highest privileges" check box.  In the properties of the CMD file, on the Compatibility tab, the "Run this program as an administrator" checkbox is grayed out.
The CMD File basically runs the "netsh dhcp server export" command, which is why it requires elevated permissions.
How can I get this CMD file to run as a scheduled task without turning off UAC completely?
0
Comment
Question by:CASheridan
2 Comments
 
LVL 17

Expert Comment

by:OriNetworks
ID: 24405124
0
 
LVL 1

Accepted Solution

by:
CASheridan earned 0 total points
ID: 24425124
I was unable to get the script to run without making the account that it runs under a member of the Builtin\administrators group (Domain Admins works, too).  Seems to be another unintended side-effect of UAC.  What a piece of poorly implemented junk!
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

Transparency shows that a company is the kind of business that it wants people to think it is.
Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
This tutorial will walk an individual through the steps necessary to enable the VMware\Hyper-V licensed feature of Backup Exec 2012. In addition, how to add a VMware server and configure a backup job. The first step is to acquire the necessary licen…
To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…

705 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

17 Experts available now in Live!

Get 1:1 Help Now