This has been tested on Windows Server 2008, 2016, and 2019. Nothing fancy, just copy/paste this to get rid of that annoying UAC Prompt:

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