This article was co-authored by wikiHow staff writer, Travis Boylls. Travis Boylls is a Technology Writer and Editor for wikiHow. Travis has experience writing technology-related articles, providing software customer service, and in graphic design. He specializes in Windows, macOS, Android, iOS, and Linux platforms. He studied graphic design at Pikes Peak Community College.
This article has been viewed 150,318 times.
Learn more...
Windows administrative are set to control what users are and aren't allowed to do on a computer. If the administrator has blocked Command Prompt access on a computer you are using, you may be able to run Command Prompt commands using batch files. However, administrators can block batch files too. You can download a tool for Windows 7 that allows you to bypass the administrative restrictions and run programs, but it may not work for newer versions of Windows. If nothing else, you can install Windows on a USB drive and use it to boot your own version of Windows without restrictions on any computer. This wikiHow teaches you how to access the Command Prompt on a that is restricted by administrative privileges.
Steps
Using Batch Files
-
1
-
2Type Notepad. This displays Notepad in the Windows Start menu.Advertisement
-
3Click Notepad. Notepad has an icon that resembles a blue notepad. Click the icon in the Windows Start menu to launch Notepad.
-
4Type in the commands you want to execute. Use Notepad to type the commands you want to use in Command Prompt. Place each command on a separate line.
-
5Click File. It's in the menu bar at the top of Notepad.
-
6Go to Save as. It's in the File menu.
-
7Select "All files*.*" next to "Save as type...". This allows you to save the file as a file other than a text (.txt) file.
-
8Type a name for the file. You can give the file any name you want.
-
9Add the ".bat" extension to the end of the file name. Simply type ".bat" at the end of your chosen filename.
-
10Click Save. This saves your file as a batch file.
-
11Open the batch file. After you save the batch file, navigate to the location you saved it at and double-click it to open the batch file.
Running Windows 10 from a USB Drive
-
1Download the Windows Media Creation Tool. As Windows has progressed, it has become increasingly hard to bypass administrative rights. One way to get around this is to boot your own portable version of Windows from a USB drive. To do this, you'll need a copy of Windows, and an installation key to activate it. Use the following steps to download Windows from any computer:
- Go to https://www.microsoft.com/en-us/software-download/windows10 in a web browser.
- Click Download tool now.
-
2Create a Windows 10 ISO file. Use the following steps to create a Windows ISO file that can be used to install Windows. Use the following steps to create a Windows 10 ISO file.
- Open MediacreationTool.exe in your Downloads folder.
- Click Yes.
- Click Accept to accept the license terms.
- Select Create installation media (USB drive, DVD, or ISO file) for another PC and click Next.
- Select your language, edition, and architecture (optional, uncheck the checkbox to enable the drop-down menus) or use the recommended settings and click Next.
- Select ISO file and click Next.
- Click Save to save the ISO file (note where it saves to).
-
3Download Rufus. Rufus is a free tool you can use to create a bootable USB drive. Use the following steps to download Rufus:
- Go to https://rufus.ie/
- Scroll down and click the latest version of Rufus below "Download".
-
4Insert a blank USB drive. To install Windows on a USB drive, you'll need at least a 16 GB USB drive (32 GB or higher recommended). Insert a blank USB drive in a free USB slot.
- This will erase any data on your USB drive. It is recommended that you backup any files you want to keep before proceeding.
-
5Open Rufus. By default, your downloaded files can be found in your Downloads folder. Simply click the Rufus ".exe" file to open Rufus.
-
6Select your USB drive. Use the drop-down menu below "Device" to select your USB drive.
-
7Click Select. It's the button to the right next to "Boot selection". This button opens a file browser you can use to select the Windows ISO file.
-
8Select the Windows ISO file and click Open. Use the file browser to navigate to where you downloaded the Windows ISO file. Click it to select it and click Open.
-
9Select "Windows To Go" as the image option. Use the drop-down menu below "Image Option" to select "Windows To Go".
-
10Click Start. This begins the process of installing Windows on your USB drive.
-
11Select the version of Windows you want to install and click Ok. You can install Windows 10 Home Edition, Education, or Pro Edition. Click the radio option next to the version of Windows you want to install and click Ok. This will begin installing Windows on your USB drive. This may take several hours.
-
12Insert the Windows USB drive into the computer you want to access the command prompt on. You can insert it into any free USB slot.
-
13Boot into the BIOS of the computer. On most computers, you can enter the BIOS by press F12, F10, F2, F1, ESC, or DEL (depending on the manufacturer) while it boots up. It will normally tell you which button to press. You can also boot into the BIOS using the following steps:<ref>https://www.laptopmag.com/articles/access-bios-windows-10
- Click the Windows Start menu.
- Click the Settings/Gear icon.
- Click Update & Security.
- Click Recovery in the panel to the left.
- Click Restart Now.
- Click Troubleshoot.
- Click Advanced Options.
- Click UEFI Firmware Settings.
- Click Restart.
-
14Select the Boot order menu. The BIOS menu is a little different on each computer make and model. Use the arrow keys on the keyboard to navigate the BIOS menu and press "Enter" to select your option. Look for a menu that says "Boot", "Boot Menu", "Boot order" or something similar.
-
15Make sure the computer is set to boot from a USB drive first. On most computer, the boot order determines which drive the computer will try to boot from first. Set it so that it boots from the USB drive first. If no USB drive is available, it will boot into it's standard Windows installation.
-
16Save and Exit the BIOS. Once you have it set to boot from the USB drive first, navigate to the option to save and exit. The computer will reboot. When it does, it will boot from your USB drive and load your own Windows installation instead of it's normal Windows Installation.
- The first time you load Windows from a USB drive, you will need to go through standard Windows setup process. You will also need to activate Windows. Once it is installed, you can use the USB drive to access your own Windows installation from any computer. You can also install any programs and files on it.
- The downside to running Windows from a USB drive is it will run slower than a standard Windows installation.
-
17
-
18Type CMD. This displays the Command Prompt in the Windows Start menu.
-
19Click the Command Prompt. Since you are running your own Windows installation, the administrative restrictions will not apply.
Using RAAC (WIndows 7 And Earlier)
-
1Navigate to http://sourceforge.net/projects/raacrunasadmin in a web browser. You can use any web browser installed on your computer. This is the download page to for Run As Administrator Controller. It is a free download that allows you to run programs with administrative access on Windows 7 and earlier.
-
2
-
3Double-click the RAAC X64.exe or RAAC X86.exe file. This will open RAAC. Typically your downloaded files can be found in your Downloads folder. If you are running a 32-bit version of Windows, make sure you download the RAAC X86.exe file. For 64-bit versions of Windows, use RAAC X64.exe.
-
4Click on the green plus (+) sign. It's in the upper-right corner of RAAC. This allows you to add programs that you can run as an administrator.
-
5Click Browse for Programs. It's the third button at the bottom of RAAC. This option allows you to add executable files you can run.
-
6Browse for and add cmd.exe. This will add "cmd.exe" to the list of programs in RAAC. Use the following steps to navigate to the CMD executable.
- Click the C: drive.
- Click Windows
- Click System32
- Click cmd.exe
- To find "cmd.exe" on Windows 10, make sure hidden files and folders are visible and navigate to C:\Users\[username]\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\System Tools. RAAC may not be able to open any programs on Windows 10.
- Click Open.
-
7Click Windows Command Processor and click the Play button. Windows Command Processor will be listed in RAAC. Click it to select the program and then click the Play icon at the top. This should run cmd.exe with administrative privileges.
Community Q&A
-
QuestionHow do I hack command prompt?Community AnswerYou can't hack command prompt. You use command prompt to hack. Try to learn how to use command prompt. An example of what you can do with CMD is shut down a computer remotely that is on your local area network. If it is blocked in school, create an echo code which will keep the tab open and bypass the admin access denied notification.
-
QuestionHow can I open APK files using command prompt?Community AnswerYou can't. APK files are for Android. You can emulate Android using Bluestacks.
-
QuestionWhat commands can I use to unblock any site with CMD?Community AnswerYou can not unblock any site with CMD. You are free to use 3rd party programs though.
Warnings
- Be careful when doing this, many IT admins and tech guys do not like people messing around with their systems when they have it setup for a reason.⧼thumbs_response⧽
- Don't do this around teachers or people that can see what you're doing, do it when the teacher is not looking or anyone else.⧼thumbs_response⧽
- We do not take responsibility for any punishment you may get; it is your responsibility to do this without getting caught.⧼thumbs_response⧽
About This Article
1. Open Notepad
2. Type the commands you want to execute in CMD.
3. Click File followed by Save as.
4. Select All files (*.*) next to "Save as Type".
5. Save the file as a ".bat" file.
6. Navigate to where you opened the file and open it.