Registry Key show UAC level?

Page 2 of 2 FirstFirst 12

  1. Posts : 186
    Windows 7 Ultimate x64
    Thread Starter
       #11

    This is the .vbs script that BGInfo will run to show what level UAC is set:

    Set objShell = CreateObject("WScript.Shell")
    iUACA = objShell.RegRead _
    ("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\ConsentPromptBehaviorAdmin")
    iUACD = objShell.RegRead _
    ("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\PromptOnSecureDesktop")
    iUAC = iUACD + iUACA
    If iUAC = 0 Then
    Echo "Never Notify"
    ElseIf iUAC = 5 Then
    Echo "Don't Dim Desktop"
    ElseIf iUAC = 6 Then
    Echo "Default Dim Desktop"
    ElseIf iUAC = 3 Then
    Echo "Always Notify"
    Else
    Echo "Unknown Level"
    End If

      My Computer


  2. Posts : 72,063
    64-bit Windows 11 Pro for Workstations
       #12

    Thank you Loki. :)
      My Computer


 
Page 2 of 2 FirstFirst 12

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 10:48.
Find Us