Grabware

Windows · Developer Tools

wsudo

Run elevevated shell commands from the command line.

Version 1.0.3 · by Andrew Nosenko

Download

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

  1. Click Download — the developer's official website opens in a new tab.
  2. Download the latest version there and run it. Choose Custom/Advanced where offered, and skip any bundled extras.
  3. Prefer the command line? With Chocolatey you can install and update it with: choco install wsudo
  4. Open wsudo once it finishes installing.
How to install Windows software with Chocolatey

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