this post was submitted on 08 Feb 2024
1098 points (98.5% liked)
linuxmemes
20880 readers
5 users here now
I use Arch btw
Sister communities:
- LemmyMemes: Memes
- LemmyShitpost: Anything and everything goes.
- RISA: Star Trek memes and shitposts
Community rules
- Follow the site-wide rules and code of conduct
- Be civil
- Post Linux-related content
- No recent reposts
Please report posts and comments that break these rules!
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
But it needs to be a verb like
get
set
do
Do-As "NT Authority/System"
Have to quote it in too... since there's a space.
Probably something more like "Invoke-Command -AsAdmin"
Which would be aliased to sudo
That's what I wxpect. But with one more layer. In the end it's going to be system32/elevator.exe which is called by Invoke-Elevation in ps which is aliased to sudo.
It's supposed to be available in cmd and batch so it must be callable directly
I was more postulating what they probably would do if it were implemented directly in PowerShell
But, as it turns out, it's just sudo.exe in the command path