Windows: disable UAC with the registry or group policy
Turn off User Account Control (UAC) with reg.exe, the registry editor or a local policy.
User Account Control (UAC) can be turned off on Windows through local policy/GPO or directly in the registry. Doing so lowers the security of the machine: keep it for test environments or well-justified cases.
From the command line
reg.exe ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System /v EnableLUA /t REG_DWORD /d 0 /f
The command sets the EnableLUA value to 0 under HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System (/f skips the confirmation prompt). A reboot is required for the change to take effect.
With the registry editor
Open regedit, go to the key above, edit the DWORD value EnableLUA and set its data to 0.
With a group policy
In the Local Group Policy Editor (gpedit.msc): Computer Configuration > Windows Settings > Security Settings > Local Policies > Security Options, then set "User Account Control: Run all administrators in Admin Approval Mode" to "Disabled".
Source: How to disable UAC in Windows 10 (MiniTool).