12 ms·
I already use https://github.com/lukesampson/psutils https://github.com/lukesampson/psutils which has a sudo.ps1, which I install via scoop (I know that's a mou
by dundarious 3y ago
I already use https://github.com/lukesampson/psutils https://github.com/lukesampson/psutils which has a sudo.ps1, which I install via scoop (I know that's a mouthful, but I just install scoop and run `scoop install sudo`). I used it from powershell literally just before I opened this article (after copy-pasting a password, I copy some random text laying around in the browser, like "com", then run `sudo restart-service -name 'cbdhsvc*'` to clear the clipboard history -- does not clear the current value). There is a UAC prompt, but it's perfectly adequate for interactive work.
- NikkiA 3y agoSame here, and if you look at the output of whoami /priv you'll find that using luke's sudo provides exactly the same priviledge escalation as 'run as administrator' does
- ComputerGuru 3y agoScoop install gsudo is even better (still run as sudo).
- Perz1val 3y agoMind that Windows has clipboard (win+v) history and you may've that enabled
- dundarious 3y agoThat is precisely what I'm clearing.