Windows SUDO Now Available in 24H2 - Not Windows 12 - New Features!

preview_player
Показать описание

Any requests to contact me on Telegram, etc, are scams...

Follow me on Twitter at @davepl1968
Рекомендации по теме
Комментарии
Автор

Finally not starting new terminal just for admin privileges!!! <3

JockelGaming
Автор

Welcome to the 1990s, Windows!
Glad to have you aboard!

yobgodababua
Автор

Seems a decade late but it's cool that it's finally there

DMPLAYER
Автор

Wow the color balance on the webcam is pretty bad! At least you can tell a difference from my good camera :-)

DavesGarage
Автор

Dave programmed it personally after shooting a round of golf with Gates and Ballmer. They were having some cold ones when Dave sketched out this program on two cocktail napkins -one in assembly for Gates and he, the second in crayon for Ballmer- and Gates said it was so brilliant they will ship it Spring ‘95. Well… the problem was Balmer didn’t understand it and it made him too sweaty, so it wasn’t until now that MS has unburied Dave’s masterpiece, inexplicably dated 2024. Congrats Dave! 🎉

vitalychernobyl
Автор

I've always throught that the reason we haven't seen a `sudo` for Windows is because there's a principle saying that a user token must only be created through authentication (with a few exceptions where this isn't actually possible). As much as I hated not having sudo on Windows, I kind of respected the principle from a security perspective.

We've entered a new era.

fnizzelwhoop
Автор

I think Hell has frozen over. We got sudo on Windows.

It's a testament to Window's design and architecture - thanks for showing us this Dave!

timeimp
Автор

That’s good to hear.
To get around this Windows limitation, I wrote a short “sudo” script that would:
- launch a new console with Admin privileges
- redirect everything after the sudo call as a command to the new console, and the switch to close after executing
- redirect output to a temporary file
- then finally cat the file to the original console, so I could see the output of the redirected command

Unfortunately it has some limitations, but does the job for simple admin commands.
So I really look forward to using the new sudo feature.

craigyoung
Автор

No mouse required to start an elevated application: Tap Start key, type enough letters to bring the app to the top of the search, press CTRL-SHIFT-ENTER, fill credentials in EAC, and boom.

Sudo in Terminal is great and long overdue. I'll definitely try it next time I fire up my locked down W11 VM that I only use because Adobe hates Linux.

DanielMReck
Автор

awesome. i hope they continue taking inspiration from linux/unix where it is appropriate. sudo is such a core part of how i administer systems and it's always a pain when i have to right click-> run as admin on powershell

chod
Автор

That sure is shorter than runas and a new prompt. I love it - about time

theunseen
Автор

Semantics hang-up: "sudo" is supposed to be short for -"Switch User and DO"- "substitute user, do" and can let you run commands as any user on the system, provided your account is on the sudoers list. Here it just elevates the command following it. Which, well, understandable, since 99% of the time people use sudo to act as the root user.

EDIT: I double-checked and it was in fact originally "superuser do". But the manpages for the su command say su is short for "substitute user" so really with how sudo works nowadays the correct meaning is "substitute user, do".

thplarbear
Автор

Even though it's the most common use case, sudo in Unix isn't for running as administrator, but for running a command as any user of your choosing.

The su is short for "switch user". Both the su and sudo commands have a "-u" option for choosing the user to switch to, with the administrator as the default if no option is given.

slycordinator
Автор

Finally! So glad they implemented this.

johnburr
Автор

I love how they finally implement this after I've been struggling with opening a new prompt for admin for almost 10 years now - and only just a couple of weeks ago decided to search up how to add custom commands to powershell and add a sort of "sudo" myself, lol.

DeerJerky
Автор

I got excited to learn that you were one of the coders of early windows operating system.

wideninghorizons
Автор

You can just hit cntl+sft+enter will launch anything from the Run command as admin. One of the most useful things added into windows in years imo

michaelrichardson
Автор

0:48 Forgetting about right-clicking the Start button or pressing Win+X and choosing "Command Prompt (Admin)" (or "Powershell (Admin)", depending) from the menu? 😻

Ice_Karma
Автор

It’s great that hey added it except it’s not done, and they screwed it up.

1. Like *nix it should allow the subsequent commands with a Sudo to not prompt again
2. It doesn’t work with powershell commands

haplopeart
Автор

Some jean-yes out there years ago made a block of code you could throw into your batch script that will essentially do this. It has never failed me in the 10 or so years I've been using it in my scripts. Nice to see that 30 lines of complete hieroglyphs can be replaced with 4 letters. Love it.

BurritoVampire