Linux PowerShell & sudo

Welcome Forums General PowerShell Q&A Linux PowerShell & sudo

This topic contains 1 reply, has 2 voices, and was last updated by

 
Moderator
2 years, 1 month ago.

  • Author
    Posts
  • #51568

    Participant
    Points: 0
    Rank: Member

    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

    Moderator
    Points: 0
    Rank: Member

    Have you tried the following?

    sudo powershell update-help

The topic ‘Linux PowerShell & sudo’ is closed to new replies.