{"id":14976818,"url":"https://github.com/mspaintmsi/superuser","last_synced_at":"2025-04-04T07:05:21.267Z","repository":{"id":54420138,"uuid":"200356738","full_name":"mspaintmsi/superUser","owner":"mspaintmsi","description":"A simple and lightweight utility for starting any process with TrustedInstaller privileges.","archived":false,"fork":false,"pushed_at":"2025-04-03T19:54:33.000Z","size":791,"stargazers_count":221,"open_issues_count":0,"forks_count":22,"subscribers_count":13,"default_branch":"master","last_synced_at":"2025-04-04T07:05:16.625Z","etag":null,"topics":["administration","tool","trustedinstaller","utility","windows","windows-10","windows-7","windows-8","windows-8-1","windows-vista"],"latest_commit_sha":null,"homepage":null,"language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mspaintmsi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-08-03T09:24:52.000Z","updated_at":"2025-04-03T19:54:26.000Z","dependencies_parsed_at":"2024-09-10T01:54:37.028Z","dependency_job_id":"0a83e672-2df6-4b84-a7a1-d8b39c34c951","html_url":"https://github.com/mspaintmsi/superUser","commit_stats":{"total_commits":130,"total_committers":3,"mean_commits":"43.333333333333336","dds":"0.23076923076923073","last_synced_commit":"e29c0544b1cfcb267a2f5e78af6299e06ccbb5e5"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mspaintmsi%2FsuperUser","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mspaintmsi%2FsuperUser/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mspaintmsi%2FsuperUser/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mspaintmsi%2FsuperUser/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mspaintmsi","download_url":"https://codeload.github.com/mspaintmsi/superUser/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247135142,"owners_count":20889420,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["administration","tool","trustedinstaller","utility","windows","windows-10","windows-7","windows-8","windows-8-1","windows-vista"],"created_at":"2024-09-24T13:54:30.084Z","updated_at":"2025-04-04T07:05:21.246Z","avatar_url":"https://github.com/mspaintmsi.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# About\n_superUser_ is a simple and lightweight utility to start any process as the System user with Trusted Installer privileges.\n\nSupported operating systems: Windows 11, 10, 8.1, 8, 7, Vista.\n\n# How It Works\nThe program acquires the TrustedInstaller process' access token and creates a new (user-specified) process as the System user with Trusted Installer privileges using this token.\n\n# Usage\nThere are two ways to run the program:\n\n## From the File Explorer\nDouble-click the executable, grant administrator privileges and wait for a command prompt to appear.\n\n## From the Command Prompt\nRun _superUser_ from the command prompt opened __as administrator__, using the following arguments:\n\n__`superUser [options] [command_to_run]`__\n\n\n`command_to_run` is the command line used to create the new process. It is a filename followed by arguments. If not specified, `cmd.exe` is started.\n\nThis filename can be:\n- An executable name (the _.exe_ extension can be omitted).\n- A batch name (_.cmd_ or _.bat_).\n\n\n### Options\n\n| Option |                           Meaning                           |\n|:------:|-------------------------------------------------------------|\n|   /h   | Display the help message.                                   |\n|   /m   | Minimize the created window.                                |\n|   /s   | The child process shares the parent's console. Requires /w. |\n|   /v   | Display verbose messages with progress information.         |\n|   /w   | Wait for the child process to finish. Used for scripts.\u003cbr /\u003eReturns the exit code of the child process. |\n\n- You can also use a dash (-) in place of a slash (/) in front of an option.\n- Multiple options can be grouped together (e.g., `/ws` is equivalent to `/w /s`).\n\n\n### Notes\n\nThe `/ws` options allow you to run a process in a completely transparent way:\n\n- The new process runs in the same window and performs its inputs and outputs there.\n- The exit code of the new process is returned and you can retrieve it with the errorlevel variable.\n\n\n### Examples\n\nOpen a command prompt __as administrator__ to run these commands.\n\n\tsuperUser64 /ws whoami /user\n\tsuperUser64 /ws whoami /groups | find \"TrustedInstaller\"\n\tsuperUser64 /w my_script.cmd arg1 arg2\n\n\n## Exit Codes\n\n| Exit Code |                        Meaning                         |\n|:---------:|--------------------------------------------------------|\n|     1     | Invalid argument.                                      |\n|     2     | Failed to acquire SeDebugPrivilege.                    |\n|     3     | Failed to open/start TrustedInstaller process/service. |\n|     4     | Process creation failed (prints error code).           |\n|     5     | Another fatal error occurred.                          |\n\nIf the `/w` option is specified, the exit code of the child process is returned.\nIf _superUser_ fails, it returns a code from -1000001 to -1000005 (e.g., -1000002 instead of 2).\n\n\n# sudo\n\n`sudo32.exe` and `sudo64.exe` are simpler versions of superUser.\n\nThey are equivalent to `superUser /ws`.\n\n- The child process runs in the same window and performs its inputs and outputs there.\n- _sudo_ waits for this process to finish and returns its exit code.\n\nUsage is the same as _superUser_, except that the _s_, _v_, and _w_ options do not exist.\n\n\n### Examples\n\nOpen a command prompt __as administrator__ to run these commands.\n\n\tsudo64 whoami /user\n\tsudo64 whoami /groups | find \"TrustedInstaller\"\n\tsudo64 my_script.cmd arg1 arg2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmspaintmsi%2Fsuperuser","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmspaintmsi%2Fsuperuser","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmspaintmsi%2Fsuperuser/lists"}