# How to permanently disable UAC in Windows Server

Dowiedz sie, jak trwale wylaczyc User Account Control w Windows Server przez odpowiednie zmiany w rejestrze i bezpieczny restart.

blog

01 Feb 2016 pl

![How to permanently disable UAC in Windows Server](/wp-content/uploads/2016/01/img_569ca542e50a2.png)

[Zobacz obrazy (12)](#pf-content-image-1-0)

**User Account Control (UAC)** is a feature in **Windows** that can help you stay in control of your computer by informing you when a program makes a change that requires administrator-level permission. UAC works by adjusting the permission level of your user account. If you're doing tasks that can be done as a standard user, such as reading e‑mail, listening to music, or creating documents, you have the permissions of a standard user—even if you're logged on as an administrator. However for Windows Server where most of the tasks are done by **Administrators** by default it's often getting disabled by **Administrators**.

### ❓ Problem Description

Most administrators will disable **UAC (User Access Control)** using standard approach as it was standard procedure since **Windows Vista**, continued thru **Windows** **7** and other client systems. To do that you just had to:

- Press START
- Type in **msconfig **to start **System Configuration** tool

[!\[Konfiguracja systemu uruchomiona z msconfig na karcie Narzedzia\](/wp-content/uploads/2016/02/img_56aface9e3abe.png)](/wp-content/uploads/2016/02/img_56aface9e3abe.png)

- Switch to **Tools** Tab, and choose **Change UAC Settings**

[!\[Lista narzedzi w Konfiguracji systemu z zaznaczona opcja zmiany ustawien UAC\](/wp-content/uploads/2016/02/img_56afad21288ff.png)](/wp-content/uploads/2016/02/img_56afad21288ff.png)

- And finally modify settings by choosing **Never Notify **

[!\[Suwak ustawien Kontroli konta uzytkownika ustawiony na Nigdy nie powiadamiaj\](/wp-content/uploads/2016/01/img_569ca542e50a2.png)](/wp-content/uploads/2016/01/img_569ca542e50a2.png)

While this modification has worked fairly well in **Windows** client systems (I have not seen the drawbacks of this change), this change in Windows server systems doesn't always go well. It changes some behaviour such as:

- CMD prompt gets started as Administrator

[!\[Wiersz polecenia uruchomiony z uprawnieniami administratora w Windows Server\](/wp-content/uploads/2016/02/img_56afae1ceb9ef.png)](/wp-content/uploads/2016/02/img_56afae1ceb9ef.png)

- Windows PowerShell ISE starts as Administrator

[!\[Windows PowerShell ISE uruchomiony jako administrator w Windows Server\](/wp-content/uploads/2016/02/img_56afaea417a35.png)](/wp-content/uploads/2016/02/img_56afaea417a35.png)

However some things do not get started that way such as:

- **Active Directory Module for Windows PowerShell**

[!\[Skrot do modulu Active Directory pokazujacy ze nie uruchamia sie automatycznie z podwyzszonymi uprawnieniami\](/wp-content/uploads/2016/02/img_56afaeba0fc8b.png)](/wp-content/uploads/2016/02/img_56afaeba0fc8b.png)

You have to explicitly choose **Run as Admin** to get proper Window. And even thou you don't get the **UAC** prompt anymore the **PowerShell** module gets loaded properly with **Administrator** rights.

[!\[Menu Uruchom jako administrator uzyte do startu modulu Active Directory\](/wp-content/uploads/2016/02/img_56afaf15d63f3.png)](/wp-content/uploads/2016/02/img_56afaf15d63f3.png)

This also happens in multiple other scenarios (installing Exchange, installing Exchange updates . And because it's not visible at first sight the results are often very unpredictable.

### 💡 Solution

To fully disable **UAC** one can do this via Registry or via Local Policies interface.

**Option 1**. You have the option to turn off **UAC** via registry by changing the DWORD “**EnableLUA**” from 1 to 0 in “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system”, and doing system reboot.

[!\[Edytor rejestru pokazujacy wartosc EnableLUA w zasadach systemowych Windows\](/wp-content/uploads/2016/01/img_569ca4db92e6e.png)](/wp-content/uploads/2016/01/img_569ca4db92e6e.png)

After which you will get prompted to restart computer to activate the change.

[!\[Komunikat o wymaganym restarcie po zmianie ustawien UAC w rejestrze\](/wp-content/uploads/2016/02/img_56afb055857ce.png)](/wp-content/uploads/2016/02/img_56afb055857ce.png)

**Option 2**. Opening **Local Security Policy **(**secpol.msc) **and changing **User Account Control: Behavior of the elevation prompt **to **Elevate without Prompting.**

[!\[Zasady zabezpieczen lokalnych z ustawieniami zachowania monitu podwyzszenia uprawnien UAC\](/wp-content/uploads/2016/01/img_569cadda37b59.png)](/wp-content/uploads/2016/01/img_569cadda37b59.png)[!\[Zasada monitu podwyzszenia uprawnien ustawiona na Podnies bez monitowania\](/wp-content/uploads/2016/01/img_569caf101ae7a.png)](/wp-content/uploads/2016/01/img_569caf101ae7a.png)

Hopefully after applying those settings the problem of weird problems coming from not **Run As Admin** option will be past.

### 🔴 Registry file to DISABLE UAC

Save file as **DisableUAC.reg** and run it.

```powershell
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000000
"EnableLUA"=dword:00000000
```

### 🟢 Registry file to ENABLE UAC

Save file as **EnableUAC.reg** and run it. Just in case you change your mind. Following reg file simply brings back default settings.

```powershell
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"ConsentPromptBehaviorAdmin"=dword:00000005
"EnableLUA"=dword:00000001
```

[!\[Plik rejestru otwarty w Notatniku do ponownego wlaczenia domyslnych ustawien UAC\](/wp-content/uploads/2016/02/img_56afce1771bf6.png)](/wp-content/uploads/2016/02/img_56afce1771bf6.png)

## Powiązane projekty

Projekty powiązane z tagami, kategoriami i treścią tego wpisu.

[Wszystkie projekty](/projekty/)

Trwa dopasowywanie projektów...

[Powrót do bloga](/blog/)

## Powiązane wpisy

- [Check an API write after a PowerShell timeout](/blog/verify-uncertain-api-outcomes-powershell/)
- [Inspect and convert mixed Office archives with PSWriteOffice](/blog/inspect-and-convert-mixed-office-archives-pswriteoffice/)
- [Compose PDF reports and automate page workflows with PSWriteOffice](/blog/automate-pdf-reports-and-page-workflows-pswriteoffice/)

<!-- PowerForge markdown artifact sha256:CAB7101BF9F6D6558FEB3624BE75D3CCA734F52E35815D8C6C87E88F7547F3E7 -->
