Posts Tagged ‘PowerShell Studio 2014’


PowerShell Studio 2014: Editing Functions

Tuesday, September 30th, 2014 by David Corrales
We improved the Function Builder yet again! Man, when are you guys going to stop this? Never. With the 4.1.71 build of PowerShell Studio 2014, you now have the option to edit existing functions within the Function Builder! Ok cool, how do I edit my existing functions? Simple, you can edit existing functions using the following methods: 1. Using the new Functions menu in the updated ribbon: 2. Use the editor’s context menu: 3. Press (Ctrl + Shift + Alt+ E) using the keyboard. 4. Use the Functions explorer: We added a toolbar to the Function Builder so you can…   More »

PowerShell Studio 2014: UI Changes

Monday, September 29th, 2014 by David Corrales
In the latest build of PowerShell Studio 2014 (v4.1.71) we made some UI changes to the Ribbon. Particularly the Home tab of the Ribbon: The most notable change is to the Run group. We changed the run and debug icons and rearranged the menu buttons: We separated out the remoting commands into their own menu:   And we added two new options to the Run menu: You can now access the run selection commands directly from the ribbon.   We also updated the Edit group of the Home tab and added a functions menu: The new menu contains the following…   More »

PowerShell Studio 2014: Improved Function Builder

Wednesday, August 27th, 2014 by David Corrales
In a previous article we covered the new Function Builder. In the latest service release of PowerShell Studio 2014 (v4.1.64), we improved parameter set support in the Function Builder. As you can see, we altered the ordering of the fields to improve the over-all work flow of the tool. Notice the question marks? If you hover or click on a question mark, a help message will popup explaining the respective field. Parameter Sets The Parameter Set field has been expanded to include an Output Type. Now you can specify an optional output type for each parameter set you define. When…   More »

PowerShell Studio 2014: Verify Script

Thursday, August 7th, 2014 by David Corrales
We offered a mechanism on how to import a remote machine’s Module profile as mentioned here and here. The import can be extremely useful when you need to work on a script that runs on a remote server. PowerShell Studio 2014 introduces a new feature that lets you verify that your script will run on the remote machine by comparing the cmdlets and modules used in the script with those available on the remote machine. The Verify Script command will then produce a report listing all the missing modules and cmdlets on the selected machine. Verifying your Scripts: Start by…   More »

PowerShell Studio: Initializing my GUI controls

Tuesday, August 5th, 2014 by David Corrales
If you are working with a GUI script within PowerShell Studio and find that you need to edit the exported script to modify the control’s initialization, then you are doing something wrong. Don’t get me wrong, modifying and initialization of control properties is not the issue; in fact that it part of writing a GUI. What I’m referring to is the part where you are editing the exported scripts. If you are editing the exported script: 1. You are creating an extra step which means you need to export and modify the script anytime you make a change to the…   More »

PowerShell Studio 2014: Collection Project

Tuesday, July 29th, 2014 by David Corrales
In PowerShell Studio 2014, we introduced a new Collection Project. The Collection Project allows you to keep track of a group of files, which typically consists of (but not limited) to ps1 script files. For example, you may have various ps1 scripts that dot source each other. Now you can create a Collection Project and enjoy the benefits being able to manage multiple files, PrimalSense support for dot source files and apply rename refactoring on all your files. When you first create a Collection Project, you will notice there is no Startup.pss file. There is no entry point in the…   More »

PowerShell Studio 2014: Convert Functions into a Module

Wednesday, July 9th, 2014 by David Corrales
PowerShell Studio 2014 added a new project feature: New Module From Functions. You may find at times you reuse various functions and constantly copy them into new scripts or find different variations of the same function are located in different scripts. You may come to the conclusion that those functions would better serve you in the form of a module where all your scripts can reference the functions in a centralized location. This is where the New Module From Functions feature comes in handy. The New Module From Functions allows you to import functions from various ps1 scripts and merge…   More »

PowerShell Studio 2014: Find In Files

Thursday, June 12th, 2014 by David Corrales
One of many new features of PowerShell Studio 2014 is the Find in Files tool. Find in Files allows you to search multiple files without having to open each file individually, as you would have done in the previous versions of PowerShell Studio. The Find in Files button is location in the Tools tab of the Ribbon: You can also access the Find in Files tool using the keyboard shortcut (Ctrl + Shift + F). When you press the Find in Files button you are presented with the following dialog: Find What Enter the text you are searching for in…   More »

PowerShell Studio 2014: Code Formatting

Tuesday, June 10th, 2014 by David Corrales
One of the new features we added to PowerShell Studio 2014 is code formatting. PowerShell Studio 2014 will now beautify your script while you type or when you paste content. Often times when you paste a PowerShell script from the web, the lines aren’t indented correctly. With the PowerShell Studio’s code formatting, it will automatically indent your script. Formatted After Paste:   Customizable Formatting: PowerShell Studio 2014’s code formatting is customizable to fit your needs: Formatting Triggers: The first few options serve as triggers for auto formatting. These options tell PowerShell Studio when to format your script. The following triggers…   More »

PowerShell Studio 2014: Comment-Based Help Templates

Thursday, June 5th, 2014 by David Corrales
In a previous article we covered how you can generate comment-based help for functions. Now we expanded upon this feature by added the ability to create templates for comment-based help generator. [Requires: PowerShell Studio 2014 v4.1.61 or above] Comment-Based Help Templates PowerShell Studio comes with a predefined template that contains the following: The template file contains the typical comment-based help block with some token variables and a single parameter section. When the user generates comment-based help for a function or file, PowerShell Studio will read the template file. Depending on if the function already has comment-based help, it will behave…   More »