UAC Settings Group Policy using powershell failed

253 views Asked by At

Based on Group policy setting list here under security tab line 158 from Microsoft: Group Policy List

SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System\ConsentPromptBehaviorAdmin

And referring to this registry ConsentPromptBehaviorAdmin. I try to set it using Set-GPRegistryValue to assigned the policy to my GPO but failed. While other registry from administrative template works as it is.

This is how it suppose to look like: ConsentPromptBehaviorAdmin using Group Policy Management Console

I using this powershell command to create and assign this policy:

Set-GPRegistryValue -Name "MyLabGPO" -Key "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -ValueName "ConsentPromptBehaviorAdmin" -Type DWord -Value 0

and this is how it looks like: Failed using powershell ConsentPromptBehaviorAdmin UAC GPO

Which put the registry under Policies > Administrative Templates > Extra Registry Settings

Can anyone point out what is the problem or is there anything I miss? Thank you

0

There are 0 answers