Is #Requires -RunAsAdministrator
necessary when using sudo
per-command?
#98
Unanswered
RokeJulianLockhart
asked this question in
Q&A
Replies: 1 comment
-
Perhaps #68 (comment) might be:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have some scripts that currently use PowerShell (Core?)'s
#Requires -RunAsAdministrator
preprocessor statement because the scripts' commands require Administrator-account elevation. However, if I prepend these commands withsudo
and remove the statement, are there any foreseeable problems?Beta Was this translation helpful? Give feedback.
All reactions