Thanks, it sort of helped but it still requires another boot after running
the batch file [which contains C:\Windows\System32\cmd.exe /k
%windir%\System32\reg.exe ADD
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Pol icies\System /v EnableLUA
/t REG_DWORD /d 0 /f ] in order to actually turn UAC off. I tried a
second batch file run upon logon to reboot (shutdown -r -t 0) but I got
into a perpetual reboot situation which required an Acronis restore to get
out of. Any idea how to get the second boot only if UAC is turned on?
"Julian" <msforums@tiger2.demon.co.uk> wrote in message
news:%23Rg604NPIHA.1208@TK2MSFTNGP03.phx.gbl...
> Use the Task Scheduler to run your batch file - you will be able to give
> it elevated permissions there and there will be no UAC prompt: you could
> use e.g. a delay of 30s from log-on as the trigger. This is the only way I
> know of running apps that require elevated privileges without getting the
> UAC prompt at run time, and I use it successfully to start a couple of
> applications that Defender otherwise blocks (of course the "offending"
> apps are also removed from the Startup group otherwise there would still
> be the Defender nag from the systray/"Notification area"
>
> Hope that helps...
>
> --
> Julian I-Do-Stuff
>
> Some Vista stuff, but mostly just Stuff at http://berossus,blogspot.com
> "Wildcat" <rwhelan@shaw.ca> wrote in message
> news:4816DA22-6461-481E-A0F9-D4433EA4ABC1@microsoft.com...
>>I am trying to run a batch file at startup that turns UAC off. It runs
>>fine if UAC is already off but access is denied if it is not already off.
>>This was not the intention of the .bat file. I am using Home Premium and
>>it seems that Windows Defender turns UAC on when it is run and then I have
>>to turn it off manually and re-boot. Too much time. Anyone know how to
>>stop the access denied? I tried permissions on the USERS folder to no
>>avail.
>>
>