this post was submitted on 10 May 2024
1066 points (98.4% liked)

linuxmemes

20880 readers
6 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. 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
[–] abrahambelch 14 points 6 months ago (2 children)

PowerShell: right clicks and selects run as administrator, loses previous session

[–] [email protected] 1 points 6 months ago* (last edited 6 months ago)

Why? Because GUI shell = session...

[–] [email protected] 1 points 6 months ago (1 children)

Today you can use an inline "RunAs" command such as "runas /user:Administrator "powershell.exe -executionpolicy bypass -command Set-Location "$PWD"; .\install.ps1"

Or you could use Gsudo.

Additionally, Sudo will soon be available in Win11.

[–] [email protected] 4 points 6 months ago

That's cultural appropriation.