How to run any command prompt command with cortana

How to run any command prompt command with cortana

Don’t worry—Microsoft did not kill cmd.exe. Here’s how you can use Command Prompt instead of PowerShell in Windows 10 Creators Update.

Ten years ago Microsoft introduced PowerShell, a modern command line environment with advanced functionality far above and beyond the tried and true Command Prompt. For many users and developers, this was seen as the beginning of the demise of the classic Command Prompt, which has been part of Windows since the initial release of NT. Surprisingly, for the past ten years, the Command Prompt has survived in Windows; though there have been many a rumor that Microsft would be nixing it in the upcoming Creators Update.

In a blog post, Microsoft stated that the rumors of Command Prompt’s death have been greatly exaggerated; Command Prompt will still be available in the Creators Update. Although PowerShell is the default command line utility in Windows 10 Creators Update, users can still revert to Command Prompt as the default or launch it just as they normally do in current Windows versions. Let’s take a look at how to do that.

How to Bring Command Prompt Back in Windows 10 Creators Update

Since Windows 8, a favorite way to launch Command Prompt is from the Power User Menu (Windows key + X). Usually, this displays an option to run the Command Prompt or Command Prompt (Admin) option.

In the Windows 10 Creators Update, users will now see PowerShell as the default.

How to run any command prompt command with cortana

You can quickly change the default by opening Settings > Personalization > Taskbar. Toggle off Replace Command Prompt with Windows PowerShell in the menu when I right-click the start button or press Windows key + X. When you launch the Power menu, you will now see your trusty old Command Prompt menu.

How to run any command prompt command with cortana

If you prefer having the best of both worlds, you can keep Powershell as the default and launch Command Prompt from the search or run command. Click Start, type: cmd, press Control + Shift + Enter or right-click it then

Click Start, type: cmd, and press Control + Shift + Enter ( right-click Command Prompt and then click Run as administrator) if needed.

You can also use the Cortana digital assistant by enabling listening mode (Windows key + Shift + C) then saying “Hey Cortana” then “Launch Command Prompt.”

How to run any command prompt command with cortana

The Run command is another fast way to launch the Command Prompt. Press Windows key + R then type cmd and press Enter.

How to run any command prompt command with cortana

There are unconventional ways you can launch Command Prompt too. Press Windows key + X > Task Manager or Control + Shift + Esc. Click File > Run new task, type: cmd then hit Enter. If you need to open it with administrator privileges, hold down the Control key while clicking Run new task.

How to run any command prompt command with cortana

From within File Explorer, you can type CMD in the Address Bar then hit Enter.

How to run any command prompt command with cortana

If you want to open a specific folder directly in the Command Prompt, hold down the Shift key, right-click the folder then click Open command window here.

How to run any command prompt command with cortana

Alternatively, you can select a file or folder, then click File > Open Command Prompt.

How to run any command prompt command with cortana

If you prefer the old methodical way of opening the Command Prompt, it’s still there. Click Start > All Apps > Windows System > Command Prompt.

How to run any command prompt command with cortana

You can also drag and drop the Command Prompt icon to your desktop from the Windows System folder. Right-click it, click Properties > select the Shortcut tab, click Advanced, check the Run as administrator box, click OK, click Apply then OK again to confirm changes.

How to run any command prompt command with cortana

You can then drag and drop Command Prompt to your Taskbar for even quicker access with administrator privileges.

So, there are many ways to still get your Command Prompt fix in Windows 10 without missing out on some of the new advances available in PowerShell. If you love tinkering with the command line, check out some of our previous articles for activities you can do with it, like accessing the new Linux BASH tools or harvesting beautiful Windows Spotlight wallpapers.

Tell us what you think and how you are still utilizing the Command Prompt in Windows.

Whitson Gordon is How-To Geek’s former Editor in Chief and was Lifehacker’s Editor in Chief before that. He has written for The New York Times, Popular Science, Wired, iFixit, The Daily Beast, PCMag, Macworld, IGN, Medium’s OneZero, The Inventory, and Engadget. Read more.

How to run any command prompt command with cortana

Cortana may not be as popular as Microsoft was hoping for, but it can be useful. No longer do you need to be next to your computer to perform a task; you can shout it from the other side of the room. However, there are some things Cortana can’t do out of the box.

Thanks to Windows 10’s Fall Creators Update, for example, Cortana can now shut down, restart, lock, or sign you out of your PC. Just say “Hey Cortana, shut down my PC”—it’s that simple. It can’t, however, put your PC to sleep, which is the one thing I really would like to do with my voice.

There’s an easy workaround for this, though. Cortana can open any program it finds in the Start Menu with a simple voice command. So if you can make a shortcut out of the task you want to perform—such as a Command Prompt command—Cortana can do it with your voice.

To do this, open File Explorer and paste the following path in the address bar:

This will open up your Start Menu’s list of programs (which is where Cortana looks for shortcuts when you say a command). Right-click an empty area inside this folder and select New > Shortcut.

How to run any command prompt command with cortana

In the location box, type the Command Prompt command you want to invoke with your voice. In my case, I want to put my PC to sleep—the command for which is:

Obviously, replace this with whatever command you want to use. Click Next.

How to run any command prompt command with cortana

On the next screen, name your shortcut whatever you want. In my case, I’m going to name it “Sleep Computer”.

How to run any command prompt command with cortana

Click Finish when you’re done. You should see your new shortcut in the Programs folder.

How to run any command prompt command with cortana

That’s all it takes! Now you just need to invoke that shortcut by saying “Hey Cortana, Open [Shortcut Name].” In my case, I’d say “Hey Cortana, Open Sleep Computer”.

It’s not the most natural language in the world, but hey—for a geeky workaround, it’s not bad at all.

(Almost) everything you can say to Cortana.

Sarah Jacobsson Purewal

Sarah is a freelance writer and CNET How To blogger. Her main focus is Windows, but she also covers everything from mobile tech to video games to DIY hardware projects. She likes to press buttons and see what happens, so don’t let her near any control panels.

If you don’t use Cortana, Microsoft’s voice-activated personal assistant, you’re missing out on some handy, hands-free functionality — especially now that she’s fully integrated into Windows 10, and Windows 10 is everywhere.

Like Apple’s Siri and Google’s Google Now, Cortana is an intelligent personal assistant who can help you with everything from launching applications to scheduling appointments. She can even adjust a handful of device settings, such as toggling your Wi-Fi on and off. Microsoft hasn’t published a full list of Cortana commands, so we pulled together this unofficial list of all the things you can ask or say to Cortana on Windows 10 devices.

Hey, Cortana

There are a few ways to get Cortana’s attention.

  • Click or tap the Cortana button on the taskbar. If you do not see Cortana on your taskbar, right-click the taskbar and go to Cortana > Show Cortana icon.
  • If you have ‘Hey, Cortana’ enabled, simply say “Hey, Cortana,” followed by your question. Here’s how to enable ‘Hey, Cortana.’
  • If you’re using a Windows Phone, you can press and hold the search button to activate Cortana.


  • Ask about the weather. Ex.: “What’s the weather like?” or “What will the weather be like in two days?” or “Is it going to rain tomorrow?”
  • Launch a program or open a website. Ex.: “Launch Mozilla Firefox” or “Open”
  • Make a phone call. Ex.: “Call Sarah,” or “Call John on speakerphone.”
  • Hear Cortana read the top news headlines. Ex.: “Show me top headlines.”
  • Take a note in OneNote. Ex.: “Take a note” or “Note it down.”
  • Draft an email. Ex.: “Write an email to [contact] saying [message].”
  • Draft a text message. Ex.: “Write a text to [contact] saying [message].”
  • See texts or emails from a specific person. Ex.: “Show me emails from Timmy.”
  • Perform simple calculations. Ex.: “What’s 35 times 16?” or “What’s 23 minus two?”
  • Perform conversions. Ex.: “What is five miles in kilometers” or “How many teaspoons in a cup?”
  • Define a word. Ex.: “What’s the definition of ‘table’?” or “Do you know what ‘gargantuan’ means?”
  • Track packages (needs email account configured in the Mail app). Ex.: “Where are my packages?”


  • Turn on/off Wi-Fi.
  • Turn on/off Bluetooth.
  • Turn on/off Airplane Mode.


  • See your calendar events at a glance. Ex.: “How’s my schedule looking?” or “What do I have next week?” or “When is my dentist appointment?”
  • Add an appointment to your calendar. Ex.: “Add dentist appointment to Thursday at 3 p.m.” or “Schedule phone call with Lisa tomorrow at 5 a.m.”
  • Move an appointment. Ex.: “Move my dentist appointment to Friday.”
  • Set up reminders based on time, person, or location. Ex.: “Remind me to call Timmy at 2 p.m.” or “Remind me to ask about vacation time when I talk to Jenny” or “Remind me to take out the trash when I get home.” Reminders can be one-offs or recurring (e.g., every Wednesday), and location-based reminders require a mobile device.
  • Set an alarm. Ex.: “Set an alarm for 9 a.m.” or “Wake me up in an hour.”
  • Show me my alarms.
  • Ask about major holidays. Ex.: “What day is Christmas?” or “When is Labor Day?”


  • Find pictures, videos, documents, etc., on your device from a specific time frame. Ex.: “Find pictures from last week” or “Find documents from May 2015” or “Find videos from yesterday.”
  • Search files by name. Ex.: “Can you find a document called CNET?” or “Can you find a picture called ‘cute dog’?”
  • See basic search results, such as information about public figures, companies, places, and pop culture in Cortana’s windows (without opening a browser window). Ex.: “How tall is Harrison Ford?” or “Who is the CEO of Google?” or “When was the Lincoln Memorial built?”


  • Where am I?
  • Show me driving/public transit/walking directions to [location/landmark].
  • How long will it take me to get to [location]?
  • What is traffic like on the way to [location]?
  • Show me a map of [location]. Ex.: “Show me a map of downtown Los Angeles,” or “Show me a map of the area around Disneyland.”


  • Look up a sports score. Ex.: “What was the score of the last Detroit Tigers game?”
  • Find the run time of a movie. Ex.: “How long is Star Wars: Episode I?”
  • Control music in the Groove app. Ex.: “Play [artist/song/genre/playlist/album],” or “Shuffle the music.”
  • Limited control over music in other apps. Ex.: “Pause song” or “skip track.”
  • Identify the song that’s playing. Ex.: “What is this song?”


  • Track flight status (from your mail/messages). Ex.: “Is my flight on time?”
  • Get a five-day forecast for any location. Ex.: “How’s the weather in Tokyo?”
  • Translate a word or phrase into a different language. Ex.: “How do you say ‘dog’ in French?” or “How do you say ‘how are you’ in Japanese?”
  • Convert currency. Ex.: “What’s 400 reais in Euros?” or “What’s 1,000 yen in US dollars?”
  • Find the current time in another city/country. Ex.: “What time is it in Los Angeles?” or “What time is it in Japan?”
  • What are the seven wonders of the world?

