How to Invoke PowerShell Script as Admin?

Hi Team,

I’m trying to run PowerShell script from UiPath, It in turn is giving ‘WindowsUpdate’ is not recognized as the name of a cmdlet and Requested Registry access is not allowed.

can anyone help on this?

Thanks,
E Sai Prasad

Are you able to run the script in Powershell manually as the same logged in user? Does your script take any arguments?

Would you mind sharing a sample minimum script that causes you this issue?

Have you already tried different execution modes?
image