With Windows 10 Fall Creators Update, users can utilize Cortana to shut down, restart, lock, or log out of their computer with a simple voice command like 'Hey Cortana, turn off my computer.'
Additionally, users can employ Cortana to open any program found on the Start Menu with a simple voice command. If you want to run Command Prompt anytime using Cortana, refer to Mytour's article below for further guidance.
To run any Command Prompt command using Cortana, first, open File Explorer and paste the following path into the address bar:
%APPDATA%\Microsoft\Windows\Start Menu\Programs
Perform the above steps to open the list of programs in the Start Menu (where Cortana searches for shortcuts when you command). Right-click anywhere in the Programs folder, select New =>Shortcut.
In the window that appears on the screen, enter the Command Prompt command you want to call by voice into the Type the location of the item field. In this example, use the command:
Customize your command: rundll32.exe powrprof.dll,SetSuspendState 0,1,0
Replace the above command with any command you want to use, then click Next.
In the next window, give a name to the shortcut as per your preference. In this example, the shortcut is named Sleep Computer.
Click Finish when done. Now, you will see the new shortcut in the Programs folder.
Here's everything you need to do to run any Command Prompt command using Cortana. From now on, to invoke the shortcut, simply say 'Hey Cortana, open [shortcut name].' In this example, it's 'Hey Cortana, open Sleep Computer.'
As some CMD commands require running CMD with Administrator privileges on Win 7, 8, 8.1, 10 to access them, you can refer to Mytour's article on running Cmd with Administrator rights for more information.
Not only can you run any Command Prompt command using Cortana, but you can also perform various other tasks. To understand more about utilizing this virtual assistant, check out the comprehensive article on using Cortana on Windows 10. Wishing you success!
