0x4E4F@sh.itjust.works to linuxmemes@lemmy.worldEnglish · 7 months agoThe real magic wordsh.itjust.worksimagemessage-square44fedilinkarrow-up11.09Karrow-down118
arrow-up11.07Karrow-down1imageThe real magic wordsh.itjust.works0x4E4F@sh.itjust.works to linuxmemes@lemmy.worldEnglish · 7 months agomessage-square44fedilink
minus-squareabrahambelch@programming.devlinkfedilinkarrow-up14·7 months agoPowerShell: right clicks and selects run as administrator, loses previous session
minus-squareBuelldozerAlinkfedilinkarrow-up2arrow-down1·7 months agoToday 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.
minus-square0x4E4F@sh.itjust.worksOPlinkfedilinkEnglisharrow-up1·edit-27 months agoWhy? Because GUI shell = session…
PowerShell: right clicks and selects run as administrator, loses previous session
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.
That’s cultural appropriation.
Why? Because GUI shell = session…