Random tips and tricks

  • Ask Cortana about her origins, aka Halo. Ex.: “Do you love Master Chief?” or “Tell me about Halo 5.”
  • What’s up?
  • What does the fox say?
  • Tell me a joke.
  • Where’s Clippy?
  • What do you think of Windows 10?
  • What do you think of Google?
  • Do you like Google Now?
  • Who’s better, you or Siri?
  • Sing me a lullaby/Sing me a song.
  • Rock, paper, scissors.
  • Play the movie game.
  • Heads or tails?
  • Roll a die/dice (one die) or roll dice (two dice).
  • Surprise me!

Rahul Saigal is a technology writer with a half-decade of experience covering everything from software tips to productivity solutions. He’s written many approachable articles, in-depth tutorials, and even eBooks. Read more.

How to run any command prompt command with cortana

The Command Prompt has been around forever, and it’s still a great resource to have at your disposal. Today we’re showing you all of the different ways to open the Command Prompt. We’re betting you don’t know all of them.

The Command Prompt is a pretty useful tool. It allows you to do some things quicker than you can do them in the graphic interface and offers some tools that you just can’t find in the graphic interface at all. And in true keyboard-ninja spirit, the Command Prompt also supports all kinds of clever keyboard shortcuts that make it even more powerful. While it’s easy to just open the Command Prompt from the Start menu, that’s not the only way to do it. So, let’s take a look at the rest.

Note: this article is based on Windows 10, but the majority of these methods should work in earlier versions of Windows, too.

Open Command Prompt from Windows+X Power Users Menu

Press Windows+X to open the Power Users menu, and then click “Command Prompt” or “Command Prompt (Admin).”

How to run any command prompt command with cortana

Note: If you see PowerShell instead of Command Prompt on the Power Users menu, that’s a switch that came about with the Creators Update for Windows 10. It’s very easy to switch back to showing the Command Prompt on the Power Users menu if you want, or you can give PowerShell a try. You can do pretty much everything in PowerShell that you can do in Command Prompt, plus a lot of other useful things.

Open a Command Prompt from Task Manager

Open Task Manager with more details. Open the “File” menu and then choose “Run New Task.” Type cmd or cmd.exe , and then click “OK” to open up a regular Command Prompt. You can also check the “Create this task with administrative privileges” to open Command Prompt as administrator.

How to run any command prompt command with cortana

Open a Command Prompt in Admin Mode from Task Manager the Secret Easy Way

To quickly open a command prompt with administrative privileges from Task Manager, open the “File” menu and then hold the CTRL key while clicking “Run New Task.” This will immediately open Command Prompt with administrative privileges—no need to type anything.

How to run any command prompt command with cortana

Open Command Prompt from a Start Menu Search

You can easily open the Command Prompt by clicking Start and then typing “cmd” into the search box. Alternatively, click/tap on the microphone icon in Cortana’s search field and say “Launch Command Prompt.”

To open Command Prompt with administrative privileges, right-click the result and then click “Run as Administrator.” You could also highlight the result with the arrow keys and then press Ctrl+Shift+Enter.

How to run any command prompt command with cortana

Open Command Prompt By Scrolling Through the Start Menu

Click Start. Scroll down and expand the “Windows System” folder. Click “Command Prompt.” To open with administrative privileges, right-click Command Prompt and choose “Run as administrator.”

How to run any command prompt command with cortana

Open Command Prompt from File Explorer

Open File Explorer, and then navigate to the C:\Windows\System32 folder. Double-click the “cmd.exe” file or right-click the file and choose “Run as administrator.” You can also create a shortcut to this file and store the shortcut anywhere you like.

How to run any command prompt command with cortana

Open Command Prompt from the Run Box

Press Windows+R to open “Run” box. Type “cmd” and then click “OK” to open a regular Command Prompt. Type “cmd” and then press Ctrl+Shift+Enter to open an administrator Command Prompt.

How to run any command prompt command with cortana

Open Command Prompt from the File Explorer Address Bar

In File Explorer, click the address bar to select it (or press Alt+D). Type “cmd” into the address bar and hit Enter to open the Command Prompt with the path of the current folder already set.

How to run any command prompt command with cortana

Open Command Prompt Here from the File Explorer File Menu

In File Explorer, navigate to any folder you want to open at the Command Prompt. From the “File” menu, select one of the following options:

  • Open command prompt. Opens a Command Prompt within the currently selected folder with standard permissions.
  • Open command prompt as administrator. Opens a Command Prompt within the currently selected folder with administrator permissions.

How to run any command prompt command with cortana

Open Command Prompt from a Folder’s Context Menu in File Explorer

To open a Command Prompt window to any folder, Shift+right-click the folder in File Explorer and then choose “Open command window here.”

How to run any command prompt command with cortana

Create a Shortcut for Command Prompt on the Desktop

Right-click an empty spot on the Desktop. From the context menu, select New > Shortcut.

Type “cmd.exe” into the box and then click “Next.”

How to run any command prompt command with cortana

Give the shortcut a name and then click “Finish.”

How to run any command prompt command with cortana

You can now double-click the shortcut to open Command Prompt. If you want to open the Command Prompt with administrative privileges instead, right-click the shortcut and choose “Properties” from the context menu. Click the “Advanced” button and check the “Run as administrator” option. Close both open properties windows

Now you just have to double-click the shortcut to open Command Prompt as an administrator.

How to run any command prompt command with cortana

Cortana อาจไม่ได้รับความนิยมเท่าที่ Microsoft คาดหวัง แต่ก็มีประโยชน์ คุณไม่จำเป็นต้องอยู่ข้างคอมพิวเตอร์ของคุณอีกต่อไปเพื่อทำงาน คุณสามารถตะโกนจากอีกด้านหนึ่งของห้อง อย่างไรก็ตามมีบางสิ่งที่ Cortana ไม่สามารถทำได้นอกกรอบ.

ด้วยการอัปเดต Fall Creators ของ Windows 10 ตัวอย่างเช่น Cortana สามารถปิดเครื่องรีสตาร์ทล็อคหรือทำให้คุณออกจากคอมพิวเตอร์ของคุณได้ เพียงแค่พูดว่า“ เฮ้ Cortana ปิดพีซีของฉัน” – มันง่ายมาก อย่างไรก็ตามไม่สามารถทำให้พีซีของคุณเข้าสู่โหมดสลีปซึ่งเป็นสิ่งหนึ่งที่ฉันอยากทำกับเสียงของฉัน.

มีวิธีแก้ปัญหาง่าย ๆ สำหรับสิ่งนี้แม้ว่า Cortana สามารถเปิดโปรแกรมใด ๆ ที่พบในเมนูเริ่มด้วยคำสั่งเสียงอย่างง่าย ดังนั้นหากคุณสามารถสร้างทางลัดออกจากงานที่คุณต้องการดำเนินการได้เช่น Command Prompt Command-Cortana สามารถทำได้ด้วยเสียงของคุณ.

หากต้องการทำสิ่งนี้ให้เปิด File Explorer และวางพา ธ ต่อไปนี้ในแถบที่อยู่:

นี่จะเป็นการเปิดรายการโปรแกรมของเมนูเริ่ม (ซึ่งเป็นที่ที่ Cortana มองหาทางลัดเมื่อคุณพูดคำสั่ง) คลิกขวาที่พื้นที่ว่างในโฟลเดอร์นี้แล้วเลือกใหม่> ทางลัด.

How to run any command prompt command with cortana

แน่นอนแทนที่สิ่งนี้ด้วยคำสั่งใด ๆ ที่คุณต้องการใช้ คลิกถัดไป.

How to run any command prompt command with cortana

ในหน้าจอถัดไปตั้งชื่อทางลัดของคุณตามที่คุณต้องการ ในกรณีของฉันฉันจะตั้งชื่อมันว่า “Sleep Computer”.

How to run any command prompt command with cortana

How to run any command prompt command with cortana

นั่นคือทั้งหมดที่ใช้! ตอนนี้คุณเพียงแค่ต้องเรียกใช้ทางลัดนั้นด้วยการพูดว่า “เฮ้ Cortana เปิด [ชื่อทางลัด]” ในกรณีของฉันฉันจะพูดว่า “เฮ้ Cortana เปิดคอมพิวเตอร์หลับ”.

มันไม่ใช่ภาษาที่เป็นธรรมชาติที่สุดในโลก แต่สำหรับการแก้ปัญหาแบบ geeky ก็ไม่เลวเลย.

I’m using SaltStack to configure some Windows 10 machines and one of the things I need to do is disable Cortana. I know that i can easily be disabled from its own settings is there way to do this from CMD so that I can just run it through salt?

2 Answers 2

Cortana can be disabled via Group Policy on most versions of Windows 10 other than Windows 10 Home edition.

One way to do that is with the REG.EXE command at an elevated or local administrator command prompt, or in a BAT file run as administrator:

The group policy ADMX for it is located at: C:\Windows\PolicyDefinitions\search.admx

You can look at this ADMX by pressing WindowsKey + R and opening it with notepad:

For the Windows 10 version 21H2 that I am using, it contains the following:

So deciphering this, it is policy class Machine so it is in the Local Machine Registry hive, or HKLM.

The key where it is located in the registry is: SOFTWARE\Policies\Microsoft\Windows\Windows Search

And if it is disabled, that is a decimal value (or DWORD) of 0 for value name AllowCortana

So to disable Cortana you just need to go to “HKLM\SOFTWARE\Policies\Microsoft\Windows\Windows Search” and create value name “AllowCortana” of type DWORD with a value of 0.

Also if you are disabling Cortana, you may also want to look into disabling searching the web as well.

The ADMX policy looks like this:

Disabling either of these search options still allows searching for files on the computer and in the cloud. If you want to disable that as well, it’s all in the ADMX.

Samir Makwana is a freelance technology writer who aims to help people make the most of their technology. For over 15 years, he has written about consumer technology while working with MakeUseOf, GuidingTech, The Inquisitr, GSMArena, BGR, and others. After writing thousands of news articles and hundreds of reviews, he now enjoys writing tutorials, how-tos, guides, and explainers. Read more.

How to run any command prompt command with cortana

Microsoft’s Windows 10 virtual assistant, Cortana, isn’t for everybody. The feature is easy to disable but tricky to delete. Here’s how to remove Cortana completely from your Windows 10 PC.


Removing Cortana from your computer isn’t as straightforward as using the Settings app. On earlier versions of Windows 10, if you deleted Cortana, you’d also end up removing Windows Search and breaking the Windows Start menu.

Luckily, Microsoft made it possible to properly delete Cortana from Windows with the Windows 10 May 2020 Update (version 2004). So, before getting started, make sure that you’re running Windows 10 version 2004 or higher.

You can see your current Windows version by opening Settings and navigating to System > About, and then scrolling down and reading the “Version” of Windows that you’re running. If the number is “2004” or higher, you’re good to go. Otherwise, don’t attempt to remove Cortana without updating first.

How to Uninstall Cortana in Windows 10

Since you can’t uninstall Cortana like another app, you’ll need to open Windows PowerShell and run a special command to do it. You can remove Cortana just for yourself or for every account on your computer.

To launch PowerShell, open the Start menu and type “PowerShell.” When the PowerShell icon appears, click “Run as administrator” in the right panel to run it with administrative privileges.

How to run any command prompt command with cortana

When the PowerShell window opens, type the following command in the window (or copy and paste it there) and press Enter to remove Cortana only for the current user:

