Lightweight .NET 8 Windows utility to run programs as NT AUTHORITY\\SYSTEM locally or remotely.
Explore the docs »
View Project
·
Report Bug
·
Request Feature
Table of Contents
RemoteRun is a Windows command-line tool that executes processes as NT AUTHORITY\SYSTEM:
- Locally: uses SYSTEM token duplication (
CreateProcessWithTokenW) as the fast path. - Remotely: copies the executable over
\\computer\admin$, installs a temporary service, runs the command, captures output, and cleans up.
It is designed as a lightweight, dependency-free utility in .NET 8 and follows a dual-mode architecture where the same executable acts as both CLI client and service worker (--service).
Follow these steps to build and run the project locally.
- Windows machine
- .NET SDK 8.0+
- Administrator privileges (required at runtime; UAC elevation is automatic)
- Optional: Inno Setup for building installer binaries
- Clone the repository
git clone https://github.com/LoveDoLove/RemoteRun.git
- Build the project
dotnet build RemoteRun/RemoteRun.csproj -c Release
- (Optional) Publish self-contained binaries
dotnet publish RemoteRun/RemoteRun.csproj -c Release -r win-x64 --self-contained true -o ./publish/windows-latest-x64/RemoteRun dotnet publish RemoteRun/RemoteRun.csproj -c Release -r win-x86 --self-contained true -o ./publish/windows-latest-x86/RemoteRun
- (Optional) Build installer packages
ISCC.exe /DMyAppArch=x64 setup.iss ISCC.exe /DMyAppArch=x86 setup.iss
RemoteRun.exe [options] program [arguments]
RemoteRun.exe [options] \\computer program [arguments]
Options:
-w <directory>: Working directory for launched process-d: Don't wait for process completion-t <seconds>: Timeout in seconds (default:60,0= unlimited)-h,--help,/?: Show help
Examples:
RemoteRun.exe
RemoteRun.exe cmd.exe
RemoteRun.exe cmd.exe "/c whoami /all"
RemoteRun.exe -w "C:\Windows\System32" cmd.exe "/c dir"
RemoteRun.exe \\192.168.1.100 cmd.exe "/c ipconfig /all"
RemoteRun.exe \\MYSERVER -t 120 powershell.exe "-Command Get-Process"Additional notes:
- Running with no arguments opens an interactive
cmd.exeas SYSTEM. - If not elevated, the tool relaunches with UAC (
runas) automatically. - Interactive vs captured-output mode is selected automatically based on console redirection.
See the module README for deeper technical behavior.
See the open issues for a full list of proposed features (and known issues).
Contributions are welcome and appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the Apache License 2.0. See LICENSE for more information.
LoveDoLove
- GitHub: LoveDoLove
- Discord: https://discord.com/invite/FyYEmtRCRE
- Telegram Channel: https://t.me/lovedoloveofficialchannel
Project Link: https://github.com/LoveDoLove/RemoteRun