When executing elevated PowerShell scripts, the UseShellExecute
method combined with runas
is not consistently reliable, and selecting Run as administrator may not achieve the intended result. GSudo offers a more dependable solution by enabling elevation without requiring Remote Desktop Manager to run as an administrator.
GSudo supports configurable caching, allowing you to avoid repeated Windows UAC prompts, a limitation of ShellExecute, which typically triggers a UAC prompt every 15 minutes for elevated processes.
You can choose GSudo as the method for running PowerShell terminals in Remote Desktop Manager.
Create or edit a PowerShell terminal (local) entry in Remote Desktop Manager.
Go to the Run as tab.
Set Run as mode to GSudo (instead of the default ShellExecute).
Click Add or Update to save the entry.