To use Cortana to turn off your computer, use the following steps:

  1. Use Windows key + E to open File Explorer.
  2. Click This PC from the left pane.
  3. Click the View tab.
  4. Check the Hidden items option.
  5. Open the Windows installation drive (usually C:) and navigate to the following path: UsersYourUserNameAppDataRoamingMicrosoftWindowsStart MenuPrograms.

  6. In the Programs folder, right-click, choose New, and click Shortcut.
  7. Type the following command and click Next: shutdown.exe -s -t 00

    Explanation: The command mentioned above starts Shutdown.exe, and using the -s command requires a complete shutdown, and the -t 00 button is used to set the amount of time to wait before shutting down the computer – in case This is 0 seconds.

  8. Name the shortcut with the voice command you want to use with Cortana. For example: ” Shutdown ” or ” Turn off PC “.
  9. Click Finish to complete.

Assuming that you have enabled the ” Hey Cortana ” feature, you can now say: ” Hey Cortana: Open Shutdown ” to turn off your computer.