How to run any command prompt command with cortana

After running the command, you’ll see an empty command prompt on the next line. If you don’t see any error messages, then the process has worked.

If you want to remove Cortana for all users, type (or paste) this command and press Enter:

How to run any command prompt command with cortana

After that, close PowerShell. If you open the Start menu and use Windows Search to look for Cortana, then it won’t appear as a System app in the search results.

How to Reinstall Cortana in Windows 10

If you change your mind later, you might want to reinstall Cortana on your computer. Luckily, reinstalling Cortana is a much more user-friendly process that involves the Microsoft Store.

To get started, click Start, type “Microsoft Store,” and press Enter.

How to run any command prompt command with cortana

When Microsoft Store opens, click the “Search” button on the upper-right corner of the window and type “Cortana,” and then select “Cortana” from the search results.

On the Cortana app page, click the “Get” button.

After that, click “Install,” and the Microsoft Store will install Cortana on your computer.

After a moment, the “Install” button will change into a “Launch” button when Cortana has been installed completely. When you see that, you’re free to close the Microsoft Store.

To launch Cortana, click Start, type “Cortana” in the Windows Search, and press Enter.

How to run any command prompt command with cortana

If necessary, sign in to Cortana using your Microsoft account, and you’re ready to go!

Tip: If you can’t sign in, switch to a local user account and restart your computer. Once you’ve signed in, switch back to your Microsoft Account to sign in to Windows. This trick should let you log in to Cortana with your Microsoft Account.

That’s it. Using the methods described above, you can get rid of Cortana and bring it back whenever you want.

This content applies to Cortana in versions 1909 and earlier, but will not be available in future releases.

Working with a developer, you can create voice commands that use Cortana to perform voice-enabled actions in your line-of-business (LOB) Universal Windows Platform (UWP) apps. These voice-enabled actions can reduce the time necessary to access your apps and to complete simple actions.

High-level process

Cortana uses a Voice Command Definition (VCD) file, aimed at an installed app, to define the actions that are to happen during certain vocal commands. A VCD file can be very simple to very complex, supporting anything from a single sound to a collection of more flexible, natural language sounds, all with the same intent.

To enable voice commands in Cortana

Extend your LOB app. Add a custom VCD file to your app package. This file defines what capabilities are available to Cortana from the app, letting you tell Cortana what vocal commands should be understood and handled by your app and how the app should start when the command is vocalized.

Cortana can perform actions on apps in the foreground (taking focus from Cortana) or in the background (allowing Cortana to keep focus). We recommend that you decide where an action should happen, based on what your voice command is intended to do. For example, if your voice command requires employee input, it’s best for that to happen in the foreground. However, if the app only uses basic commands and doesn’t require interaction, it can happen in the background.

Start Cortana with focus on your app, using specific voice-enabled statements. Activate a foreground app with voice commands through Cortana.

Start Cortana removing focus from your app, using specific voice-enabled statements. Activate a background app in Cortana using voice commands.

Install the VCD file on employees’ devices. You can use Microsoft Endpoint Manager or Microsoft Intune to deploy and install the VCD file on your employees’ devices, the same way you deploy and install any other package in your organization.

Test scenario: Use voice commands in a Microsoft Store app

While these aren’t line-of-business apps, we’ve worked to make sure to implement a VCD file, allowing you to test how the functionality works with Cortana in your organization.

To get a Microsoft Store app

Go to the Microsoft Store, scroll down to the Collections area, click Show All, and then click Better with Cortana.

Click Uber, and then click Install.

Open Uber, create an account or sign in, and then close the app.

To set up the app with Cortana

Click on the Cortana search box in the taskbar, and then click the Notebook icon.

Click on Connected Services, click Uber, and then click Connect.

How to run any command prompt command with cortana

To use the voice-enabled commands with Cortana

Click on the Cortana icon in the taskbar, and then click the Microphone icon (to the right of the Search box).

Say Uber get me a taxi.

Cortana changes, letting you provide your trip details for Uber.

How to run any command prompt command with cortana

Cortana morda ni tako priljubljena kot Microsoft, vendar je lahko uporabna. Ni več treba biti zraven računalnika, da opravite nalogo; lahko kričite z druge strani sobe. Vendar pa obstaja nekaj stvari, ki jih Cortana ne more narediti iz škatle.

Zahvaljujoč posodobitvi programa Fall Creators sistema Windows 10, lahko Cortana zdaj izklopi, ponovno zažene, zaklene ali se odjavi iz računalnika. Samo recite »Hej Cortana, zaprite moj računalnik« – je tako preprosto. Vendar pa ne more spati vašega računalnika, kar je edina stvar, ki bi jo rad naredil z mojim glasom.

Vendar pa je to preprosto rešitev. Cortana lahko s preprostim glasovnim ukazom odpre vsak program, ki ga najde v meniju Start. Torej, če lahko naredite bližnjico iz naloge, ki jo želite izvesti – na primer ukaz Command Prompt – lahko Cortana to izvede z vašim glasom.

To naredite tako, da odprete File Explorer in v naslovno vrstico prilepite naslednjo pot:

To bo odprlo seznam programov v meniju Start (kjer Cortana išče bližnjice, ko izgovorite ukaz). Z desno miškino tipko kliknite prazno območje v tej mapi in izberite Novo> Bližnjica.

How to run any command prompt command with cortana

V polje za lokacijo vnesite ukaz ukaznega poziva, ki ga želite poklicati s svojim glasom. V mojem primeru želim svoj računalnik preklopiti v stanje mirovanja – ukaz, za katerega je:

Očitno jo zamenjajte s katerimkoli ukazom, ki ga želite uporabiti. Kliknite Naprej.

How to run any command prompt command with cortana

Na naslednjem zaslonu, ime vaše bližnjice karkoli želite. V mojem primeru ga bom poimenoval “Sleep Computer”.

How to run any command prompt command with cortana

Ko končate, kliknite Dokončaj. Novo mapo bi morali videti v mapi Programi.

How to run any command prompt command with cortana

To je vse, kar je potrebno! Zdaj se morate sklicevati na to bližnjico z besedami »Hej Cortana, Odpri [ime bližnjice].« V mojem primeru bi rekel »Hej Cortana, Odpri računalnik za spanje«.

To ni najbolj naraven jezik na svetu, ampak hej – za geeky rešitev, to sploh ni slabo.

Looking for an answer to the question: What is the use of file? On this page, we have gathered for you the most accurate and comprehensive information that will fully answer the question: What is the use of file?

First, open the Command Prompt on your PC by typing “cmd” in the Windows Search bar and then selecting “Command Prompt” from the search results. With the Command Prompt opened, you’re ready to find and open your file.

COMMAND.COM. COMMAND.COM is a DOS program. Programs launched from COMMAND.COM are DOS programs that use the DOS API to communicate with the operating system (DOS).

file command in Linux with examples Difficulty Level : Basic Last Updated : 19 Feb, 2021 file command is used to determine the type of a file..file type may be of human-readable (e.g. ‘ASCII text’) or MIME type (e.g. ‘text/plain; charset=us-ascii’).

Right-click the Start button and choose “Command Prompt (Admin)” to open CMD. To copy files, use the copy command from the command line.

What is Run command in computer?

The Run command on an operating system such as Microsoft Windows and Unix-like systems is used to directly open an application or document whose path is known.

How can I speed my laptop up?

Here are seven ways you can improve computer speed and its overall performance.Uninstall unnecessary software. . Limit the programs at startup. . Add more RAM to your PC. . Check for spyware and viruses. . Use Disk Cleanup and defragmentation. . Consider a startup SSD. . Take a look at your web browser.Dec 26, 2018

What is command used for?

In computing, a command is a directive to a computer program to perform a specific task. It may be issued via a command-line interface, such as a shell, or as input to a network service as part of a network protocol, or as an event in a graphical user interface triggered by the user selecting an option in a menu.

Should I learn PowerShell or Command Prompt?

However, PowerShell can be a much more powerful command-line environment than the Command Prompt. . And if you ever need to write a script to automate various system administration tasks, you should do it with PowerShell.

What is the difference between COMMAND.COM and command prompt?

CMD. EXE is a command line processor for 32bit Windows. . EXE is a 32 bit program that is fully a part of Windows – in fact it’s what gets run when you select Command Prompt on the Windows Accessories menu. COMMAND.COM, on the other hand, exists only for compatibility and 16bit programs.

What language does Command Prompt use?

What is the language that was used to write command-prompt or cmd.exe in Windows? It’s probably C or C++, but why do you want to know? What are you going to do with the answer? They use almost entirely C, C++, and C# for Windows.

What commands are used in CMD?

Cmd commands under Windowscmd commandDescriptioncdchange directoryclsclear screencmdstart command promptcolorchange console color•Oct 2, 2017

What programming language is used in CMD?

CRT functions like longjmp , calloc , free indicate C code, might well be ancient and hark back to the days. It clearly also uses C++ exception handling, C++ is their weapon of choice for all recent code development. Mixing is not uncommon. But CMD is still mostly C, not C++.

Where is my command button on my laptop?

On a PC keyboard the Command key is either the Windows key or the Start key.

Is Command Prompt used for coding?

In Windows NT (XP, Vista, 7, 8, 10. ) one is able to write batch files that are interpreted by the Command Prompt (cmd.exe). They can be used to automate file-system tasks such as backups or basic installations and can be used with other command-line utilities as well.

Is Avast safe?

On the whole, yes. Avast is a good antivirus and provides a decent level of security protection. The free version comes with lots of features, although it doesn’t protect against ransomware. If you want premium protection, you’ll have to upgrade to one of the paid-for options.

Is cmd same as PowerShell?

PowerShell is a more advanced version of cmd. It is not only an interface but also a scripting language that is used to carry out administrative tasks more easily. Most of the commands executed on cmd can be run on PowerShell as well.

What is PowerShell good for?

In short, PowerShell is a robust solution that helps users automate a range of tedious or time-consuming administrative tasks and find, filter, and export information about the computers on a network. This is done by combining commands, called “cmdlets,” and creating scripts.

Is Command Prompt bash?

In Linux, much of your work occurs from a command prompt, also known as the shell, or BASH (Bourne-Again Shell). The shell interprets your commands and passes them to the operating system for execution.

Is CMD EXE a virus?

What is Cmd.exe? The legitimate Cmd.exe file is an important Windows command processor located in C:\Windows\System32. Spammers mimic its name to plant a virus and spread it on the Internet.

What is command on a PC?

The Command key is sometimes used like the Control key in Windows; for example, Command-P and Control-P print a document. However, the Mac’s Option key is also used for Windows Control key functions.

What is polymorphic virus?

Polymorphic viruses are complex file infectors that can create modified versions of itself to avoid detection yet retain the same basic routines after every infection. To vary their physical file makeup during each infection, polymorphic viruses encrypt their codes and use different encryption keys every time.

Is exe a virus?

This type of virus infects EXE files. An EXE file is a binary executable file. EXE files can be 16-bit and 32-bit. 16-bit executable files contain for 16-bit operating systems such as DOS and Windows 3.

How do I run a .com file?

To execute a file in Microsoft Windows, double-click the file. To execute a file in other GUI operating systems, a single or double-click will execute the file. To execute a file in MS-DOS and numerous other command line operating systems, type the name of the executable file and press Enter .

How to run any command prompt command with cortana

Cortana nemusí být tak populární, jakou doufala společnost Microsoft, ale může to být užitečné. Už nemusíte být vedle vašeho počítače provádět úkol; můžete křičet z druhé strany místnosti. Existuje však několik věcí, které Cortana nemůže udělat z krabice.

Díky aktualizaci Windows 10 Fall Creators Update můžete například Cortana nyní vypnout, restartovat, uzamknout nebo odhlásit z počítače. Jen řekni “Hej Cortana, vypni můj počítač” – je to tak jednoduché. Nemůžete ale dát počítač do spánku, což je jediná věc, kterou bych opravdu chtěla udělat s mým hlasem.

Existuje však snadné řešení tohoto problému. Cortana může otevřít jakýkoli program, který najde v nabídce Start s jednoduchým hlasovým příkazem. Takže pokud můžete provést zkratku z úkolu, který chcete provést – například příkaz Command Prompt – Cortana to dokáže pomocí vašeho hlasu.

Chcete-li to provést, otevřete Průzkumník souborů a vložte do adresního řádku následující cestu :

Tím se otevře seznam programů v nabídce Start (což je místo, kde Cortana hledá zkratky při povelu). Klepněte pravým tlačítkem myši na prázdnou oblast uvnitř této složky a vyberte příkaz Nový> zástupce.

How to run any command prompt command with cortana

V poli umístění zadejte příkaz příkazového řádku, který chcete vyvolat svým hlasem. V mém případě chci umístit počítač do režimu spánku – příkaz, pro který je:

Je zřejmé, že ho nahradíte libovolným příkazem, který chcete použít. Klikněte na tlačítko Další.

How to run any command prompt command with cortana

Na další obrazovce pojmenujte zkratku, co chcete. V mém případě se jmenuji “Sleep Computer”.

How to run any command prompt command with cortana

Když skončíte, klikněte na Dokončit. Měli byste vidět novou zkratku ve složce Programy

How to run any command prompt command with cortana

To je vše! Nyní musíte jen zkusit tuto zkratku tím, že řeknete “Hey Cortana, Open [Shortcut Name].” V mém případě bych říkal “Hey Cortana, Open Sleep Computer”.

Není to nejpřirozenější jazyk na světě , ale hej – pro podmanivé řešení, to vůbec není špatné.

How to run any command prompt command with cortana

Pokud jste si vytvořili vlastní počítač a koupili jste rychlou paměť RAM, existuje velká šance, že RAM skutečně nefunguje inzerované časování. RAM bude vždy spouštět s pomalejšími rychlostmi, pokud ručně nevyladíte jeho časování – nebo neumožníte Intel XMP. Tato volba není k dispozici v BIOSu každé základní desky a ne každá paměťová karta RAM má profil XMP – některé paměti RAM jsou právě navrženy běží při standardních rychlostech.

How to run any command prompt command with cortana

Je-li Apple TV kompatibilní verze vaší oblíbené aplikace iPhone nebo iPad, ale nikdy se do vašeho Apple TV nedělá vám hodně dobra. Naštěstí s jednoduchým vylepšením můžete zajistit, že získáte ty nejlepší aplikace jak na vašem telefonu, tak i na vašem televizoru. Nyní, když se Apple TV a podstata tvOS začaly zrádat, existuje spousta aplikací, které přinášejí oblíbené aplikace iOS do televizoru.

Command Prompt is one of the most useful apps in Windows operating system for those love to use command line interface. Though Microsoft introduced powerful Windows PowerShell, many people still prefer to use Command Prompt as a habit. In this article, we will explain how to open Command Prompt in Windows 11 using different methods.

Command Prompt Vs Command Prompt Admin Mode

Like any other application in Windows, you need to open the app in admin mode for modifying system files. Since some of the Command Prompt commands need administrator access, Microsoft offers Command Prompt app both in normal and admin mode in certain places. Therefore, make sure to open the app in normal or admin mode depending upon your intended action.

Also note that, earlier Microsoft allows to open Command Prompt from the power user menu by pressing “Win + X” keys or right click on the Start menu. Later, PowerShell replaced Command Prompt in the power user menu with an option to toggle in the taskbar settings. In Windows 11, Windows Terminal replaced the PowerShell items in power user menu and there is no option to enable Command Prompt.

1. Open From Windows Terminal App

As Microsoft recommends using Windows Terminal app for command shell, you can use Command Prompt from Terminal app.

  • Press “Win + X” or right click on the Start menu to open power user menu.
  • Select Windows Terminal or Windows Termina (Admin) to open the Terminal app.
  • By default, Terminal app will open with PowerShell in Windows 11.
  • Click on the small arrow in title bar and open Command Prompt app.

If you want to set Command Prompt as the default opening app in Terminal, then click on the small arrow in title bar and select “Settings”. When you are in Terminal settings page, select the “Default Profile” from Windows PowerShell to Command Prompt from the drop down under “Startup” section. In this way, you can directly launch Command Prompt when opening Windows Terminal app.

2. Open Command Prompt from Start Menu

Earlier Windows 10 Start menu used to contain Command Prompt app in the list. This has been removed in Windows 11 and you will not find the direct app link in the Start menu. However, you can still access Command Prompt from Start menu with a lengthier route.

  • Press “Win” key on your keyboard to open Start menu.
  • Click on “All Apps” button and scroll down to the bottom of the app list.
  • Click on Windows Tools option under “W” section.
  • It will open a new File Explorer window showing all in-built Windows tools including Command Prompt.
  • Double click on the Command Prompt app to launch it.

3. Search and Open

Click on the Windows Search icon in your taskbar or open Cortana Search. Type cmd to filter the results and Command Prompt app. Click the app to open in normal mode or click on “Run as administrator” in right pane to open the app in admin mode.

4. Open From File Explorer

Command Prompt is available in C:\Windows\System32 location. You can open File Explorer by pressing “Win + E” keys and paste this location in the address bar to find cmd.exe application file. You can double click the file and open Command Prompt app.

Alternatively, you can type cmd in the address bar and press enter key to open Command Prompt app directly.

5. Shortcut for Command Prompt

There are two ways to create a shortcut for Command Prompt app. When you search and open, select “Pin to Start” or “Pin to taskbar” options to create shortcut in Start menu or taskbar. You can use these shortcuts to access the app quickly. Alternatively, you can create a desktop shortcut using the following instructions.

  • Go to C:\Windows\System32 and locate cmd.exe file.
  • Right click on the file and select “Show more options” menu.
  • Select “Send to > Desktop (create shortcut)” option.
  • This will create shortcut icon in the desktop. You can rename the shortcut as Command Prompt or anything you like.

6. Open From Folder Right Click Context Menu

If you want to open Command Prompt with any folder, simply right click on it and select “Open in Windows Terminal” menu. if you have set Command Prompt as a default profile app in Terminal as explained above, then you will see the Command Prompt opens within the selected folder.

7. Use Run Prompt

Command Prompt is an application in Windows with the file name as cmd.exe. Therefore, you can type cmd in Run prompt to open Command Prompt app.

  • When you open power user menu by pressing “Win + X” keys, select “Run” option.
  • Type cmd in the text box and press “OK” button.

8. Open Command Prompt from Task Manager

It is also possible to open the app from Task Manager.

  • Press “Win + X” to open power user menu and select Task Manager option.
  • If you are in fewer details view, click on the “More details” option in the status bar to open the app in larger view that shows more details.
  • Click on “File” menu and select “Run new task” option.

Windows has a history of software bugs and malfunctions that have followed the operating system for years. Windows XP was wildly popular with consumers and businesses alike, but the OS was known for security holes and bugs. Windows Vista was a major visual reinvention for Microsoft, but the operating system was criticized by both technology journalists and consumers for its privacy concerns, security holes, and issues with driver support. When Windows 7 was released in 2009, it was largely sold as fixing problems created by Vista, and though Windows 7 was largely praised by critics, it too experiences its fair share of criticism, especially as it ages.

How to run any command prompt command with cortana

Like Windows 7 with Vista, Windows 10 exists to improve on the mistakes and criticisms on Windows 8, complete with small, biannual updates and mandatory security patches to keep computers safe during everyday use. It isn’t a stretch to say Windows 10 is the best operating system Microsoft has ever shipped, but that doesn’t mean there isn’t room for improvement. While we’re big fans of Windows 10, there are some complaints longtime Windows users have held against the operating system.

Although most day-to-day tasks in Windows can be accomplished via the standard graphical user interface, a tremendous amount of power and functionality relies upon the Run command. The Run command, known to most users as “the Run box,” has long had a convenient top-level shortcut in the Windows Start Menu. While the Start Menu returned in Windows 10, the Run command didn’t. There are certainly other ways to access the Run command, but for those who prefer to use a Start Menu shortcut, here’s how to get it back.

Add the Run Command as a Windows 10 Start Menu Tile

Alright, let’s kick things off. First, we’ll need to access the Run command’s icon, and there are two primary methods to do this. The first is to access the Run command in its current location, buried in the Start Menu at All Apps > Windows System > Run. The second method to access the Windows Run command icon is to use Start Menu (or Cortana) Search. Just click the Search or Cortana icon in the Windows 10 taskbar and type “Run.” You’ll see the Run command appear at the top of the list.

How to run any command prompt command with cortana

Cortana er måske ikke så populært som Microsoft havde håbet på, men det kan være nyttigt. Du behøver ikke længere at være ved siden af ​​din computer for at udføre en opgave; du kan råbe det fra den anden side af rummet. Der er dog nogle ting, som Cortana ikke kan gøre ud af boksen.

Takket være Windows 10s Fall Creators Update kan Cortana nu lukke ned, genstarte, låse eller logge dig ud af din pc. Bare sig “Hey Cortana, lukke min pc” – det er så simpelt. Det kan dog ikke lade din pc sove, hvilket er den eneste ting jeg virkelig gerne vil gøre med min stemme.

Der er dog en nem løsning på dette. Cortana kan åbne ethvert program, den finder i Start-menuen med en simpel talekommando. Så hvis du kan lave en genvej ud af den opgave, du vil udføre, f.eks. En kommandoprompt-kommando, kan Cortana gøre det med din stemme.

Åbn File Explorer og indsæt følgende sti i adresselinjen :

Dette åbner din startmenu’s liste over programmer (hvor Cortana søger genveje, når du siger en kommando). Højreklik på et tomt område i denne mappe, og vælg Ny> Genvej.

How to run any command prompt command with cortana

Skriv kommandopromptkommandoen, du vil påkalde med din stemme, i placeringsboksen. I mit tilfælde vil jeg sætte min pc i dvale – kommandoen for hvilken er:

Det skal du selvfølgelig erstatte med hvilken kommando du vil bruge. Klik på Næste.

How to run any command prompt command with cortana

På den næste skærm skal du navngive din genvej, uanset hvad du vil. I mit tilfælde vil jeg kalde det “Sleep Computer”.

How to run any command prompt command with cortana

Klik på Afslut, når du er færdig. Du skal se din nye genvej i mappen Programmer.

How to run any command prompt command with cortana

Det er alt, hvad det kræver! Nu skal du bare bruge denne genvej ved at sige “Hey Cortana, Open [Genvej Navn].” I mit tilfælde vil jeg sige “Hey Cortana, Open Sleep Computer”.

Det er ikke det mest naturlige sprog i verden , men hej-for en geeky løsning, er det slet ikke dårligt.

How to run any command prompt command with cortana

En tidligere Netflix-medarbejder kan frustrere dig ved at fortælle CNBC, at Netflix dvd-forretning vil forsvinde efter 2025. Men gutta hos Digiarty Software, et af de førende multimedie software selskaber specialiseret i personlig video-lydunderholdning, rådgive dig kun til at leve i nutiden og sætte dig i gang med en ny softwareopdatering til dvd-ripper.

How to run any command prompt command with cortana

Microsofts nedslidte Windows 10 S leveres nu på pc’er som Surface Laptop. Hvis du vil prøve det, før du køber, kan du installere det selv i en virtuel maskine eller en pc, du har liggende rundt. MSDN-abonnenter: Installer Windows 10 S Fra en ISO RELATERET: Hvad er der Windows 10 S og hvordan er det anderledes?

How to run any command prompt command with cortana

Cortana gali būti ne tokia populiari, kaip tikėjosi “Microsoft”, bet tai gali būti naudinga. Jums nebereikia būti šalia kompiuterio, kad atliktumėte užduotį; jūs galite šaukti iš kitos pusės. Tačiau yra keletas dalykų, kuriuos “Cortana” negali daryti iš dėžutės.

“Windows 10” “Fall Creators Update”, pavyzdžiui, “Cortana” dabar gali išjungti, paleisti iš naujo, užrakinti arba atsijungti nuo kompiuterio. Tiesiog pasakyk “Hey Cortana, uždaryk mano kompiuterį” – taip paprasta. Tačiau jo negalima užmigti jūsų kompiuteryje, o tai yra vienas dalykas, kurį tikrai norėčiau daryti su mano balsu.

Vis dėlto lengva išspręsti šią problemą. “Cortana” gali atidaryti bet kurią programą, kurią ji randa “Start” meniu paprasta balso komanda. Taigi, jei galite atlikti spartieji klavišai iš užduoties, kurią norite atlikti, pvz., Komandinės eilutės komandą, “Cortana” gali tai padaryti savo balsu.

Norėdami tai padaryti, atidarykite “File Explorer” ir įklijuokite šį kelią adreso juostoje :

Tai atvers jūsų programų meniu Start Menu (kur Cortana ieško nuorodos, kai sakote komandą). Dešiniuoju pelės mygtuku spustelėkite tame pačiame aplanke esančią tuščią sritį ir pasirinkite Naujas> Nuorodos.

How to run any command prompt command with cortana

Vietos lauke įveskite komandinės eilutės komandą, kurią norite pakviesti balsu. Mano atveju noriu, kad mano kompiuteris būtų miegojamas – tai komanda:

Akivaizdu, kad pakeiskite tai bet kokia komanda, kurią norite naudoti. Spustelėkite Pirmyn.

How to run any command prompt command with cortana

Kitame ekrane įveskite santrumpą, kurią norite. Mano atveju aš ketinu pavadinti ją “Sleep Computer”.

How to run any command prompt command with cortana

Spustelėkite Baigti, kai baigsite. Jūs turėtumėte pamatyti savo naują nuorodą kataloge “Programos”.

How to run any command prompt command with cortana

Tai viskas, ko reikia! Dabar jums reikia tiesiog pasikviesti šį spartųjį klavišą, sakydamas: “Hey Cortana, Open [nuorodą pavadinimą]”. Mano atveju sakyčiau “Hey Cortana”, “Open Sleep Computer”.

Tai nėra natūraliausia kalba pasaulyje. , bet, pasididžiavimas, jis nėra blogas.

How to run any command prompt command with cortana

Gana daug kas rinkoje esančių maršrutizatorių gali perduoti uostus, o Eero Wi-Fi sistema nėra išimtis, nepaisant to, SUSIJUSIOS: Kas yra “Mesh” “Wi-Fi” sistemos ir kaip jos veikia? Jei jūs tiksliai susidūrėte su šiuo paštu, tai tikriausiai jau žinote, kokia uosto persiuntimas yra, kaip tai veikia ir kodėl norėtumėte jį naudoti.

How to run any command prompt command with cortana

“Netflix” leidžia atsisiųsti kai kurias savo laidas į savo įrenginį, kad galėtumėte toliau žiūrėti, kai esate lėktuve, įstrigo metro , arba tiesiog nenorite išnaudoti savo mobiliojo ryšio duomenų. Tačiau galite atsisiųsti tik keturis įrenginius. Jei kada nors reikės pridėti kitą, pirmiausia turėsite panaikinti autorizaciją.

How to run any command prompt command with cortana

Кортана може бути не такою популярною, як Microsoft, на яку вона сподівається, але вона може бути корисною. Вам більше не потрібно бути поруч із комп’ютером для виконання завдання; Ви можете кричати це з іншого боку кімнати. Тим не менш, є деякі речі, які Кортана не може зробити з коробки.

Наприклад, завдяки оновленню Fall Creators для Windows 10, Cortana тепер може вимкнути, перезапустити, заблокувати або вийти з вашого ПК. Просто скажіть “Ей Кортана, закрийте мій комп’ютер” – це так просто. Проте він не може заснути ваш комп’ютер, що я хотів би зробити з моїм голосом.

Існує легке рішення для цього. Cortana може відкрити будь-яку програму, яку вона знаходить у меню Пуск, за допомогою простої голосової команди. Отже, якщо ви можете зробити ярлик із завдання, яке потрібно виконати, наприклад команду командного рядка, Cortana може зробити це за допомогою вашого голосу.

Для цього відкрийте File Explorer і вставте наступний шлях до адресного рядка:

Це відкриє список програм меню “Пуск” (саме тут Кортана шукає ярлики, коли ви говорите команду). Клацніть правою кнопкою миші порожню область в цій папці і виберіть New> Shortcut.

How to run any command prompt command with cortana

У полі розташування введіть команду командного рядка, яку потрібно викликати за допомогою голосу. У моєму випадку я хочу помістити свій комп’ютер у сплячий режим, для якого команда:

Очевидно, замінити це за допомогою будь-якої команди, яку ви хочете використовувати. Натисніть кнопку Далі.

How to run any command prompt command with cortana

На наступному екрані назвіть ярлик, що хочете. У моєму випадку я називаю його “Комп’ютер сну”.

How to run any command prompt command with cortana

Після завершення натисніть кнопку Готово. Ви повинні побачити новий ярлик у папці “Програми”.

How to run any command prompt command with cortana

Це все, що потрібно! Тепер вам потрібно просто викликати цей ярлик, сказавши “Hey Cortana, Open [Shortcut Name]”..

Це не найприродніша мова в світі, але гей-для хитрого обходу, це не погано взагалі.

How to run any command prompt command with cortana

Cortana có thể không phổ biến như Microsoft hy vọng, nhưng nó có thể hữu ích. Bạn không còn cần phải ở bên cạnh máy tính của mình để thực hiện một nhiệm vụ; bạn có thể hét nó từ phía bên kia của căn phòng. Tuy nhiên, có một số điều Cortana không thể làm được.

Chẳng hạn, nhờ Bản cập nhật Fall Creators Update của Windows 10, Cortana giờ đây có thể tắt, khởi động lại, khóa hoặc đăng xuất bạn khỏi PC. Chỉ cần nói Hey Hey Cortana, tắt PC của tôi – thật đơn giản. Tuy nhiên, nó không thể khiến PC của bạn ngủ, đó là điều tôi thực sự muốn làm với giọng nói của mình.

Có một cách giải quyết dễ dàng cho việc này, mặc dù. Cortana có thể mở bất kỳ chương trình nào nó tìm thấy trong Menu Bắt đầu bằng lệnh thoại đơn giản. Vì vậy, nếu bạn có thể tạo một lối tắt ra khỏi tác vụ bạn muốn thực hiện – chẳng hạn như lệnh Dấu nhắc lệnh – Cortana có thể thực hiện bằng giọng nói của bạn.

Để thực hiện việc này, hãy mở File Explorer và dán đường dẫn sau vào thanh địa chỉ:

Điều này sẽ mở ra danh sách các chương trình của Menu bắt đầu của bạn (đó là nơi Cortana tìm kiếm các phím tắt khi bạn nói lệnh). Bấm chuột phải vào một vùng trống trong thư mục này và chọn Mới> Phím tắt.

How to run any command prompt command with cortana

Trong hộp vị trí, nhập lệnh Command Prompt mà bạn muốn gọi bằng giọng nói của mình. Trong trường hợp của tôi, tôi muốn đặt PC của mình vào chế độ ngủ – lệnh đó là:

Rõ ràng, thay thế điều này bằng bất kỳ lệnh nào bạn muốn sử dụng. Nhấn tiếp.

How to run any command prompt command with cortana

Trên màn hình tiếp theo, đặt tên phím tắt của bạn bất cứ điều gì bạn muốn. Trong trường hợp của tôi, tôi sẽ đặt tên cho nó là Ngủ Ngủ Máy tính.

How to run any command prompt command with cortana

Nhấp vào Kết thúc khi bạn hoàn thành. Bạn sẽ thấy lối tắt mới của mình trong thư mục Chương trình.

How to run any command prompt command with cortana

Đó là tất cả những gì nó cần! Bây giờ bạn chỉ cần gọi lối tắt đó bằng cách nói ra Hey Hey Cortana, Mở [Tên phím tắt]..

Đó không phải là ngôn ngữ tự nhiên nhất trên thế giới, nhưng này – đối với một cách giải quyết táo bạo, nó không tệ chút nào.

Many legacy Command Prompt (CMD) commands work in the Windows PowerShell scripting environment. The PowerShell environment carries these commands forward from the most used commands like ping to the most informational commands like tracert from the legacy environment using aliases.

However, some running commands in the Command Prompt terminal will not work in Windows PowerShell’s scripting environment. This article will discuss how we can transcribe them correctly to Windows PowerShell.

Using the PowerShell Invocation Operator &

The legacy CMD will successfully work when we run command-line programs with an executable file format (.exe) located on a specific path, followed by the actual command.

If we take the example syntax below, we can perform a quick scan using the Avast Command-Line scanner if we run the script inside CMD, and it will successfully work.

However, if we take the same syntax and run it in Windows PowerShell, we will get an Exception error. The reason behind the error is that Windows PowerShell sees the double quotation marks “” as a literal string value, and the /Quick parameter accompanied in the syntax is not available in any of the native libraries.

In addition, running only the quoted path in Windows PowerShell will only output the string value rather than running the executable file itself.

To remedy this problem, we can call the Invocation operator or the ampersand sign & at the start of the command line to run the executable path in Windows PowerShell properly.

Using the invocation operator in the PowerShell environment will treat the string path as an actual path to the executable file. Therefore, it will run the script directly with the accompanying command parameter.

Running CMD Commands Using cmd.exe

Another example of running CMD commands is by using the cmd.exe . We can add cmd.exe inside Windows PowerShell like our previous method.

Once added and executed, it will call the command line interface inside the Windows PowerShell command prompt.

The parameter /c will carry out whichever command was entered and terminate the cmd.exe command-line interpreter.

You may run the syntax below to bring up the cmd.exe command’s help documentation for more information on other parameters. In addition, you may run the command below on both PowerShell and CMD command-line interfaces.

Piping to CMD Using PowerShell

In Windows PowerShell, we can also send over commands to the command prompt terminal by piping in the cmd cmdlet to the command you wanted to send over.

In the example syntax below, the request to query the IP configurations of your local computer is sent to the CMD command-line interface. After running the code, the CMD terminal is terminated, and the user is brought back to the PowerShell terminal denoted by PS at the start of the line.

How to run any command prompt command with cortana

Cortana er måske ikke så populært som Microsoft havde håbet på, men det kan være nyttigt. Du behøver ikke længere at være ved siden af ​​din computer for at udføre en opgave; du kan råbe det fra den anden side af rummet. Der er dog nogle ting, Cortana ikke kan gøre ud af boksen.

Takket være Windows 10s Fall Creators Update kan Cortana nu lukke ned, genstarte, låse eller logge dig ud af din pc. Bare sig “Hey Cortana, luk min pc” – det er så simpelt. Det kan dog ikke lade din pc sove, hvilket er den eneste ting, jeg virkelig gerne vil gøre med min stemme.

Der er dog en let løsning for dette. Cortana kan åbne ethvert program, den finder i Start Menu med en simpel talekommando. Så hvis du kan lave en genvej ud af den opgave, du vil udføre – som f.eks. En kommandoprompt-kommando, kan Cortana gøre det med din stemme.

For at gøre dette skal du åbne File Explorer og indsætte den følgende sti i adresselinjen:

Dette åbner din startmenu’s liste over programmer (som er her Cortana søger genveje, når du siger en kommando). Højreklik på et tomt område i denne mappe, og vælg Ny> Genvej.

How to run any command prompt command with cortana

Indtast kommandopromptkommandoen, du vil påkalde med din stemme, i placeringsboksen. I mit tilfælde vil jeg sætte min pc til at sove – kommandoen for hvilken er:

Det er klart, at erstatte dette med den kommando, du vil bruge. Klik på Næste.

How to run any command prompt command with cortana

På den næste skærm skal du navngive din genvej, hvad du vil. I mit tilfælde vil jeg kalde det “Sleep Computer”.

How to run any command prompt command with cortana

Klik på Afslut, når du er færdig. Du skal se din nye genvej i mappen Programmer.

How to run any command prompt command with cortana

Det er alt det tager! Nu skal du bare bruge denne genvej ved at sige “Hey Cortana, Åbn [Genvej Navn].” I mit tilfælde vil jeg sige “Hey Cortana, Open Sleep Computer”.

Det er ikke det mest naturlige sprog i verden, men hej-for en geeky løsning, er det slet ikke dårligt.

Welcome to a quick tutorial on the basic Windows command prompt commands. Once upon a time in the Dark Ages of computing, there is only a command-line when we turn on a computer. No wallpaper, no windows, no graphics. Today, we have the convenience of the graphical user interface (GUI), and most people will shy away from the command line.

Little did they know that a lot of the “hacker” controls cannot be done in the graphical interface… But we are not going there in this guide. Let us start with the basics, which will make you look cool enough anyway. Read on!




Before we dive into the commands, let us start with the raw basics of “how to open the command prompt” in Windows.


  • Press windows + R to open the run window.
  • Type in “cmd” and hit “OK”.


By default, launching the command prompt in Windows 10 will be in “restricted access mode”. Meaning, messing with the critical system stuff is not allowed. If you want an unrestricted command prompt, here is how to do it:

  • Press windows > search for “command prompt”.
  • Right-click on it, run as administrator.

But beware, this gives the full administrator access to change the system files. This can potentially do some irreversible damage if you do not know what you are doing.


Now that you have launched the command line, here are some of the basic commands to know.



When the command prompt is launched, all that is staring back is a C:\Users\NAME . This should pretty self-explanatory, it is your “current directory”. That is, the current location is at the C:\ drive, inside the default Users\NAME folder.

If you want to change the current directory to another drive, simply enter the drive letter – For example d: or e: .


To list the contents of the current folder, use the dir command.


Next, we have the cd command… Should be Captain Obvious, changes the current directory. There is one trick here – We don’t actually need to type out the full folder name. For the above example, we can just type out cd h and press tab to cycle through the list of folders starting with “h”.

Another way to use the cd command is to enter a full file path.

Lastly, use cd.. to go up one level, or cd/ to go all the way back to the root of the current drive.


When the screen gets too messy, use cls to clear the screen.


From the command prompt, we can also launch various apps.


Captain Obvious to the rescue again. Hit exit when done, and this will close the current session.



To copy a file, simply specify the source file and destination – copy SOURCE DESTINATION .

To copy all the files in the current directory, use copy *.* DESTINATION .


Now, the problem with copy is that it only copies files, but not the folders within. So if you want to copy everything, including the folders within, use the slightly more advanced xcopy *.* DESTINATION /e instead.


Don’t think this one needs explanation, move is the cousin of copy and the usage is the same – move SOURCE DESTINATION .


By default, copy and move will prompt if you want to replace existing files. This can get irritating when moving a large number of files, so use replace SOURCE TARGET if you just want to replace everything.


Self-explanatory, ren FROM TO .



To delete a single file.

To delete all the files in the folder.


Please take note that the previous del command will only delete files, but not remove the folder itself. To remove a folder, we have to use the rmdir command instead. If you want to remove the folder entirely (all the files and folders contained within), add a /S option at the end.


Finally, this is a not-so-useful command that compares 2 files and shows you the differences between them.


Want to repeat a previous command? Press the up and down arrow keys to scroll through your previous commands – No need to retype everything.


Is the default black-and-white color scheme too boring for you? You can change the colors with the color command. It takes 2 alphanumeric characters from 0 to F. The first one is the background color, and the second one is the text color.


This is the “swag way” to shut down a computer.

  • The /s option will do a full shutdown.
  • Use /r to do a reset instead.


Need help with a command? Simply append /? to the end, or you can use the help command to get a full list of available commands.


That’s all for the examples, and here is the summary/cheat sheet of all the basic commands plus some links that may be useful to you.

The command prompt in Windows has been around for quite some time, so it’s definitely not one of the new features in Surface Pro 4. Some would even think it’s not particularly useful. But those who know some shortcuts will always be able to run all kinds of cool command prompts with it. Before you get there, however, wouldn’t be nice if you’d master some just-as-cool commands for launching the command prompt in Surface Pro 4?
We’ve compiled 11 different ways on how to open command prompt in Surface Pro 4 and we’re going to show them all to you in this article. Some of them might ring a bell to you; others might come as a novelty. Either way, you should read on and see what you can take away from this detailed guide about the windows command prompt.
And remember – the majority of the tips and tricks from below should work on previous Windows versions too.
Shall we begin? You can use these ways to run command prompt in Surface Pro 4:

The Power Menu
Simultaneously press the Windows key and the X key from your keyboard:

  • For Administrator mode – click on the Command Prompt (Admin)
  • For Regular mode – click on the Command Prompt (CMD prompt)

The Task Manager

  1. Launch the Task Manager
  2. Go to the File tab
  3. Click on Run New Task
  4. Type in cmd or exe
  • For Administrator mode – check the box that enables opening as administrator and click OK
  • For Regular mode – make sure that the box is not checked and click OK

The Task Manager for Admin Mode ONLY

  1. Launch the Task Manager
  2. Simultaneously click on the CTRL key from your keyboard and on the File / Run New Task menu from the Task Manager
  3. You should see the command prompt immediately opening in the administrator mode

The Search box
To open the search box:

  • Simultaneously press the Windows key and the S key from your keyboard
  • Go to Cortana, click on the microphone icon, and just say out loud “Launch Command Prompt”

For Administrator mode

  • Type in cmd, right-click on the highlighted result and select Run as Administrator
  • Type in cmd, right-click and highlight the result by using the arrow keys and simultaneously click on the CTRL key, the SHIFT key, and the ENTER key from your keyboard

For Regular mode

  • In the newly launched Search box type in cmd and hit Enter

The All Apps menu

  1. Go to the Start menu
  2. Click on the result “All apps” – it should be displayed right at the bottom of the context menu
  3. In the newly opened list with apps scroll down until you find the Windows System folder and click on it
  4. In the context menu identify and click on the CommandPrompt

The File Explorer

  1. Launch the File Explorer
  2. Follow the path C:\Windows\System32
  3. Inside that folder, click on the file exe

Note – this one works from any file browser window, with a simple right-click on the cmd.exe option followed by a click on Open.

The Run box

  1. Simultaneously press the Windows key and the R key from your keyboard
  2. In the newly launched RUN dialog box type cmd
  3. Hit the OK button to launch the commandprompt

The Explorer Address Bar

  1. Launch the File Explorer
  2. Click on the address bar (alternatively, just simultaneously press the Alt key and the D key on the keyboard)
  3. Type in cmd
  4. It should immediately open the command prompt, right to the path your current folder is set on

The File menu

  1. Launch the File Explorer
  2. Open a folder or a drive from where you’d like to open the command prompt
  3. Look at the Ribbon to identify the File tab and click on it

For Administrator mode – select the option Open command prompt as administrator; this one will give you administrator permissions on the folder you selected;

For Regular mode – select the option Open command prompt; this one will only give you standard permissions on the folder you selected.

The File Explorer – in any folder or drive

  1. Decide on what folder or drive you want to launch the command prompt
  2. Press and hold the Shift key from your keyboard
  3. Right-click on the desired folder or drive
  4. Right-click on an empty space or on another folder within the right-hand pane of the window, WITH SHIFT STILL PRESSED
  5. Select the option “Open command window here”, from the context menu

The Command Prompt Desktop shortcut

  1. Go to your desktop and right-click on an empty spot
  2. Select New from the context menu
  3. Click on Shortcut
  4. In the newly opened window look for the box that says “Type the location of the item” and type in exe
  5. Hit the Next button
  6. Type a name for your shortcut
  7. Hit the Finish button

For Administrator mode

  1. After you have created the shortcut, right-click on it
  2. Select Properties
  3. Click on the Advanced button
  4. Check the option Run as administrator
  5. From now on, every time you double-click this shortcut, it will open the command prompt in the Administrator mode.

Now we’re curious, how many of these 11 ways to open command prompt in Surface Pro 4 did you know? What’s the one you prefer to use most? Or even better, do you happen to know a different way to launch the prompt?

You might have come across of dilemma when you open the command prompt and the window instantly exits, and the next time you try to investigate the cause of this malfunctioning it shows “The command prompt has been disabled by your administrator” error.

Well, many utilities like command prompt which is a powerful tool to bring about serious changes to the system are at times disabled by the administrators in order to prevent any third party user from exploiting the system or using the cmd to damage essential system files. But if you wish to re-enable the command prompt tool for any further use that too can be done. There are always some loopholes available for those you earnestly seek to accomplish things like these.

The following article has demonstrated two such methods which would certainly help you to enable the previously disabled cmd shortly.

  • Method #1: Enable Command Prompt using Registry Editor
  • Method #2: Enable Command Prompt using Run Command

Method #1: Enable Command Prompt using Registry Editor

Registry Editor is a mighty tool to modify registry keys which are responsible for many serious system softwares and OS identities. Thus it is highly recommended to create a backup of your registry keys before you carry out your changes. In case if any mistake occurs, it would cause severe damage to your computer.

Now, go through the steps mentioned below to enable command prompt if disabled by administrator.

Step 1. Press “Windows logo key + R” combination from the keyboard. The “Run” search panel would pop up instantly at the bottom left corner of the home screen.

Step 2. Type “regedit” and click “Ok” to open the Registry Editor operating window.

Step 3. Once the panel opens up navigate down to the following location on the left pane: HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\System

Step 4. Now; under the “Windows” key, click on the “System” entry, and then from the right-side pane double-click on the “DisableCMD” key.

NOTE: In case you are unable to find the “system” key, you need to create a fresh key and name it “system” or if you are unable to find the “DisableCMD” key, then you have to create a DWORD value and name it “DisableCMD”.

Step 5. In the new operating window, set the value to “0” and press “Ok”.

Now, this time you open the command prompt it would not indicate the same error message again. In case you find it a bit troubling to work on registry keys, you can try out the next method which is far safer than to mess with registry keys.

Method #2: Enable Command Prompt using Run Command

This method is quite unusual as most of the users are unaware of the implicit functionality of the “Run” command tool. Basically it is used for searching purposes, but it has got other potentialities as well which is well reflected in this method. Simply go through the method to know how wonderfully it works to re-enable the command prompt line interpreter tool:

Step 1. From the windows home screen, press “Windows logo key + R” to open the “Run” search box, or you can type in the name in the “Start” menu search box, and then click on the “Run” option.

Step 2. Now in the black dialog box, instead of typing any specific utility name, type in the following command and hit Enter:

REG add HKCU\Software\Policies\Microsoft\Windows\System /v DisableCMD /t REG_DWORD /d 0 /fВ

Step 4. There will be a spontaneous command prompt flash indicating the execution of the command has been successful. So the next time, you open the command prompt dialog box, it wouldn’t show the same error again.

Administrators sometimes do disable in order to secure the system from random users who tend to damage the system on a serious note. Thus, before commencing any task in your computer, better re-enable the cmd if it has been disabled by the admin. The methods mentioned above are very simple to implement if you have the basic adepts of handling a computer.

Vicky is a professional Windows technology author with many experience, focusing on computer technology. She’s very much enjoy helping people find solutions to their problems. Her knowledge and passion always drive her to discover everything about technology.

64-bit or x64 version of Windows operating system such as Windows Server 2003, Windows XP Professional x64 Edition, Windows Vista and Windows Server 2008 uses the Microsoft Windows-32-on-Windows-64 (WOW64) subsystem layer to run 32-bit programs, binaries or drivers without modifications, change or transition to 64-bit based binaries, as the 64-bit OS is optimized to run native 64-bit programs and does not provide support for 16-bit binaries or 32-bit drivers.

To reduce compatibility issue and prevent a 32-bit program from accidentally accessing data from 64-bit application, WOW64 subsystem isolates 32-bit binaries from 64-bit binaries by redirecting registry calls and some file system calls. Other than separate registry hive for WOW64 redirected 32-bit values, %systemroot%\System32 and Program Files folder is designated as 64-bit DLLs only too, and all access or I/O of 32-bit binaries been redirected from %windir%\System32 folder to the %windir%\SysWOW64 folder, and from Program Files to Program Files (x86) directory.

The command prompt (cmd.exe) is also affected by File System Redirection feature, where command line commands or .bat and .cmd batch script may not be able to access, install, change, modify, delete or write to “Program Files” or “%windir%\System32” folder. The WOW64 subsystem redirects and installs 32-bit programs in the “Program Files (x86)” and “%systemroot%\SysWOW64” folder.

To access the correct folder, programmer or developer must change the command-line script, or using Sysnative virtual directory alias to access %windir%\System32 instead of %windir%\SysWOW64. When this is not possible, or when have to access original native Program Files folder, user can type the command-line script at a 32-bit command prompt. The 32-bit command prompt automatically redirects file system calls to the correct 32-bit directory.

To start and open a 32-bit command prompt, follow these steps:

  1. Click Start.
  2. Type %windir%\SysWoW64\cmd.exe in Start Search box.

