Windows · Developer Tools
wsudo
Run elevevated shell commands from the command line.
Version 1.0.3 · by Andrew Nosenko
Official site: github.com
About wsudo
# Purpose
`wsudo` is a Linux `sudo`-like tool for Windows to invoke a program with elevated rights (as Administrator) from a non-admin shell command prompt.
This implementation doesn't depend on the legacy Windows Script Host (`CScript`). Instead, it uses a helper PowerShell 5.1 script that invokes `"Start-Process -Wait -Verb runAs ..."` cmdlet. Your system most likely already has PowerShell 5.x installed, otherwise you'll be offered to install it as a dependency.
# Usage
`wsudo` runs a program or an inline command with elevated rights in the current directory. Examples:
wsudo .\myAdminScript.bat
wsudox "del C:\Windows\Temp\*.* && pause"
wasudo cup all -y
wasudox start notepad C:\Windows\System32\drivers\etc\hosts
wasudog wt.exe -d %cd%
**For more details, visit the [GitHub repro](https://github.com/noseratio/choco/tree/master/wsudo).**.
How to install wsudo
- Click Download — the developer's official website opens in a new tab.
- Download the latest version there and run it. Choose Custom/Advanced where offered, and skip any bundled extras.
- Prefer the command line? With Chocolatey you can install and update it with: choco install wsudo
- Open wsudo once it finishes installing.
Frequently asked questions
Is wsudo free to download?
Yes. The Download button sends you to github.com, the developer's official site, where wsudo is available to download. Grabware doesn't host or modify any files.
What is the latest version of wsudo?
The version listed here is 1.0.3, published /Date(1597. The developer's site always has the newest release.
How do I install wsudo from the command line?
With Chocolatey, run: choco install wsudo. This installs it from the official source and keeps it updated.
Is wsudo safe?
wsudo downloads directly from the developer. As always, scan the installer with your antivirus and choose Custom setup to skip any bundled extras.
Alternatives to wsudo
More
March 2014 servicing stack update for Windows 8.1 and Windows Server 2012 R2 (KB2919442)The update fixes some issues in the servicing stack of Windows 8.1 and Windows Server 2012 R2.Chocolatey Compatibility ExtensionExtension package to provide compatibility with older versions of Chocolatey
Update for Universal C Runtime in Windows (KB2999226)Update for Universal C Runtime (CRT) in Windows. Before you install this update, check out the prerequisites section.