Solved

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

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

Are You Headed to Black Hat USA 2017?

Getting ready for Black Hat next week? Kick things off with the WatchGuard Badge Challenge and test your puzzle and cipher skills. Do you have what it takes to earn our limited edition Firebox Badge? Get started today - https://crimsonthorn.net

Question has a verified solution.

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

Australian government abolished Visa 457 earlier this April and this article describes how this decision might affect Australian IT scene and IT experts.
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Suggested Courses

627 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