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?