Using PowerGUI will greatly increase your productivity
Source: Internet
Author: User
KeywordsScript editor install can function
We know that PowerShell will be the successor to CMD, and Microsoft has integrated it into Windows Server 2008 and Windows 7. I don't know if you noticed, http://www.aliyun.com/zixun/aggregation/32995.html "> in Windows 7, in addition to PowerShell, there is a tool called PowerGUI, From the name of the fact that it is based on the graphical user interface PowerShell, is a third-party powershell enhanced software. Of course, it's more than that. Because PowerGUI provides a highly efficient, net-style scripting development environment and facilitates scripting debugging, using PowerGUI will greatly increase productivity for a PowerShell script developer. This article will share with you the experience of using PowerGUI tools.
1. Download and install
For Windows 7 users, use ("Start → all programs → attachment →windows powershell→windows PowerShell ISE") because the system is integrated without installation. It is necessary to note that Windows 7 PowerShell ise differs from PowerGUI. The PowerGUI includes two components, the PowerGUI Script Editor and the PowerGUI respectively. In Windows 7, "Windows PowerShell ISE" is equivalent to the "PowerGUI Script Editor", not only slightly different in the interface, and its function is not compared with the "PowerGUI Script Editor", only a simple version of the " PowerGUI Script Editor. In addition, Server 2008 integrates PowerShell but does not have PowerGUI, so non-Windows 7 systems must download the installation to use PowerGUI. You can access Http://powergui.org/downloads.jspa to download the latest version of PowerGUI, but you need to install an extended installation package before you install it (http://www.quest.com/powershell/ activeroles-server.aspx), the installation will require a reboot. (Figure 1)
2, Functional interface
PowerGUI includes two components, but its core is a graphical editor based on the PowerGUI Script Editor. In fact, as we expected, the editor provides basic editing and cut-and-paste functionality, as well as a split view window that handles two different pieces of code for the same script. In addition, the editor provides a line count on the left side of the window to easily navigate to the wrong script line.
Generally speaking, the functional interface of "PowerGUI Script Editor" and "Windows PowerShell ISE" is basically similar, the author takes "Windows PowerShell ISE" as an example to introduce its main function interface. Run PowerGUI open its window to see that the window is divided into the upper, middle, and bottom parts except the menu bar and command button. These three sections have different functions: the top is the Script Editor area where developers can edit the script. Also, the number of rows (line numbers) of the script is displayed on the left side of the edit area, which makes it very easy to locate the script for the error while the script is being debugged. In the middle is the command or script output panel, where we can see the output of a single command or full script code (execution result). Normally executed scripts or commands are printed in black characters, and if the script or command output error is displayed in red, it is easy to view when debugging. At the bottom is the command line panel, where we can execute a single command. Typically, the script editor first starts debugging a single command here, and then adds it to the top script editing panel.
Of course, the top and bottom positions of these three panels and the entire layout can be exchanged, mainly to see the user's habits. Under the View menu, click Command Pane up to move the command panel to the middle and click Show Sricpt Pane right to adjust the script panel to the right-hand side of the window and click Show Script Pane maximized You can resize the script panel to the maximum and click Show Script Pane top to restore the script panel to the default state. In addition, "Go to Script Pane", "Go to Command Pane" and "Go to Output Pane" can jump between these three panels.
A more practical feature for developers is the PowerGUI Support tab, which allows you to open or edit multiple scripts at the same time. On the label there is the name of each script, click on these tags to switch, if the script does not save the name will appear after its "*". In the bottom status bar of the PowerGUI window, you can drag the pole in the lower-right corner to adjust the size of the characters in the Ribbon.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.