It’s been a month or two, when I began to discover the magic of PowerShell. It is a useful and well-to-use scripting language. The problem is, how to write scripts. As is the case with programming, you can use even Notepad but, in order to increase productivity with scripting languages, you need a better editor or, even better, an IDE ​​. The vast majority of scripts I have written have been in the PowerShell ISE, which is built into the system, but after trying to do GUI scripts, there is a problem …

The initial meeting with GUI

Either you have to set everything manually, write the plot and the location of the control constant running or then find a suitable environment for scripting.  My first step was to find Primal Forms CE (community edition) from SAPIEN Technologies. This software is very good because it allows the folding of graphic elements of the script property settings, etc., but it is almost everything. The resulting code can be exported into either PS1 file or saved to the clipboard. So you have to work with the code below in any editor and as soon as you want to make a change in the GUI, you have to constantly jump between applications and it is difficult to copy the code. This way you can make a simple „application“ but making it is complex.

Primal Forms Community Edition
Primal Forms Community Edition

Testing the PowerShell ISE Studio

After the first run after installing the trial version, I was literally blown away by what PowerShell Studio at first glance has to offer. Layout panels and tools are basically as standard as conventional IDE.

General interface for edit forms
General interface for edit forms
General interface for edit script
General interface for edit script

Trial version is for 45 days, otherwise the price is quite high ($ 350).

What PowerShell Studio offers

Advanced console

The PowerShell Studio console does not have just one but two (mode 32 and 64 bit) and remote consoles. But even so, the console is „only“ a console.

Forms Designer (GUI appearance)

After switching to design mode changes and side panels. Left panel shows the individual elements such as buttons, tables or graphs. A property right panel can be selected for an element or the entire form.

Dragging individual elements, change their properties and sizes to achieve our desired look. To adjust the actions on one of the elements, it is necessary to tap the element to form a listener for action.

Result of form and script (unfinished version)
Result of form and script (unfinished version)


Or reusable pieces of code, which is how a lot of predefined operations are on WMI, and such simple processes such as cycles or work with the date. In addition to previously created work, it is of course possible to add further structure into components according to function.

Only small part of snippetsReview: Why PowerShell Studio 2012 is the ultimate PowerShell ISE

Post navigation

Napsat komentář

Vaše emailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *

+ 26 = 29