Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 1.21 KB

README.md

File metadata and controls

23 lines (17 loc) · 1.21 KB

windows su

Elevate windows cmd beyond normal admin - to the system account

Installation:

  1. Get and install sysinternals full package or just psexec. It's required for this script.
  2. Download the .bat script
  3. Put it in your PATH, for example:
  • put in C:\Windows\system32
  • check your PATH and select one of these
  • create new directory and put it there, add it to PATH
  1. If you want the command to be different, just rename the script

Why

This will pop up new cmd window with NT\System user. That permission level is beyond normal admin and in 99% cases when you think you need it, you are likely doing something wrong. But if you really need it, here it is.

Usage

Just type in su, you will be prompted by UAC, accept it, and new window will pop out. To verify everything worked, type whoami command. You should get NT\System account, instead of your standard admin.

Note, it's still not as "root" as linux su, but its still closer than your avarage shell as admin

Kudos

This stack overflow anwser. I just put the thing here so it's easier to find on gh.