Moving from CMD to PowerShell: a reference for commands and cmdlets for AD administration. Moving from CMD to PowerShell: a reference for commands and cmdlets for AD administration Launching the command line in Explorer
The Command Prompt has been a very important part of Windows for many years. Many operations related to system management are performed with its help. Although Microsoft is slowly pushing users towards the more advanced Powershell tool, Command Prompt will be around for a long time to come. In this article we will tell you how you can run it on Windows 10 and how to return the console to context menu File Explorer in Windows 10 Creators Update.
How to Open Command Prompt via Win + X Menu
Starting with Windows 8.1, users can find important system programs in the menu, which is called up by the key combination Win + X. Among them is the command line.
If in Win menu+ X is displayed instead of the console Powershell, go to Settings - Personalization - Taskbar and turn off Replace Command Prompt with Windows Powershell.
How to Access the Command Prompt Using Windows Search
Also in Windows Vista The Start menu now has a search function installed programs, and this feature has been updated in Windows 8.1 and Windows 10. With its help, you can enter the command line, including as an administrator.
![](https://i1.wp.com/wp-seven.ru/wp-content/uploads/2017/06/command_line3.png)
Calling the command line through the list of programs in the Start menu
The console is listed system utilities, the shortcuts of which are located in a separate folder in the Start menu.
![](https://i1.wp.com/wp-seven.ru/wp-content/uploads/2017/06/command_line4.png)
How to launch Command Prompt using Win + R menu
Menu Execute capable of running a command prompt as a user.
![](https://i1.wp.com/wp-seven.ru/wp-content/uploads/2017/06/command_line5.png)
If the level is higher than low, then you will not be able to launch the command line as an administrator using the Win + R menu (at least without some additional complex actions). If you set the level to low, the console will be launched as administrator.
How to open the command line through the task manager
This method is used quite rarely, but it can help you if the Windows interface is frozen (in which case the other methods will not work).
![](https://i2.wp.com/wp-seven.ru/wp-content/uploads/2017/06/command_line6.png)
In the Manager Windows tasks 10 You can also use the hidden launch method command line on behalf of the administrator.
- Open Task Manager.
- Press File, and then, while holding down the key Ctrl, on Start a new task.
Running the command line via an executable file
![](https://i0.wp.com/wp-seven.ru/wp-content/uploads/2017/06/command_line8.png)
How to call the console through the Explorer address bar
An interesting way to launch the command line in a specific folder.
![](https://i0.wp.com/wp-seven.ru/wp-content/uploads/2017/06/command_line9.png)
Running as a user or administrator will depend on the level of User Account Control, as is the case with the Win + R menu.
How to create a command prompt shortcut on your desktop
- Open the Start menu and find the folder Utilities - Windows.
- Click on Command line and drag it to your desktop.
If you want to run it as an administrator, do the following:
![](https://i0.wp.com/wp-seven.ru/wp-content/uploads/2017/06/command_line10.png)
Launching the command line in Explorer
In Windows 10 1607 Anniversary Update and earlier versions of the system, you can open the Command Prompt using the menu File in Explorer. Both running as a user and running as an administrator are available.
![](https://i1.wp.com/wp-seven.ru/wp-content/uploads/2017/06/command_line12.png)
How to open the command line through the Explorer context menu
In Windows 10 Anniversary Update 1607, the option to launch the console in a specific folder was available through the context menu. Unfortunately, this feature was removed in Windows 10 1703. You can return it to its place using the method described below.
- Go to the desired folder in Explorer.
- Hold down the key Shift and click on an empty area or on any folder with the right mouse button.
- Select an item Open command window.
How to get back the "Open Command Window" option in Windows 10 Creators Update
To take advantage of this functionality in current version Windows 10, you will have to change some values in the registry. Note that the proposed solution will only work if you hold Shift and right-click on a folder, not an empty area.
- Click Win+R. Enter the command regedit and press Enter.
- Go to HKEY_CLASSES_ROOT\Directory\shell\cmd.
- Right click on the folder cmd and select Permissions.
- Click on the button Additionally.
- In line Owner click on the inscription Change.
- In a text field Enter the names of the selected objects enter your username (if you are using a local account) Windows recording) or address Email main Microsoft account.
- Click Check names. If you entered the account name correctly, it will be underlined.
- Click on the button OK.
- Check the box Replace owner of subcontainers and objects and press Apply, then OK.
- Select group Administrators and check the box Allow against Full access.
- Click Apply, then OK.
- Click on the key HideBasedOnVelocityId right mouse button and select Rename.
- Change the parameter name to ShowBasedOnVelocityId and press Enter.
Most likely, in the distant future, Microsoft developers will still get rid of the command line and completely replace it with the Powershell utility.
Shell Windows PowerShell came to the Windows 10 operating system to replace the Command Prompt, although the Command Prompt also received an update and the ability to paste commands from the clipboard. Since most users are used to the regular command line, even replacing a command line item with PowerShell can seem intrusive.
This article will tell you how to remove Windows PowerShell and return the command prompt instead of PowerShell in Windows 10. The process of removing the shell is to disable Windows component PowerShell 2.0 or only replacing an item in the context menu. Please note that completely remove Windows shell PowerShell will fail, even after complete shutdown component.
With the release of a new update operating system In the start context menu, the ability to select the command line was replaced with Windows PowerShell. Microsoft has left the option for users to return to the command line instead of PowerShell.
After which the previously available command line will appear in the start context menu. See also other methods. You can also replace PowerShell with the command line using the registry editor. Please note that before making changes to the registry it is recommended, and after making changes, you must restart your computer or.
![](https://i2.wp.com/windd.ru/wp-content/uploads/2018/11/Kak-vernut-komandnuyu-stroku-vmesto-PowerShell-v-Windows-10.png)
Programs and components
After you disable Windows PowerShell Version 2, the updated PowerShell will remain. But users who prefer to see the command line in the Start context menu can return it with the click of one button.
Administrators Windows long have relied on time-tested command line tools such as PING, IPCONFIG and REPADMIN. And some people still use them, instead of turning their attention to PowerShell. Ashley McGlone, Premier Field Engineer Active Directory and PowerShell (it's his smiling face you can see in the photo), created a wonderful 4-page guide that correlates well-known CMD utilities for working with Active Directory with their corresponding PowerShell cmdlets. For example, instead of PING you can use the PowerShell cmdlet Test-Connection, instead of NSLOOKUP - Resolve-DNSName, instead of GPUPDATE - Invoke-GPUpdate.
Many will ask the question, why is it actually worth switching to PowerShell cmdlets at all? The author of the manual gives several reasons for this:
- Command line tools simply output text that requires parsing to further work with him. PowerShell allows you to pipe this data and work with it directly in the console or output it to a file.
- Team availability. For example, if you connect to the server remotely via RDP, then adminpak.msi or Windows Resource Kit may not be installed on it. And PowerShell is on each Windows machine Sever 2008 R2 and higher.
- Same syntax. The syntax for different PowerShell cmdlets is similar.
- A large number of cmdlets for all occasions.
Considered CMD utilities and their corresponding PowerShell cmdlets
The free guide focuses on the following CMD utilities:- REPADMIN
- DCPROMO
- CSVDE
- NETDOM
- NLTEST
- GPUPDATE
- GPRESULT
- DSGET
- DSQUERY
- DSADD
- DSMOD
- DSMOVE
- DSACLS
- DNSCMD
- NSLOOKUP
- IPCONFIG
- NETSTAT
CMD – Switch – PowerShell cmdlet – PowerShell module – Windows version Server.
Much attention is paid to those cmdlets that were presented in Windows Server 2012 and PowerShell v3.
You can download it at
IN previous versions operating room Windows systems 10 it was possible to open a command line in a folder. In order to open a folder in the command line, it was enough to hold down the Shift button and select the item open command window in the folder’s context menu. With the release of the Windows 10 Creators Update, the option to open a command window has been replaced with open a PowerShell window here.
If in the Start context menu, replacing the command line item with Windows PowerShell is not a problem, since you can easily . In the case of the ability to open a command window in the desired folder, the situation is a little more complicated, since Microsoft has not yet added the ability to switch PowerShell to the command line.
This article will tell you how to open a command prompt in a folder and how to return the ability to select the option to open a command window in Windows folder 10. We will also offer ways to launch the command line from the desired location in Explorer without having to make changes to the registry.
If you are using the latest build of the Windows 10 operating system, then the open command window item in the folder context menu is missing. But after using the method described below, users will be able to return the open command window to the context menu. Before using it, it is necessary to always be able to roll back system changes back.
- Open the registry editor by running the command regedit in the window Win+R.
- Next we move to the following location: HKEY_CLASSES_ROOT\ Directory\ shell\ cmd.
- Right click on a branch cmd and select Permissions.
- In the window that opens, just click the button Additionally.
- Now opposite the point Owner TrustedInstaller press the button Change.
- Then we indicate our user in the item for selecting names of selected objects, and press the button Check names And OK.
- Next, in the additional security settings window, check the items and Replace all permission entries of a child object with those inherited from this object, and press OK.
- In the cmd group permissions window, select the user group Administrators and mark the item Allow full access.
- The last step is to rename the parameter in the current location of the registry HideBasedOnVelocityId adding any character at the beginning of the name.
After renaming the HideBasedOnVelocityId parameter, you will be able to select the option to open a command window even if you don't need to. Many experienced users recommend simply deleting the current parameter, which is definitely not worth doing, especially if you are not a fan of creating backup copies registry and the system as a whole. We used a similar method in the article: .
Having returned the ability to open the command line in the current folder, the user just needs to go to Explorer and select any folder with the button pressed Shift open the context menu with the right mouse button and select Open command window.
An alternative way to start the command prompt with the current location in the desired folder is to launch the command prompt through the updated Windows PowerShell. The current method works without the need to return the Open Command Window item to the context menu.
![](https://i2.wp.com/windd.ru/wp-content/uploads/2018/11/zapustit-komandnuyu-stroku-cherez-Windows-PowerShell-ot-imeni-administratora-1.png)
We can also offer a method that will allow you to open a folder on the command line. Just go to the folder whose location you want to open in the command line, and enter the command in the address bar cmd and press the button Enter.
Conclusion
Even though in latest versions The developers of the Windows 10 operating system decided to remove the command line launch item from Explorer, but craftsmen have long found ways to bypass this solution. Despite the complete replacement of menu items where it was possible to select the command line, with the updated PowerShell you can easily open a command window in the Windows 10 folder.