Jump to content
Sign in to follow this  
wojtek109

UAC turn off

Recommended Posts

wojtek109

I Trying this script

RegWrite("HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionPoliciesSystem", "EbableLUA","REG_SZ", "0")

i have win 8 but this script not disable UAC

if you knot how to turn it off tell me !!!

Share this post


Link to post
Share on other sites
orbs

you copy/paste from MSDN blog without reading? that's awful. even one of the posts in the article you copied from mentioned the typo - yet the author did not fix it. read your line, man.

also, Win 8 UAC can not be fully disabled without crippling your Metro apps. there are many articles on this - most of them, like the one you copied from, are mistaken because they are not aware of this (written too early when Win 8 was just released).

for myself, i do not disable UAC on Win 8 (or Win 7 for that matter). this is a lost battle. i just plan my scripts to not tackle UAC in the first place.

Share this post


Link to post
Share on other sites
0xdefea7

RegWrite("HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System", "EnableLUA","REG_SZ", "0")

Notice the "n" in "Enable" as orbs pointed out. Again everyone else in here is right, it is a bad idea to disable UAC, it has adverse effects. 

Share this post


Link to post
Share on other sites
AdamUL

If I need a script to have full admin rights, and to be rerun multiple times to complete a series of tasks, I set the "ConsentPromptBehaviorAdmin" value on first run of the script, and then have the script reset it when the script is finished.  As others have said, I would not fully disable UAC.  There are examples on the forum for working with UAC, depending on what you are trying to do.  

 

Adam

Share this post


Link to post
Share on other sites
BlueBoden

.

Edited by BlueBoden

Share this post


Link to post
Share on other sites
Queener

I have not tried, but you possibly want to try it out first before code it

Got it from HowToGeek

Disable UAC

C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f

Enable UAC

C:\Windows\System32\cmd.exe /k %windir%\System32\reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 1 /f

 

retstart needed


Msgbox(0, "Hate", "Just hate it when I post a question and find my own answer after a couple tries. But if I don't post the question, I can't seem to resolve it at all.")

Share this post


Link to post
Share on other sites
orbs

 I set the "ConsentPromptBehaviorAdmin" value on first run of the script,

 

@Adam, but that first change will trigger the UAC anyway, no?

Share this post


Link to post
Share on other sites
AdamUL

Yes, that is true.  It all depends on what you are trying to with your script.  If you want to disable UAC for admin only, you can set "ConsentPromptBehaviorAdmin" to 0, and admins will not be prompted, but non admins will.  

 

Adam

Share this post


Link to post
Share on other sites
0xdefea7

 

The reason why people want to disable it – the reason that i want to disable it anyway – is that it drastically slows down installers and setup programs. I've personally had these things freeze up for several seconds, just waiting for UAC to show its dialogs.

 

Run your process as admin and create the installer processes from your process. Any child process will run with the same access and should not trigger UAC. I use several installers (MSI and other) in my scripts this way and it works fine, only the first UAC (the prompt to start my own script) ever fires.

Edited by 0xdefea7
  • Like 1

Share this post


Link to post
Share on other sites
Chimaera

Run your process as admin and create the installer processes from your process. Any child process will run with the same access and should not trigger UAC. I use several installers (MSI and other) in my scripts this way and it works fine, only the first UAC (the prompt to start my own script) ever fires.

 

Thats how i run my installers etc

deal with it once and thats it (unless you close the tool ;) )

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×