Monday, June 24, 2013

Quick Script: Is UAC enabled?


    #UAC check
    $UAC = Get-ItemProperty -Path registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system -Name EnableLUA
    if($UAC.EnableLUA -eq 0){
        "[X] UAC - User Access Control disabled"
    }else{
        "[ ] UAC - User Access Control disabled : run Set-ServerSettings"
    } 

No comments: