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.

Method 1
Method 1 of 3:

Using Batch Files

  1. 1
  2. 2
    Type Notepad. This displays Notepad in the Windows Start menu.
    Advertisement
  3. 3
    Click Notepad. Notepad has an icon that resembles a blue notepad. Click the icon in the Windows Start menu to launch Notepad.
  4. 4
    Type 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.
  5. 5
    Click File. It's in the menu bar at the top of Notepad.
  6. 6
    Go to Save as. It's in the File menu.
  7. 7
    Select "All files*.*" next to "Save as type...". This allows you to save the file as a file other than a text (.txt) file.
  8. 8
    Type a name for the file. You can give the file any name you want.
  9. 9
    Add the ".bat" extension to the end of the file name. Simply type ".bat" at the end of your chosen filename.
  10. 10
    Click Save. This saves your file as a batch file.
  11. 11
    Open 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.
  12. Advertisement
Method 2
Method 2 of 3:

Running Windows 10 from a USB Drive

  1. 1
    Download 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:
  2. 2
    Create 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).
  3. 3
    Download 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".
  4. 4
    Insert 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.
  5. 5
    Open Rufus. By default, your downloaded files can be found in your Downloads folder. Simply click the Rufus ".exe" file to open Rufus.
  6. 6
    Select your USB drive. Use the drop-down menu below "Device" to select your USB drive.
  7. 7
    Click 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.
  8. 8
    Select 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.
  9. 9
    Select "Windows To Go" as the image option. Use the drop-down menu below "Image Option" to select "Windows To Go".
  10. 10
    Click Start. This begins the process of installing Windows on your USB drive.
  11. 11
    Select 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.
  12. 12
    Insert the Windows USB drive into the computer you want to access the command prompt on. You can insert it into any free USB slot.
  13. 13
    Boot 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.
  14. 14
    Select 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.
  15. 15
    Make 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.
  16. 16
    Save 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. 17
  18. 18
    Type CMD. This displays the Command Prompt in the Windows Start menu.
  19. 19
    Click the Command Prompt. Since you are running your own Windows installation, the administrative restrictions will not apply.
  20. Advertisement
Method 3
Method 3 of 3:

Using RAAC (WIndows 7 And Earlier)

  1. 1
    Navigate 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. 2
  3. 3
    Double-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.
  4. 4
    Click 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.
  5. 5
    Click Browse for Programs. It's the third button at the bottom of RAAC. This option allows you to add executable files you can run.
  6. 6
    Browse 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.
  7. 7
    Click 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.
  8. Advertisement

Community Q&A

  • Question
    How do I hack command prompt?
    Community Answer
    Community Answer
    You 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.
  • Question
    How can I open APK files using command prompt?
    Community Answer
    Community Answer
    You can't. APK files are for Android. You can emulate Android using Bluestacks.
  • Question
    What commands can I use to unblock any site with CMD?
    Community Answer
    Community Answer
    You can not unblock any site with CMD. You are free to use 3rd party programs though.
Advertisement

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⧽
Advertisement

About This Article

Travis Boylls
Written by:
wikiHow Technology Writer
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.
How helpful is this?
Co-authors: 15
Updated: April 8, 2021
Views: 150,318
Categories: Command Prompt
Article SummaryX

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.

Did this summary help you?
Advertisement