- Complete Guide to Your Windows System Run Commands
- Access parts of the operating system easily
- Windows Run Commands
- Control Panel Access Run Commands
- Windows Start | Run commands
- How to Run a Program as SYSTEM (LocalSystem) Account in Windows
- Method to run a program under the SYSTEM account:
- How to Run Programs as SYSTEM (LocalSystem account)
- Using PsExec.exe from Windows Sysinternals
- Using Advanced Run from Nirsoft
- Run as SYSTEM via the right-click menu
- Using Process Hacker
- Using NirCmd.exe from NirSoft
- Context menu implementation
- Using RunAsSystem from Uwe Sieber
- Context menu implementation
- Using “NSudo” from M2Team
- NSudo: Command-line support
- Context menu addition
- One small request: If you liked this post, please share this?
- About the author
- 2 thoughts on “How to Run a Program as SYSTEM (LocalSystem) Account in Windows”
Complete Guide to Your Windows System Run Commands
Access parts of the operating system easily
Run commands can be used to access various aspects of your computer without going through the Control Panel or menus. If you’re in the process of tweaking your system so it becomes more responsive, you may find these commands useful.
This guide applies to Windows 10, Windows 8, and Windows 7.
Windows Run Commands
To use any of these commands in Windows 10, right-click on the Start menu and select Run (in Windows 8 and 7, select Start > Run), or use the keyboard shortcut Windows Key+R in all versions of Windows. Then enter a command at the prompt and select OK. Before modifying any values within these utilities, be sure to read up on what they do.
The Run app is not case sensitive.
Command | What It Does |
Command | Opens the command prompt. |
Compmgmt.msc | Opens the computer management console. |
Devmgmt.msc | Opens the device manager. |
Diskmgmt.msc | Opens the disk management tool. |
Eventvwr.msc | Opens the event viewer. |
Fsmgmt.msc | Opens shared folders. |
Gpedit.msc | Opens the group policy editor. |
Lusrmgr.msc | Opens the local users and groups. |
Mailto: | Opens the default email client. |
Msconfig | Opens the system configuration utility. |
Msinfo32 | Opens the system information utility. |
Perfmon.msc | Opens the performance monitor. |
Regedit | Opens the registry editor. |
Rsop.msc | Opens resultant set of policy. |
Secpol.msc | Opens local security settings. |
Services.msc | Opens services utility. |
System.ini | Windows loading information. |
Win.ini | Windows loading information. |
Winver | Shows current version of Windows. |
Control Panel Access Run Commands
The following commands access various parts of the Control Panel directly:
Windows Start | Run commands
Description | Run Command |
---|---|
Accessibility Options | utilman or control access.cpl |
Add Hardware Wizard | hdwwiz |
Programs and Features (Add New Programs) (Add Remove Windows Components) (Set Program Access & Defaults ) | appwiz.cpl control appwiz.cpl,,1 control appwiz.cpl,,2 control appwiz.cpl,,3 |
Administrative Tools | control admintools |
Advanced User Accounts Control Panel | netplwiz |
Authorization Manager | azman.msc |
Automatic Update | control wuaucpl.cpl |
Backup and Restore Utility | sdclt |
Bluetooth Transfer Wizard | fsquirt |
Calculator | calc |
Certificate Manager | certmgr.msc |
Character Map | charmap |
Check Disk Utility | chkdsk |
Clear Type (tune or turn off) | cttune |
Color Management | colorcpl.exe |
Command Prompt | cmd |
Component Services | dcomcnfg or comexp.msc |
Computer Management | CompMgmtLauncher.exe or compmgmt.msc |
Control Panel | control |
Credential (passwords) Backup and Restore Wizard | credwiz |
Data Execution Prevention | SystemPropertiesDataExecutionPrevention |
Date and Time Properties | timedate.cpl |
Device Manager | hdwwiz or devmgmt.msc |
Device Pairing Wizard | DevicePairingWizard |
Digitizer Calibration Tool (Tablets/Touch screens) | tabcal |
Direct X Control Panel (if installed) | directx.cpl |
Direct X Troubleshooter | dxdiag |
Disk Cleanup Utility | cleanmgr |
Disk Defragmenter | dfrgui defrag |
Disk Management | diskmgmt.msc |
Disk Partition Manager | diskpart |
Display Color Calibration | dccw |
Display DPI / Text size | dpiscaling |
Display Properties (Themes, Desktop, Screensaver) | control desktop |
Display Properties (Resolution, Orientation) | desk.cpl |
Display Properties (Color & Appearance) | control color |
Documents (open ‘My Documents’ folder) | documents |
Downloads (open ‘Downloads’ folder) | downloads |
Driver Verifier Utility | verifier |
DVD Player | dvdplay |
Edit Environment Variables | rundll32.exe sysdm.cpl,EditEnvironmentVariables |
Encrypting File System Wizard (EFS) | rekeywiz |
Event Viewer | eventvwr.msc |
File Signature Verification Tool (Device drivers) | sigverif |
Files and Settings Transfer Tool | %systemroot%\system32\migwiz\migwiz.exe |
Firewall Control Panel | firewall.cpl |
Folders Properties | control folders |
Fonts list | control fonts |
Font preview | fontview arial.ttf |
Game Controllers | joy.cpl |
Local Group Policy Editor | gpedit.msc |
Internet Properties | inetcpl.cpl |
IP Configuration | ipconfig |
iSCSI Initiator configuration | iscsicpl |
Keyboard Properties | control keyboard |
Language Pack Installer | lpksetup |
Local Security Policy | secpol.msc |
Local Users and Groups | lusrmgr.msc |
Log out | logoff |
Microsoft Malicious Software Removal Tool | mrt |
Microsoft Management Console | mmc |
Access (Microsoft Office) | msaccess |
Excel (Microsoft Office) | Excel |
Powerpoint (Microsoft Office) | powerpnt |
Word (Microsoft Office) | winword |
Microsoft Paint | mspaint |
Microsoft Support Diagnostic Tool | msdt |
Mouse Properties | control mouse or main.cpl |
Network Connections | control netconnections or ncpa.cpl |
Projector: Connect to Network Projector Switch projector display | netproj |
displayswitch
Default ODBC driver:
32-bit ODBC driver under 64-bit platform:
C:\windows\sysWOW64\odbcad32.exe
sysdm.cpl SystemProperties
or
sysdm.cpl DisplaySYSDMCPL
explorer.exe . Will open at the current directory
Windows Firewall with Advanced Security
wf.msc
(boot password.)
Unless indicated otherwise, all the commands above work in all versions of Windows from Vista upwards.
Most of these utilities can be found in %systemroot%\System32\
“The Macintosh uses an experimental pointing device called a ‘mouse.’ There is no evidence that people want to use these things”
How to Run a Program as SYSTEM (LocalSystem) Account in Windows
Many Windows system files, registry keys, and services are owned by the SYSTEM (a.k.a LocalSystem) account, which has a high privilege level. If you need to modify a registry key owned by the SYSTEM account, there are at least two options.
The first option that comes to your mind is to take ownership of the corresponding registry key, assign yourself Full Control permissions. Once the registry key or the values are updated, revert the permissions and ownership to SYSTEM .
There is, however, an easier option. You can run the program — e.g., the Command Prompt or the Registry Editor under the SYSTEM account directly and update the registry values.
This article lists six different methods using which you can run programs under the SYSTEM or LocalSystem account in any version of Windows, including Windows 10. You can also add a Run as SYSTEM right-click menu option for .exe files.
Method to run a program under the SYSTEM account:
Before proceeding, understand that the terms SYSTEM , LocalSystem , and NT AUTHORITY\SYSTEM are one and the same.
How to Run Programs as SYSTEM (LocalSystem account)
To run a program under the SYSTEM account, use one of the following tools:
Using PsExec.exe from Windows Sysinternals
Use PsExec.exe console tool from Microsoft’s Windows Sysinternals to run a program under the SYSTEM context. Follow these instructions:
- Download PsExec from Microsoft Sysinternals.
- Unzip and extract the tool to a permanent folder — e.g., d:\tools
- Open an elevated or admin Command Prompt window.
- To start the Registry Editor under the SYSTEM account, type the following command, and press ENTER :
The above PsExec command-line starts the Registry Editor under LOCALSYSTEM account so that you can modify protected areas in the registry.
Note: If you launch Command Prompt ( cmd.exe ) using PsExec.exe under the SYSTEM account, it spawns a new Command Prompt window. And, any program you launch from that Command Prompt window would run under the SYSTEM (LocalSystem) account, which is a high privileged account. You must be cautious when running programs under the SYSTEM account so that you don’t accidentally run an undesired program as SYSTEM .
Using Advanced Run from Nirsoft
AdvancedRun is a simple tool for Windows that allows you to run a program with different settings that you choose, including – low or high priority, start directory, main window state (Minimized/Maximized), run the program with different user or permissions, Operating system compatibility settings, and environment variables. You can also save the desired settings into a configuration file and then run the program automatically from the command-line with the desired settings.
Using Advanced Run, you also launch a program under SYSTEM or a different user context.
Type in the program name to run and choose SYSTEM user in the Run As dropdown box, and click Run.
You can also create a desktop shortcut to run a program as SYSTEM. Here is the command-line syntax you use:
/RunAs 4 instructs to start the program under the LocalSystem account. The possible value data for the /RunAs switch are below:
- 1 – Run as current user (elevate)
- 2 – Run as current user (no elevation)
- 3 – Run as Administrator (force elevation)
- 4 – Run as SYSTEM
- 8 – Run as TrustedInstaller
This starts the program under the LocalSystem account, which you can verify in the Task Manager Details tab.
Run as SYSTEM via the right-click menu
To launch a program under the SYSTEM account (with Advanced Run) from the right-click context menu, make a .reg file from the following contents and run the file.
Change the path to AdvancedRun.exe in the .reg file if necessary.
This adds the Run as SYSTEM command to the right-click menu for .exe files and its shortcuts.
Using Process Hacker
Process Hacker is an excellent process manager that looks similar to Sysinternals Process Explorer. This tool has a unique feature that allows you to launch a program under the same account as a running process or service.
- Run Process Hacker as administrator.
- Locate a program or service which is currently running under NT AUTHORITY\SYSTEM .
- Right-click on the process, click Miscellaneous, and click Run as this user…
Now the program (e.g., cmd.exe) would run as SYSTEM ( NT AUTHORITY\SYSTEM )
The above method can also be used to launch any program under TrustedInstaller.
Using NirCmd.exe from NirSoft
NirCmd is a multipurpose command-line tool which we’ve covered in this site before.
NirCmd can start a program elevated as well as launch it under the SYSTEM account.
Use this command-line to start the Registry Editor elevated and under the SYSTEM account:
Context menu implementation
Make a .reg file from the following contents and run the file.
Using RunAsSystem from Uwe Sieber
RunAsSystem (from Uwe Sieber) is a console tool that launches a program under the SYSTEM account or context. It also passes the window style and its process priority to the executed process by default. You can override the window size as well as the child process priority using command-line arguments. Uwe Sieber is the one who developed the famous USB Drive Letter Manager program.
It waits for the started process to end and then passes back its return code (aka errorlevel). However, in a batch file, you have to add start /wait .
Usage:
Examples:
Context menu implementation
Make a .reg file from the following contents and run the file.
The above .reg file adds a Run as SYSTEM command in the right-click menu for .exe files. The .reg file assumes that the file RunAsSystem.exe is placed under the d:\tools folder. If not, alter the path accordingly in the .reg file.
Using “NSudo” from M2Team
NSudo (GitHub) is a similar portable utility like Advanced Run, except that it is not digitally signed. It can launch programs under SYSTEM, Current User, Current Process, or the TrustedInstaller account. We’ve earlier seen how to use NSudo to launch programs as TrustedInstaller.
Select the mode (System) from the dropdown, type in the executable path, and click Run.
Optionally, you can also add a predefined set of programs or commands in the Open: drop-down list box by editing the file named NSudo.json located in the same folder as the executable.
To run a program under the SYSTEM context using NSudo command-line, use this syntax:
See below for the full list of command-line arguments supported by this utility.
NSudo: Command-line support
Context menu addition
- Run NSudo with -Install parameter. It copies NSudo to the Windows directory and adds the context menu.
- To remove the context menu, run NSudo with the -Uninstall parameter. It removes NSudo from the Windows directory and the context menu.
Editor’s Pick: Advanced Run for GUI (and CLI), and PsExec for CLI.
One small request: If you liked this post, please share this?
About the author
Ramesh Srinivasan founded Winhelponline.com back in 2005. He is passionate about Microsoft technologies and he has been a Microsoft Most Valuable Professional (MVP) for 10 consecutive years from 2003 to 2012.
Microsoft → Windows → How to Run a Program as SYSTEM (LocalSystem) Account in Windows
2 thoughts on “How to Run a Program as SYSTEM (LocalSystem) Account in Windows”
This is a really useful article and information. Thank you for that!
I use this feature at the login screen by renaming a few files while Windows is offline. While this is a handy feature for technicians like myself, shouldn’t this be a security issue that Microsoft addresses?