Set-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name EnableLUA -Value 1
Get-ItemProperty -Path HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System -Name EnableLUA
Restart-Computer -Force -Confirm:$false
I have found that it is a requirement to change the value to "0" on the registry key to completely turn off UAC on Server 2012 r2. After running through the provisioning process, I use the above commands to turn it back on.
Is there a way via PowerShell to tell it what level of notification I want to set the slider bar too?