Is #Requires -RunAsAdministrator necessary when using sudo per-command?
#98
-
|
I have some scripts that currently use PowerShell (Core?)'s |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Perhaps, #68 (comment) might be:
To summarise, continue to utilise it if you've any reason to believe that the script might be invoked by a non-administrator user account. However, considering that an error is printed, the sole possible errors are those that would occur if the administrative user had denied the UAC prompt anyway, which the script should account for. |
Beta Was this translation helpful? Give feedback.
Perhaps, #68 (comment) might be:
To summarise, continue to utilise it if you've any reason to believe that the script might be invoked by a non-administrator user account. However, considering that an error is printed, the sole possible errors are those that would occur if the administrative user had denied the UAC prompt anyway, which the script should account for.