2

I had based in the following Powershell command: (reference)

Set-ItemProperty -Path REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -Value 0

to disable UAC using a Batch file and i tried this sintaxe:

Powershell -command "& {Set-ItemProperty -Path REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System -Name EnableLUA -Value 0;}"

but nothing works. How do this correctly?

0 Answers0