2010-08-04 4 views

답변

7

은 UAC가 활성화되어 있는지 여부를 알려줍니다.

0

UAC 수준은 시스템 레지스터 키에 기록됩니다. 아래 코드를 사용하여 가져올 수 있습니다. $ ConsentPromptBehaviorAdmin_Value와 $ PromptOnSecureDesktop_Valued 사이

$Key = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" 
$ConsentPromptBehaviorAdmin_Name = "ConsentPromptBehaviorAdmin" 
$PromptOnSecureDesktop_Name = "PromptOnSecureDesktop" 

$ConsentPromptBehaviorAdmin_Value = Get-RegistryValue $Key $ConsentPromptBehaviorAdmin_Name 
$PromptOnSecureDesktop_Value = Get-RegistryValue $Key $PromptOnSecureDesktop_Name 

다른 조합은 UAC 레벨을 정의합니다.

전체 샘플은 https://gallery.technet.microsoft.com/How-to-switch-UAC-level-0ac3ea11

을 참조하십시오.
관련 문제