Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2405
  • Last Modified:

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

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
CASheridan
Asked:
CASheridan
1 Solution
 
OriNetworksCommented:
0
 
CASheridanAuthor Commented:
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

 The Evil-ution of Network Security Threats

What are the hacks that forever changed the security industry? To answer that question, we created an exciting new eBook that takes you on a trip through hacking history. It explores the top hacks from the 80s to 2010s, why they mattered, and how the security industry responded.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now