Skip to content

megathread: sudo should better support PowerShell #5

@zadjii-msft

Description

@zadjii-msft

Currently, sudo only works for elevating an actual executable1. For something like Get-ChildItem (gci) in PowerShell, that's not an executable, it's a cmdlet. We'll need a proper PowerShell module to be able to properly support various PowerShell scenarios.

In the time being, we're working on the sudo.ps1 script to provide a better experience for using sudo from PowerShell.

### Tasks
- [ ] Support for PowerShell cmdlets
- [ ] Support for PowerShell script blocks
- [ ] Support for PowerShell aliases
- [ ] Should `sudo.ps1` pass `-noprofile` to the elevated PowerShell?
- [ ] #6 

Footnotes

  1. It also supports CMD intrinsics, when run from CMD.exe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-BugSomething isn't workingIssue-ScenarioBigger than a feature - this is a group of features

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions