To run these commands, you will need to use an Elevated Command Prompt, which is the regular Command Prompt with Administrator-level access rights. Some commands that change the basic functionality or licensing level of Windows require additional access privileges to execute. The interface is very similar to the old Disk Operating System (DOS) that PCs used before the advent of the Windows operating system, and uses DOS syntax.
To return to PowerShell, type exit and press Enter.The Command Prompt in Windows is the command-line interface program that is used to execute some low-level software or issue commands directly to your computer. If you're a PowerShell user, you can open a Command Prompt session from PowerShell by typing cmd and pressing Enter. To open an administrative Command Prompt window in the current folder, use this hidden Windows 10 feature: Navigate to the folder you want to use, then tap Alt, F, M, A (that keyboard shortcut is the same as switching to the File tab on the ribbon, then choosing Open command prompt as administrator).
That opens a non-admin Command Prompt session in the selected location. In a File Explorer window, hold down Shift as you right-click on a folder or drive.That opens a non-admin Command Prompt session in the current folder. From File Explorer, click in the address bar to select its contents then type cmd and press Enter.To open the session as an administrator, press Alt+Shift+Enter. Type cmd in the search box, then press Enter to open the highlighted Command Prompt shortcut.You can also use keyboard shortcuts for this route: Windows key + X, followed by C (non-admin) or A (admin).