Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2009-05-14
2
Medium Priority
?
2,392 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
[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
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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

For anyone that has accidentally used newSID with Server 2008 R2 (like I did) and hasn't been able to get the server running again because you were unlucky (as I was) and had no backups - I was able to get things working by doing a Registry Hive rec…
If you are IT support and need to work after hours to resolve customer issues then here are a few tips on how to handle after hours support
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…

704 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