Alternatively, press Win + R keys (or type Run in Start Search) to open Run dialog, and type %windir%\SysWoW64\cmd.exe.

  • Press Enter.
  • In 32-bit command prompt, the %programfiles% path variable will point to Program Files (x86) folder which stores all 32-bit binaries.

    How To Install Program Via Command Prompt (installation logs)

    When you install program on a Windows-based computer, you may receive some error messages depending on a specific system. To avoid these errors, please do the following:

    1) If your installation file has *.EXE extension then start to install the program. If it has *.MSI extension, go to pt.4 .

    2) When the error occurs do not close error message

    3) Go to “C:|Users| |AppData|Local|Temp” and find MSI installation file of the program. It will be located inside one of subfolders with GUID name like

    4) Copy MSI installation file of program to the root directory C:

    5) Rename the file to “install.msi

    6) Open Start Programs – Accessories – right click on Command Prompt and select “Run as Administrator”, or type in windows search cmd. In command line type: cd / (press Enter) to get to the root C:>

    7) Run command:
    msiexec /i install.msi /l*vx log.txt

    Installation will start and create log file. Please complete install wizard. If installation process fails this way please send “log.txt” file to our support team. You will find it in the root directory C: next to the installation file of the program.

    While you wait for answer from support team, you can try to troubleshoot this issue by yourself – open log.txt file with any text editor and search for entry “value 3” (please note that log language depends on your system language – so its “value 3” in English but for example in French log its “ valeur 3″). This entry indicates the end of installation process log and right before this entry you will be able to find the cause of unsuccessful installation with error codes/names. Then you can find solution for most common errors in this article.

    Has this article been helpful for your request?
    (95 votes, average: 3.02 out of 5)

    Previous Post
    Next Post
    Tip / Trick

    The Windows operating system prides itself on providing buttons and ways of navigating the OS for your ease of use. That is part of what made Microsoft’s Windows the most popular desktop OS in the world.

    Still, Windows comes with a Command Prompt that allows you to enter in raw commands to get things done. The Command Prompt, otherwise known as cmd.exe, has been around for a long time and offers ways in which people can help troubleshoot problems with Windows, run scripts and batch files, and execute other administrative functions.

    The Command Prompt is accessible from all Microsoft accounts that are created on the computer by default. There are two types of Command Prompt windows you can have open: one with administrative permissions and one without them.

    Interestingly, even when you log in to a Microsoft account as the administrator, when you go to open a Command Prompt window by typing “Command Prompt” into the search field in the taskbar and then opening the Command Prompt application, it is not the admin Command Prompt window that opens.

    Even more interesting again is if you are logged into a Microsoft account that is not the admin account, you can still quite easily run the Command Prompt window with the administrative version. What’s more, you can even get Windows to remember to open it each time as the admin version of the Command Prompt, so you don’t have to keep opening the standard version and then doing the required steps to change it into the admin version.

    The guide below runs you through what is required to swap the standard Command Prompt desktop application for the admin version and have it pinned to the taskbar. When done, each time you open the Command Prompt application from the taskbar, it always opens the Administrator: Command Prompt.

    Open Elevated Command Prompt in Windows 10

    To get started, type “Command Prompt” into the search box found in the taskbar that is always there by default in Windows 10 operating systems. (You do not have to be logged into the computer using an administrator’s account to follow this guide.)

    How to run any command prompt command with cortana

    You then have a Command Prompt window open. (When you have an admin version of the Command Prompt window open, it tells you this in the top left-hand corner of the window. That’s how we know this is not the admin version open at the moment.)

    How to run any command prompt command with cortana

    When the Command Prompt window is open, you get an icon available for it on the taskbar, juts like you would expect to find from any other application that was running.

    Right-click on the Command Prompt icon in the taskbar and then click on the “Pin to taskbar” option from the menu.How to run any command prompt command with cortana

    Close the Command Prompt window by clicking on the “X” in the top right corner.

    How to run any command prompt command with cortana

    You can see that the Command Prompt icon remains pinned to the taskbar even when the application itself is now closed.How to run any command prompt command with cortana

    Now you have pinned the Command Prompt window, so it’s always on the taskbar until you unpin it—which is done by right-clicking on it again and this time selecting the “Unpin from taskbar” option.

    What you need to do next is make it the Command Prompt version with the administrator permissions. To do that, right-click on the Command Prompt icon in the taskbar and right-click again where it says Command Prompt and then click on the “Properties” option.

    How to run any command prompt command with cortana

    Here you have the Command Prompt Properties dialog box open that will come in handy for most people who dabble in the command line.

    Click on the “Advanced” button.

    How to run any command prompt command with cortana

    Select the box next to where it says “Run as administrator” to give your command window the admin rights.

    Click on the “OK” button from the same dialog box after you have selected the box.

    How to run any command prompt command with cortana

    Click on the “Apply” button to apply the changes you’ve made.

    How to run any command prompt command with cortana

    Click on the “OK” button to close the Command Prompt Properties dialog box.

    How to run any command prompt command with cortana

    Now each time you click on the Command Prompt icon that is available in the taskbar, it opens up the “Administrator: Command Prompt” which you can see in the top left corner of the screenshot below.

    How to run any command prompt command with cortana

    That’s all you need to change Command Prompt to Admin and pin it to the taskbar in all versions of the Windows 10 operating system to date. We suspect things won’t change much in the upcoming Creators Update either.

    How to run any command prompt command with cortana

    You may be reluctant to open the command prompt thinking that you have to enter complicated commands to look for a file or run a program. The good news is that it is not as complicated as you think, and if you make good use of it, it can make your life easier and better.

    You may be surprised as to how short the commands actually are. The following tips will help you get various things done with easy-to-remember commands.

    1. Get Motherboard Information

    If you bought a pre-built PC, the motherboard keeping everything together inside may be a bit of a mystery. But if you want to update the BIOS, replace the motherboard, or even just out its name, then you can do so through the command prompt. Just enter the following:

    This should bring up all the main info about your motherboard.

    2. Copy CMD Output to Clipboard

    If you want to share information displayed in your command prompt with other people, it can be a bit unwieldy trying to take a screenshot or or highlight everything it says. Instead, you can copy the output of your command to the Windows clipboard with the following command:

    So if you want to copy all your ipconfig info to the clipboard, the whole command would be ipconfig | clip .

    You can then paste the information into a word processor, an email, an online forum – wherever you like!

    3. Cipher Command

    When you “erase” your files on a mechanical hard drive, they are still there until that space is overwritten with new data. That can take some time, but with the command

    random data is written over that space and make sure the files you deleted are really gone.

    4. Manage Your IP Address

    Changing your IP address can come in handy for various reasons. If you need to change yours, type

    The first command will release your current IP address while the second command will get a new IP address for your machine.

    Flushing your computer’s DNS can be used when a site changes its IP address so you’re not taken in the wrong direction. Type

    and enjoy that clean start.

    Also read: How to Easily Diagnose Connection Issues Using Traceroute in Windows

    5. See If Packets Are Making It to a Specific Device

    With the ping command you can find out if packets are being delivered to a device. Just type

    (Replace the URL and IP ADDRESS in the command) and packets will be sent. If you get them back, you will know everything is working just fine. If not, there is obviously something getting in the way.

    6. Get Info on What a Command Means

    This is a useful command if you’re just getting to know the command prompt. Type

    Replace “COMMAND” with the exact command you want to learn more information about. For example, to find out what the command ipconfig does, enter

    The command prompt will show you the command and what it does.

    7. Execute One Command Right After the Other

    If there are various commands you need to enter, this tip can save you some time. Just type && between the commands and sit back and relax.

    8. Scan and Repair Files

    To scan and repair files on your computer, type

    and hit Enter. The time this task will take will depend on how fast your computer is. This could easily take up to an hour or so.

    How to run any command prompt command with cortana

    9. Manage Your Computer’s Energy

    There are various things you can see on your computer with the powercfg command. For example, by using the command

    you can view your computer’s sleep states.

    Powercfg can also let you do things such as:

    • powercfg /list – Shows you all the power schemes in the current user’s environment
    • powercfg /energy – After observing your computer for 60 seconds it will create an HTML report with data on how power efficient your computer is.
    • powercfg /sleepstudy – If your device supports InstantGo devices and applications, you can learn which ones are waking up your computer by using this command.
    • powercfg /query – Returns a power setting subgroup GUID.

    10. Assoc

    Files are affiliated with a certain program in Windows. When you open a program, certain files are opened automatically. If you wish to associate these files with a program, you can use the assoc command.

    By typing assoc into the command prompt, you can see a list of program associations and file name extensions. Let’s say that you want the text files to be associated with something else, type:

    (Replace “APPLICATION NAME” with the exact application name.)

    11. Hide Folders

    If there a folder that have sensitive information, you can hide it by using this simple command. Type the drive where you have this file and then type

    Then enter the name of the folder you want to hide.

    12. Get a List of Your Computer’s Drivers

    Find out if you ever installed that driver by using the driverquery command. Hit Enter once you’ve typed it and you’ll see a list of every driver on your computer. You’ll see info such as Link date, Name, and Type.

    How to run any command prompt command with cortana

    13. Find Shared Folders

    To see what folders you’ve shared, just type the command

    and press Enter. The command will also show you their shared names.

    14. Run Commands as an Administrator

    With this command you can run any command as an administrator even if the person using the computer doesn’t have that privilege. Type

    and after make some changes.

    Add your real domain name and substitute administrator with the actual user name of a Domain Administrator. Change cmd with the command you want to try, and you can run as an administrator regardless of who’s logged in.


    With these commands, using the command prompt is going to get a lot easier. What tricks would you add to the list? Leave a comment and let us know.

    Our latest tutorials delivered straight to your inbox

    May 27, 2016 3 min read

    Some Background

    The history of Microsoft Windows is a long and winding one. Today the OS has splashy graphics, touch capabilities, tiles, and the built-in personal assistant Cortana. Its beginnings were much humbler and ran on a product called DOS, a command line interface where you had no fancy graphics, just the occasional image made from colored ASCII characters codes such as what is seen below:

    How to run any command prompt command with cortana Ascii Characters Forming an Image

    In fact, all the way until Windows XP – DOS was the underlying platform that Windows Consumer products ran on (Windows 3.1 to Windows Millenium Edition). Windows NT used a virtual version of DOS which the consumer products started doing starting with Windows XP (Windows Vista, Windows 7, Windows 8.x, and Windows 10). Nowadays, even though Windows no longer runs on DOS, there are still some handy tricks you can use in the virtual version of it. This blog post aims to share some of these commands along with how they can benefit users. We’ll start with some of the more basic commands that any IT technician might already be aware of, and then move on to some advanced commands which might offer some additional benefit.

    How to Open a Command Prompt Window

    You can still access the command prompt in a few different ways. The easiest of which is holding down the Windows Key on your keyboard and press the letter “R” (shown below). Then type “cmd” in the ‘Open:’ field and press ‘OK.’

    How to run any command prompt command with cortana

    How to run any command prompt command with cortana

    This will open a command prompt window, like this:

    How to run any command prompt command with cortana

    From here, there are several commands you can type, each providing its own unique results. You will need to press the Enter key on your keyboard after every command entered in to the command prompt.

    Find your computer name

    Type “hostname” in the command prompt window to find your computer name.

    How to run any command prompt command with cortana

    View your IP Address

    Type “ipconfig /all” to view your IP address information.

    How to run any command prompt command with cortana

    Release and renew your IP Address (at the same time)

    Type “ipconfig /release & ipconfig /renew” to release your IP Address and obtain a new one.

    Flush DNS on your local computer

    Sometimes computers, servers, and websites change their IP addresses and we have stale DNS records that are pointing us to the wrong place. This results in not being able to find the computer. If an IP address has changed, you can flush the DNS by typing “ipconfig /flushdns.”

    How to run any command prompt command with cortana

    Find network/mapped drives connected to your computer

    Type “Net Use” in to the command prompt and it will show you all the mapped/network drives to which you’re connected.

    How to run any command prompt command with cortana

    Find which folders are shared on your computer

    Type “Net Share” to see the folder locations where each shared folder is located on your computer and what their ‘shared’ names are.

    How to run any command prompt command with cortana

    Run commands as different user

    Occasionally Administrators may need to run commands on a computer while a person is logged in who does not have Administrative rights on their computer. In cases like this, type “runas /user:yourdomain\administrator cmd.” You will need to replace ‘yourdomain’ with your actual domain name. You will then replace administrator with the actual user name of a Domain Administrator. Then replace ‘cmd’ with any command you want to run as Administrator. Typically, we use ‘cmd’ because this opens the Command Prompt as Domain Administrator, which makes it easy to run multiple commands with Administrator privileges.

    The highlighted section of this screenshot shows that a new command prompt has been opened and is being run as the user specified. This highlighted Command Prompt is where we would execute higher level commands.

    How to run any command prompt command with cortana

    Easily access previously entered commands

    There are two ways to access commands you’ve previously typed into your Command Prompt window. You can press the up or down arrows on your keyboard to cycle through them one at a time. You can also press the F7 key on your keyboard to show a graphic list and choose the command you want to run again (shown below).

    How to run any command prompt command with cortana

    How to find the model of your computer

    Type “wmic computersystem get model” to find out exactly which model computer you are running (highlighted).

    How to run any command prompt command with cortana

    How to find the serial number of your computer

    Type “wmic bios get serialnumber.” For example, On a DELL computer this would show your your ‘DELL Service Tag.’

    I’ve given you some commands to get started. Each of the commands above has more uses, and there are many more commands out there. The command line interface is still rich with possibilities, even as Windows has evolved beyond it.

    By Avram Piltch published 15 July 16

    Windows 10’s “Run Command” box is extremely useful, because it lets you launch programs from the desktop as you would from a command line. In some of our tutorials, we advise users to hit Windows + R to launch the command box and then key in “regedit” to get the Registry Editor or “explorer Apps:Folder” to see a list of all applications. Like your web browser, the Run Command keeps a history of your actions and shows you your most recent command every time you open it. It also autosuggests commands you’ve used before as you type.

    However, you might find these suggestions annoying. You might also worry that, if someone else uses your computer (without you logging out), they can see this command history. Fortunately, it’s very easy to view the Run Command’s history and delete all or some entries.

    1. Open the Registry Editor. You can get there by hitting Windows + R, typing in “regedit” and hitting Enter.

    2. Navigate to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\RunMRU. You can get there by opening folders in the left pane.

    3. Select and delete the command entries in the right pane. You can remove them by either hitting the delete key or right-clicking and selecting delete. Do NOT delete the entry named “MRUList” Each command is stored with a letter name (a, b, c).

    4. Close the Registry Editor.

    How to Turn Fast Startup On or Off in Windows 10 & 11

    How to View Devices by Connection in Device Manager

    Here Are All the Device Manager Error Codes and Solutions

    Show Your Support for MajorGeeks a Donation

    5 Ways to Open Administrative Tools in Windows 10 & 11

    How to Create a Safely Remove Hardware Shortcut in Windows 10 & 11

    How to Play Minecraft Classic For Free

    How to Check Your Available VRAM in Windows 10 & 11

    Should You Clean Your Windows Registry?

    How to Properly Uninstall Programs in Windows 10 & 11

    Published by Timothy Tibbetts on 11/17/2021

    The Command Prompt is a universal term to describe using DOS in Windows. Before Windows, you only had DOS. Since the invention of Windows, DOS has remained a part of Windows. Later, Microsoft came up with PowerShell, adding many new commands and features. Starting with Windows 11, we now have Windows Terminal as the default way to start anything Command Prompt.

    TIP : Hard to fix Windows Problems? Repair/Restore Missing Windows OS Files Damaged by Malware with a few clicks

    Naturally, all these choices lead to some confusion, which we will try to sort out first. As a general rule, anytime you need to use Windows Terminal, PowerShell, or the Command Prompt, many people will refer to it as the command line or command prompt.

    You can run almost everything in Windows Terminal or PowerShell, but the Command Prompt is different. PowerShell commands will not work in Command Prompt, but most command prompt commands will work in PowerShell. When in doubt, pay close attention to the length of the command you want to use. At a glance, PowerShell commands are often much longer than command prompt commands. Any good tutorial will tell you if you need to use the Command Prompt or Powershell specifically. Eventually, you will recognize the difference between command prompt and PowerShell commands.

    The next consideration is whether to use normal mode or run the command prompt as administrator. Some commands require you to run the command prompt as administrator, but you can run any command as administrator. The simple solution is to always run the command prompt as administrator.

    How To Run PowerShell or the Command Prompt as Administrator in Windows 10

    The easiest way to get to PowerShell is to press the Windows Key + X and click on Windows PowerShell (Admin).

    Also, you can press the Windows key + S to bring up the Windows search. Type in cmd for the command-prompt or Powershell. You should now see Command Prompt or Powershell as your choice. Click on Run as Administrator on the right or right-click or click and click on Run as Administrator.

    User Account Control (UAC) may pop up here. Click on yes.

    That’s it. As you can see, the command prompt or Powershell now says Administrator: Command Prompt or Administrator: Windows PowerShell at the top.

    TIP : Hard to fix Windows Problems? Repair/Restore Missing Windows OS Files Damaged by Malware with a few clicks

    How To Run Windows Terminal, PowerShell or the Command Prompt as Administrator in Windows 11

    Starting with Windows 11, Windows Terminal is front and center with the Command Prompt and PowerShell a little harder to find. You can run most commands from Windows Terminal or open the Command Prompt or PowerShell from Windows Terminal.

    Press the Windows Key + X. Click on Windows Terminal (Admin).

    To open the Command Prompt or PowerShell instead, click on the arrow near the top.

    The nice thing is that you can have Windows Terminal, PowerShell, or the Command Prompt all running in separate tabs simultaneously.