Disable UAC for a specific user account on a domain controller
I have a task scheduled to run a program on a DC under a domain user account.
Is there a way to disable the UAC for this domain account on this DC? The program requires admin privileges to run and the task will just time out if no one is there to accept.
March 16th, 2011 7:41pm

I thought there was no way to pass a password to runas in a script. This has to run as a scheduled task.
Free Windows Admin Tool Kit Click here and download it now
March 17th, 2011 12:40pm

Have a look to this Microsoft utility named PsExec.

AFAIK. You can use it to develop a script that runs using administrative privileges.

For more information, please post in "The Official Scripting Guys Forum!".

 

March 17th, 2011 12:50pm

I almost got this working, but its still prompting for elevation even with psexec.

Here is the command I ran (I want to have a scheduled task run this)

c:\psTools\psexec -u mydom\myuser -p mypass "C:\Program Files\progfldr1\progfldr1\myprog.exe"

When I run it I get the following error message: PsExec could not start C:\Program Files\myprogram.exe: The requested operation requires elevation.

  • Edited by red888 Thursday, March 17, 2011 5:36 PM oops!
Free Windows Admin Tool Kit Click here and download it now
March 17th, 2011 1:37pm

Hi,

 

You may try to configure some of the policies to control the UAC prompt. However, this may reduce the security of the system.

 

http://technet.microsoft.com/en-us/library/dd835564(WS.10).aspx

 

March 24th, 2011 5:13pm

Ive tried some of the above, but they dont work within our scripts. Best answer seems to be to turn it off. thanks for your suggestions!
Free Windows Admin Tool Kit Click here and download it now
May 11th, 2015 2:29pm

Hello there,

May be you can run your script through Task Scheduler, and set the option, "Run with highest privilages"

This will make sure, you script will be run with elevated privilages.

HTH

"

May 12th, 2015 3:29am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics