Windows7 system Powershell command Do you know how to use it?

  
Command prompt is not used frequently, but it plays an important role in system and network management and maintenance work. In Microsoft's latest windows7 system, we also brought us an upgraded version of cmdshell windowspowershell, with which computer users can manage the system more efficiently. What exactly is WindowspowerShell, and what can it do? Let's learn together.

WindowspowerShell introduce

windowspowerShell open Microsoft mother shell and scripting language technology for the windows system, its appearance and at the same time to make up for deficiencies in the unix system compared to Windows Shell aspects, but also for Program developers provide a more efficient tool for writing scripts. PowerShellV2 has been integrated in Windows 7 and supports graphical interface operations.

windows7 system in order to start windowspowerShell very simple, click on the "Start" button to enter PowerShell in the search box at the bottom, select windowspowerShell in the search results interface to enter the command line mode, after selecting windowspowerShellV2ISE You can enter the graphics window mode of WindowspowerShell. In addition, you can also enter PowerShell in the traditional CMD window and then press Back to run PowerShell.

PowerSHell started

opposed to the traditional command-line tool, PowerShell for many users will look very strange. What commands does PowerShell support? In fact, PowerShell can manage system processes, services, registry, system logs and even certificates. To find out which commands it supports, just type get-command in the window and press back to draw. All the commands supported by PowerShell will be displayed on the screen.

here may only display the type of command, also shows the name and description. To see the detailed usage of a command, you can use the get-helt command to get help. For example, to view the details of the add-content command, you can type get-helpadd-content and press Enter to display the name of the command. , abstract, grammar, detailed description, related links, and notes. To get a deeper understanding of powerShell, you need to get help often. PowerShell application

PowerShell can easily view and end processes within the system, so you can not only monitor the suspicious process in the system, you can easily turn it off. To view the current system's processes, you need to open PowerShell, enter get-process and press Enter, so the process handle, process name, process processor time and process unique identifier will be displayed. To end the

or a plurality of processes, it is necessary to record the unique identifier of the process, after the input Stop-process ID or a plurality of processes in accordance powerShell prompted, press Enter The process can be automatically ended.

Quick Start program

with other outside for some commonly used commands, powershell also supports to set it to use an alias. For example, if you need to set the get-process, you can enter set-aliasgpget-process in the powershell, where gp is the command get-process. You can use the gp instead of the get-process command after pressing Enter. Similarly

many systems built-in tool may be provided in powershell the alias, such as input after the powershell notepad can start Notepad. To start Notepad faster, you can set an alias for it, type set-aliasnpnotepad and press Enter, so you can open Notepad by typing np again.

PowerShell as well as the management system services, operating the registry and numerous network-related operations, there is not introduced one by one, friends who are interested may wish to log on the official Microsoft site for more and more information and powerShell related.
Copyright © Windows knowledge All Rights Reserved