Execute Command node with admin permission - Desktop App

Hey @Guilherme_Hirsch, you could include the admin part in your script rather than in n8n, so you wouldn’t need to elevate n8n’s permissions.

E.g. have your Execute Command node call a script using pwsh.exe C:\Users\Tom\Desktop\test.ps1

Then in the test.ps1 script itself, you could request admin permissions like so for the command that needs them: Start-Process -Verb RunAs pwsh.exe -Args '-executionpolicy bypass -command "echo foo"'.