none
Disabling the UAC using Powershell RRS feed

  • Question

  • Hi,

    Please can i know how to disable the UAC using Powershell without a system reboot...

    Thanks in advance

    Monday, October 17, 2011 8:56 AM

Answers

  • You need to fix the underlying problem that makes you think you need to disable UAC. It is a bad idea, and NOT recommended, to disable UAC, as it is very useful for identifying applications that are running at an inappropriately high level of privilege.


    -- Bill Stewart [Bill_Stewart]

    Wednesday, January 31, 2018 10:44 PM
    Moderator

All replies

  • Whichever way you do it, the system will require a reboot for changes to the UAC settings to take effect.
    [string](0..9|%{[char][int](32+("39826578840055658268").substring(($_*2),2))})-replace "\s{1}\b"
    Monday, October 17, 2011 12:32 PM
  • With Powershell you could disable UAC like this:

    New-ItemProperty -Path HKLM:Software\Microsoft\Windows\CurrentVersion\policies\system -Name EnableLUA -PropertyType DWord -Value 0 -Force

    However as pointed out by Bigteddy this will only be active after a reboot.

    Tuesday, October 18, 2011 4:26 PM
  • Here's a 1 liner that will meet your needs.  needs to run from an elevated PowerShell prompt.  this leaves the UAC on but kills the prompts.  Got the settings from this guy just added them to the PS side.

    https://winaero.com/blog/how-to-change-uac-settings-in-windows-10/

    (copy from Set-ItemProperty to the end)<sub></sub><sup></sup><strike></strike>

    Set-ItemProperty -Path “HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System” -Name “ConsentPromptBehaviorAdmin” -Value “0”; Set-ItemProperty -Path “HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System” -Name “ConsentPromptBehaviorUser” -Value “0”; Set-ItemProperty -Path “HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System” -Name “EnableLUA” -Value “1”; Set-ItemProperty -Path “HKLM:\Software\Microsoft\Windows\CurrentVersion\Policies\System” -Name “PromptOnSecureDesktop” -Value “0”

    Wednesday, January 31, 2018 9:36 PM
  • You need to fix the underlying problem that makes you think you need to disable UAC. It is a bad idea, and NOT recommended, to disable UAC, as it is very useful for identifying applications that are running at an inappropriately high level of privilege.


    -- Bill Stewart [Bill_Stewart]

    Wednesday, January 31, 2018 10:44 PM
    Moderator
  • Refer to this post for more information:

    https://social.technet.microsoft.com/Forums/scriptcenter/en-US/21afa490-a74e-4052-8c34-e997cdc593b3/you-cannot-bypass-the-uac-prompt?forum=ITCG


    Richard Mueller - MVP Enterprise Mobility (Identity and Access)

    Friday, February 2, 2018 2:11 PM
    Moderator
  • Thanks for the real answer.  This helped out in a situation where UAC was breaking things. 
    Friday, August 9, 2019 3:52 PM
  • Please do not add further posts to already ansered threads just to say "thanks" ... therefor we have the "vote" buttons.

    Thanks


    Live long and prosper!

    (79,108,97,102|%{[char]$_})-join''

    • Edited by BOfH-666 Friday, August 9, 2019 8:49 PM
    Friday, August 9, 2019 8:49 PM