How to Run cmd command on startup [Steps]

Tips to Run cmd command on startup in Windows 10:

In this article, we are going to discuss on How to Run cmd command on startup in Windows 10. You will be guided with easy steps/methods to do so. Let’s starts the discussion.

‘What is CMD Command’?

CMD – Command Prompt – cmd.exe: Command Prompt is default command-line interpreter for OS/2, eComStation, ArcaOS, Microsoft Windows NT family and Windows CE family, and ReactOS operating system. Cmd.exe interacts with user through a command-line interface. On Windows, this interface is implemented through Win32 console cmd.exe may take advantage of features available to native programs of its own.

It is quite simple & easy to run Commands in Command Prompt in Windows 10 computer. To open Command Prompt as administrator, you can press ‘Windows + R’ keys on keyboard, type ‘cmd’ in ‘Run’ window and press ‘CTRL + SHIFT + ENTER’ keys on keyboard to open Command Prompt as Administrator.

However, it appears that you are programmer or learning command-line, and want to open command prompt on startup instead of open it manually every time you boot your computer. It is possible to run cmd commands on startup in Windows PC. Let’s go for the solution.

How to Run cmd command on startup in Windows 10?

Method 1: Run cmd command on startup in Windows PC via Shell command

Step 1: Press ‘Windows + R’ keys on keyboard, type ‘C:\WINDOWS\system32’ in ‘Run’ window and hit ‘Ok’ button to open System32 folder

Step 2: Find and copy ‘cmd.exe’ application. Now, press ‘Windows + R’ keys on keyboard, type ‘shell:startup’ and hit ‘Enter’ key and in the opened page, paste the copied command prompt application. Next time onwards when you restart your computer, command prompt will run at startup automatically.

Method 2: Run cmd command on startup with Task Scheduler

Step 1: Search for ‘Task Scheduler’ in start menu and run it as administrator

Step 2: Select ‘Create Task’ option from right sidebar, add the name of Task says, ‘Run cmd command on startup’, check ‘Run only when user is logged in’ option. If you want to run application with ‘Highest privileges’ or as administrator, click the checkbox.

Step 3: Select ‘Triggers’ tab and click ‘New’ button. The ‘New Trigger’ panel will appear in new window

Step 4: Select ‘Begin the task’ option to ‘At Startup’ from dropdown and click ‘Ok’ button

Step 5: Select ‘Actions’ tab and click ‘New’, select ‘Action’ option to ‘Start a program’ and add the following path in ‘program/script’ option: C:\WINDOWS\system32\cmd.exe.

Step 6: Task will be added in Action tab and now, click ‘Ok’ button and the task will be scheduled for the next time you boot the device.

Fix Windows PC Issues with ‘PC Repair Tool’:

‘PC Repair Tool’ is easy & quick way to find and fix BSOD errors, DLL errors, EXE errors, problems with programs/applications, malware or viruses infections in computer, system files or registry issues, and other system issues with just few clicks.


I am sure this post helped you on How to Run cmd command on startup in Windows 10 with easy ways. You can read & follow our instructions to do so. That’s all. For any suggestions or queries, please write on comment box below.