Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources: Active Threads
Viewing all articles
Browse latest Browse all 8411

Server 2012 and UAC via PowerShell

$
0
0

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?


Viewing all articles
Browse latest Browse all 8411

Trending Articles