Solved

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

Posted on 2009-05-14
2
2,351 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

How can you create a game plan that lets you focus on special projects instead of running from cubicle to cubicle every day and feeling like you’ve accomplished nothing? Try these strategies for prioritizing your tasks, offloading what you can, and …
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will walk an individual through configuring a drive on a Windows Server 2008 to perform shadow copies in order to quickly recover deleted files and folders. Click on Start and then select Computer to view the available drives on the se…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

920 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

13 Experts available now in Live!

Get 1:1 Help Now