Commands without account names
If exactly one administrator account is stored, the program command alone is enough for an elevated launch. User names and passwords then need not be included in scripts or shortcuts.
eXecute Under User Context
xucRun launches Windows programs under an administrator account or another Windows account. Stored credentials avoid repeated password entry. Any UAC confirmation required by Windows for the specific launch remains required. Every launch using stored credentials must be covered by an active approval or confirmed in a dialog. Commands can be invoked interactively or by script.
xucRun is open-source software under development. The current state may contain defects, differ from the described behavior, and change. It is intended for experienced home users and developers on self-managed Windows PCs, not for systems requiring an elevated level of protection. Use is at the user's own responsibility. Read about intended use, protection boundaries, and liability.
PS C:\Tools> .\xucRun.exe regedit.exe
C:\Tools>xucRun.exe regedit.exe
Windows functionsAccount switching and UAC
Separate storageNo password transfer to target programs in the intended workflow
Interactive approvalsSelected in the dialog as one-time or reusable
Purpose and functionality
xucRun covers several use cases in which a program is to run with elevated privileges or under another user account, with or without elevation. A central use case is launching selected programs for administrative tasks from a standard user account. Commands can be invoked from scripts, batch files, fixed shortcuts, and custom commands in configurable file managers.
If exactly one administrator account is stored, the program command alone is enough for an elevated launch. User names and passwords then need not be included in scripts or shortcuts.
xucRun handles program paths, working directories, batch files, and common shell special characters and passes them to the target program.
Dialogs are used to set up and select accounts and to approve program launches.
xucRun uses existing Windows functions for account switching and UAC elevation in a common workflow for program launches.
Safeguards
xucRun uses Windows APIs to store passwords. In the intended workflow, passwords are not passed through the command line or to the target program. Password entry and approvals take place on a separate Windows desktop. A per-user security identifier helps users recognize subsequent xucRun dialogs there.
Protection boundary: On a compromised system, xucRun cannot provide comprehensive protection. In addition, calling scripts and configuration files must be trusted and protected against unauthorized modification.
If Windows requires UAC confirmation for a specific elevation, it remains part of the launch process. xucRun does not replace it with its own approval. The UAC prompt that Windows actually displays depends on the specific launch path and Windows configuration.
Approvals for a specific target program bind its final resolved path and SHA-256 hash. If the bound program file changes, the previous approval no longer matches. General approvals do not have this program binding.
xucRun uses stored credentials only for a launch covered by an active approval or approved by the user in the current dialog. Without approval, the launch does not proceed.
Longer and broader approvals avoid repeated xucRun approval decisions more often. Shorter approvals or approvals bound more precisely to a program, invocation, and target account limit how broadly they can be reused. For a reusable approval, this differentiated selection generally needs to be made only once.
Reusable approvals can additionally be bound to the arguments, working directory, and launch visibility. Directly recognized scripts can be included in this binding; content loaded later is not included.
Installation and setup
The Core installer automatically creates a local xucRun certificate on your computer and uses it to sign the components to be installed. Before installation and during later use, xucRun verifies the signatures of the matching components. This makes subsequent changes detectable while keeping permanent trust limited to your computer; the developer certificate is not installed there as a trust anchor. The local-signing guide explains the details.
All required xucRun components are installed locally on your Windows system.
Required credentials are requested on a separate Windows desktop when needed and can also be set up in advance.
If no matching approval is active, the launch is confirmed interactively.
.\xucRun.exe regedit.exeUsage examples
These examples assume that xucRun is installed and the required accounts have been set up. If no matching approval exists, xucRun asks interactively before launch.
If exactly one administrator account is stored, the target command is sufficient. Any UAC confirmation required by Windows for this elevated launch remains required.
.\xucRun.exe regedit.exe
/user: selects the specified account without xucRun requesting additional elevation itself.
.\xucRun.exe /user:DOMAIN\User notepad.exe
Paths, arguments, and common shell special characters are passed to the batch file in a controlled way.
.\xucRun.exe "C:\Scripts\Maintenance & Check.bat"
Without a target program, xucRun detects the calling console, starts the same console type in the selected account and elevation context, and preserves the current working directory. Command Prompt, Windows PowerShell, PowerShell, and TCC are supported.
.\xucRun.exe
.\xucRun.exe /user:<Account>
xucRun can be invoked from configurable file managers, scripts, desktop shortcuts, and other applications to start programs with elevated privileges or under another account. The documentation includes, among other examples, a complete configuration example for Total Commander.
Management commands, backups, update behavior, and further technical details are covered in the README.
Source code and documentation are publicly available so that the technical measures, their limitations, and remaining risks can be reviewed. Publication is neither a security guarantee nor evidence of an independent audit; xucRun has not been independently audited or certified. Before use, review the source code, SHA-256 checksums, intended use, and documented security limitations, and use xucRun only if the remaining risk is acceptable for your use case.
xucRun uses Windows APIs to store passwords, approvals, security markers, associated metadata, and created backups on the local computer. Backups may also contain a description entered by the user. In the intended workflow, stored passwords and security markers are not passed to normally launched programs. These product data can be removed completely during uninstallation.
The Windows service manages stored passwords separately from the normally launched xucRun program. It checks every requested launch and starts the program under the selected account. Required approvals and UAC prompts remain visible to the user and must still be confirmed. The service creates no additional privileges.
xucRun supports Windows 10 and Windows 11 on x64 systems. Other Windows versions and ARM64 systems have not been tested and are not supported. The latest Microsoft Visual C++ v14 Redistributable for x64 is also required; xucRun needs no additional third-party service. If the runtime is missing, the installer offers download, selection of an existing vc_redist.x64.exe, or cancellation.
No. xucRun combines existing Windows functions, creates no additional privileges, and does not replace UAC with its own approval. For elevated cross-account launches, Windows must provide a confirmable UAC path for the selected administrator account; otherwise, the launch remains blocked. This can particularly affect the built-in Administrator account when Admin Approval Mode is disabled.
The published package is signed with a self-signed developer certificate. Without local re-signing, this certificate would have to be installed permanently as a trusted root certification authority and trusted publisher on every target computer. Windows would then trust every file signed with the same developer certificate.
The Core installer verifies the digital signatures, creates or reuses a local certificate with a non-exportable private key, and re-signs the components. Permanent trust is thereby limited to the individual computer. Local signing does not establish the origin of the download, so the published SHA-256 checksum must be compared first. Local signing in detail
xucRun for Windows
xucRun and the optional Tray are published as open-source projects on GitHub. The Tray adds a status and control interface in the Windows notification area.
Installation files, checksums, and release notes are listed on the download page. Source code, license texts, and technical documentation are maintained in the respective GitHub repositories.
Important: Before downloading or using the software, read the information about intended use, security limitations, and potential risks.