on-internet
← Community

How to "sudo" with Powershell (elevate Powershell, running a command as admin) on Linux?

Stack Overflow ·

If you want to run a command as admin on PowerShell on Windows, you can write something like this: Start-Process foo -Verb RunAs -ArgumentList '...' But it is not possible on Linux. Powershell will return you the following error: Start-Process: The parameter '-Verb' is not supported for the cmdlet 'Start-Process' on this edition of PowerShell. Indeed, According to the Powershell online documentation, "the [-Verb] parameter does not apply for non-Windows systems", so it is not possible to run Powershell as admin like this on Linux. My question is simple: how to elevate Powershell privileges on

Comments

Sign in or sign up to comment and upvote.

No comments yet.