Skip to content

NSudo - A Powerful System Administration Tool

License

Notifications You must be signed in to change notification settings

azraelrabbit/NSudo-1

 
 

Repository files navigation

Logo

NSudo - A Powerful System Administration Tool

AppVeyor Latest release Latest release downloads Total downloads License 996.icu

Screenshot

  • Notice: NSudo is based on SuperCMD by Raymai97.Visit here for more information about SuperCMD.

Introduction

I will give you some thirdparty introduction links because I am not good at English.

System Requirements

  • Supported OS Version: Windows NT 6.0 or later
  • Supported CPU Architecture: x86, x86-64(AMD64), ARM, ARM64

Usage

  • Please go to the [CPU Architecture] folder and click NSudo.exe. Follow the prompts.
    • For example, if you want to use 64-bit NSudo on your Intel or AMD device, you need to go to the x64 folder and click NSudoG.exe

Command Line Options

Format: NSudo [ Options and parameters ] Command line or ShortCut Command

Options:

-U:[ Option ] Create a process with specified user option.
Available options:
    T TrustedInstaller
    S System
    C Current User
    P Current Process
    D Current Process (Drop right)
PS: This is a mandatory parameter.

-P:[ Option ] Create a process with specified privilege option. 
Available options:
    E Enable All Privileges
    D Disable All Privileges
PS: If you want to use the default privileges to create a process, please do 
not include the "-P" parameter.

-M:[ Option ] Create a process with specified Integrity Level option.
Available options:
    S System
    H High
    M Medium
    L Low
PS: If you want to use the default Integrity Level to create a process, please 
do not include the "-M" parameter.

-Priority:[ Option ] Create a process with specified [rocess priority option.
Available options:
    Idle
    BelowNormal
    Normal
    AboveNormal
    High
    RealTime
PS: If you want to use the default Process Priority to create a process, please
do not include the "-Priority" parameter.

-ShowWindowMode:[ Option ] Create a process with specified window mode option.
Available options:
    Show
    Hide
    Maximize
    Minimize
PS: If you want to use the default window mode to create a process, please do 
not include the "-ShowWindowMode" parameter.

-Wait Make NSudo wait for the created process to end before exiting.
PS: If you don't want to wait, please do not include the "-Wait" parameter.

-CurrentDirectory:[ DirectoryPath ] Set the current directory for the process.
PS: If you want to use the NSudo's current directory, please do not include the
"-CurrentDirectory" parameter.

-UseCurrentConsole Create a process with the current console window.
PS: If you want to create a process with the new console window, please do not 
include the "-UseCurrentConsole" parameter.

-Version Show version information of NSudo.

-? Show this content.
-H Show this content.
-Help Show this content.

Context Menu:
  -Install   Copy NSudo to the Windows directory and add the context menu.
  -Uninstall Remove NSudo in the Windows directory and the context menu. 

PS:
    1. All NSudo command arguments is case-insensitive.
    2. You can use the "/" or "--" override "-" and use the "=" override ":" in
       the command line parameters.  For example, "/U:T" and "-U=T" are 
       equivalent.
    3. To ensure the best experience, NSudoC does not support context menu.

Example:
    If you want to run Command Prompt with TrustedInstaller, enable all 
    privileges and the default Integrity Level.
        NSudo -U:T -P:E cmd

Example:If you want to run Command Prompt with TrustedInstaller, enable all privileges and the default Integrity Level

NSudo -U:T -P:E cmd

You can edit NSudo.json to custom the Shortcut list, here are the demo (NSudo.json in the NSudo.exe's folder):

{
  "ShortCutList_V2": {

    "Command Prompt": "cmd",
    "PowerShell": "powershell",
    "PowerShell ISE": "powershell_ise",
    "Edit Hosts": "notepad %windir%\\System32\\Drivers\\etc\\hosts"
  }
}

Starting from NSudo 5.0.1708.16, the command line nested quotes is supported. For example:

NSudo -U:T cmd /c "dir "C:\Program Files" & pause"

Git Repositories

Documents

Communication

Have a good time -- M2-Team

About

NSudo - A Powerful System Administration Tool

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 97.2%
  • C 2.7%
  • Batchfile 0.1%