Linux PowerShell & sudo

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Daniel Krebs Daniel Krebs 10 months, 1 week ago.

  • Author
    Posts
  • #51568

    Is there any way to run cmdlets with sudo? Sudo works for programs (so, 'sudo whoami' returns root), but something like sudo Update-Help returns 'sudo: Update-Help: command not found'.

  • #51572
    Profile photo of Daniel Krebs
    Daniel Krebs
    Moderator

    Have you tried the following?

    sudo powershell update-help

You must be logged in to reply to this topic.