![]() ![]() ![]() However, I am not getting desired results, whereas if I run the script manuallyĪs an administrator then it works. Set-ItemProperty -Path REGISTRY::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System -Name ConsentPromptBehaviorAdmin -Value 0Ģ) Also, another way that I am trying to achieve this is by calling below script from my orchestrator to start powershell as adminstrator and run another powershell script in that. I am getting error "Requested registry access is not allowed" However, even when I am running below command as an local-administrator, I think, I can go another way without modifying my existing orchestrator workflow that I am working on.ġ) As I need systemlocale setting to be changed during machine provisioning, so I can safely disable the UAC on the machine, reboot machine, perform required action and enable the UAC back.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |