
For example, the first one is a string the second is an integer. $ to indicate a variable is followed = to assign value to variable “” to indicate string as value while numerical value is assgined without “”. For example,the following is a string: $var = 5 Variable type is not normally required in PowerShell though it can be define via and etc. Arrange is also supported in PowerShell, we will come to it in the next blog. This area shows default and user-defined variables and the value stored. After executing the script once, variable values are shown in ‘4 Variables’, which I found useful in troubleshooting whether values are parsed as required. Move mouse pointer over a command, it will reveal the command syntax. PowerGUI also provides command hint as below. # starts comments, and is shown in Green in the editor.Ĭommand is shown in Aqua such as ‘import-module’. The window should be as below:ġ – Create new script 2 – Script browser 3 – Script editing area ‘PowerGUI Script Editor’ is the tool we are using to write PowerShell script. commands are unavailable if not install the library), you will need to use ‘PowerGUI Administrative Console’ as below and add through ‘File > PowerShell Libraries…’. However, if you need to add a PowerShell library such as AD snap-in to manage Active Directory (get-aduser, adgroup etc. I am not going to elaborate ‘PowerGUI Administrator Console’ in this blog. Nothing fancy, just follow the installation wizard and click though.Īfter successfully install PowerGUI, two programs are installed ‘ PowerGUI Administrative Console‘ and ‘ PowerGUI Script Editor‘.

Most importantly it is free!ĭownload PowerGUI from DELL (It is now owned by DELL):

This blog is to introduce my favourite PowerShell editor, PowerGUI, which provides an intuitive graphic interface, simplifies scripting work and allows easy test and troubleshooting.


I introduced how to set up the UCSM automation lab and used PowerTool, the Cisco PowerShell module, to connect and manage UCSM (see PowerShell to Automate UCS (1): Lab Setup).
