Windows 7 new command line PowerShell Secret

  

Lead: For computer experts, the gorgeous graphical interface is often not practical, and the quick keyboard command is king. Win7 integrated PowerShell2.0, is the king of it, let you directly control the lifeblood of your computer.

Power7 is integrated in Win7, and any GUI-executed management tasks (such as control systems, access to the registry, system logs, and digital signature certificates) can be done through PowerShell scripts. The system is WinXP/Vista/2003/2008, just download and install PowerShell2.0 at http://support.microsoft.com/kb/968929 to use this new generation of command line tools!

First, where is PowerShell sacred?

PowerShell is an upgraded version of CMD, similar to C++ language, providing more than 200 commands, as well as loop, condition, flow control and variable assignment language structures, allowing you to create Various complicated scripts to complete the task. It supports a fully interactive environment. You can type the command execution one by one at the prompt. For example, enter the command get-process to enter the system, the system returns the result of the command, or you can write multiple commands in the same script file for continuous execution. The file extension is .ps1, and the script name (file extension optional) can be typed at the command prompt to automatically execute all the commands in the script continuously; the results of the command execution can be output to the shell window, file or printer. Can also use the pipeline operator (

Copyright © Windows knowledge All Rights Reserved