Blog

Easier access to license information

August 20th, 2014 by Alex Riedel
With the next service builds for all SAPIEN software products you will notice a new icon in the upper right corner of the ribbon: Clicking on the new icon will show you a new license dialog that is also available when the software is already activated. The new dialog allows you to unlock the software without restarting and using the trial dialog. It also shows you your license key or subscription number if activated. You can now easily look up how much longer your subscription will be active and deactivate the license on the current computer if you want to…   More »

PrimalScript 2014 PowerShell Debugger enhancements

August 18th, 2014 by Alex Riedel
PrimalScript 2104’s PowerShell Debugger has received a minor update with build 7.0.44. The variables window now shows the actual .NET type of the underlying variable in a separate column. In addition to that you can also see array data. If you look closely at the screenshot above you see a “[… Click to see array values …] for the variable called “myArray”. Clicking on that will retrieve the first 20 items in this array. It only retrieves a maximum of 20 items for performance reasons and because this particular way of displaying the array data does not lend itself to…   More »

PowerShell Studio 2014: Verify Script

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

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 »

Using iPowerShell Pro’s PowerShell Web Access connection

July 31st, 2014 by SAPIEN Technologies
In a previous blog I described how to connect to a PowerShell Web Access server with iPowerShell Pro. In this article, I will show you what you can do once connected. First, connect to your PSWA server as described in this previous blog post. Once you are connected, that is where the fun begins. Tap on the input line to bring up a keyboard. You can simply type in a PowerShell Command here and press SEND to execute the command on the server and see the results on the screen. If you TAP once on the screen, the toolbar with…   More »

Connecting to PowerShell Web Access with iPowerShell Pro

July 30th, 2014 by SAPIEN Technologies
iPowerShell Pro has the ability to connect to any PowerShell Web Access server and to transmit PowerShell commands and, if you set it up, even execute scripts. It's all very easy to do once you have it set up right. So let's take a look at how to set it up. The first step is to select the SERVERS option from the iPowerShell Startup Screen. It's the blue tile with the 2 white computers as displayed below. [caption id="attachment_7550" align="alignnone" width="300"] iPowerShell Pro SERVERS is in the second row, 4th item from left.[/caption] If you have never set up any…   More »

PowerShell Studio 2014: Collection Project

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

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

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

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 »