Posts Tagged ‘Script’


Open a SAPIEN Forum from PowerShell

Monday, March 21st, 2016 by June Blender
UPDATE:  Added a -Search parameter that searches all SAPIEN forums for the term that you specify and then opens the page with the results. Thanks to Prasoon V. Karunan for the contribution. I love helping people learn Windows PowerShell and SAPIEN products. I answer questions on Facebook, Twitter, Reddit (love the /r/powershell subreddit), Google+, Slack, email, in the line at Starbucks, etc. But, I'm also a scripter, and I know the value of automation and efficiency. So, rather than answer one question for one person, I'd rather answer each question for many people. And, to get the best answer, I'd like…   More »

A tale of two crashes

Wednesday, October 8th, 2014 by Alex Riedel
One of our long time customers recently sent me an email with a desperate plea for help. The customer would like to remain anonymous, so we will just call him “Joe”. Joe asked if I would be so kind as to extract the scripts from all the packaged executables that he had created with PrimalScript and PowerShell Studio. He said he had lost all the original script files when his hard drive crashed.   When I read this email I had a certain sense of déjà vu. I distinctly remembered getting an email just like this one from Joe about…   More »

PrimalForms 2011: Slimmer Form Code

Friday, August 5th, 2011 by David Corrales
In the latest service release (v2.0.11) we updated PrimalForm 2011’s code generator so that it produces slimmer scripts. We wanted to increase the readability and at the same time reduce the size of the generated script. The following is a script block generated by the previous version of PrimalForms 2011: Now we have the same script block generated by the latest version of PrimalForms 2011: By utilizing PowerShell’s ability to convert strings into appropriate objects, the generated code is now cleaner and easier to read.   UPDATE: In the next service build, the generated script will get even slimmer by…   More »

Your output may vary

Monday, May 3rd, 2010 by Alex Riedel
While I was testing the new PowerShell enabled RSEE service, I used one of the many files our users send us to illustrate one thing or another or to report a bug. Using real world script files rather than some "clean" in-house samples makes for a better test as far as I am concerned. (Disclaimer: Any such script containing personal information or access information of any kind is either made to be anonymous or deleted.) While testing, I noticed that get-process produced a list style output rather than the familiar table that get-process normally emits. An hour or two of…   More »

How safe are my scripts in PrimalScript/PrimalForms packages?

Tuesday, January 19th, 2010 by Alex Riedel
This is a question that has come up a lot lately. Our Script Packager used in PrimalScript 2009 and PrimalForms 2009 stores the scripts and additional data files encrypted and in some cases, compressed inside the executable.Some formats create temporary files and use the original Windows tool to run a script; others execute directly from memory with no temporary files whatsoever. The table below explains what uses which technique: Hosting option Encrypted Compressed Execution method CScript (Windows Script Host) ● ● Temp file WScript (Windows Script Host) ● ● Temp file MSHTA ● ● Temp file Microsoft Windows PowerShell (Command…   More »

PrimalForms 2009: Exported Script Formatting

Monday, January 11th, 2010 by David Corrales
In order to start the planning stages of the next version of PrimalForms, we decided to conduct a review the current version. After gathering user feedback on the subject, we concluded that the script formatting needed a makeover to make it easier for the users to read the final script. In order to address user feedback prior to the release of the next version of PrimalForms, we decided to incorporate these changes in this month’s service build of PrimalForms 2009 (v1.1.4). The first step we took in the makeover was to define the script’s regions with clear comments and appropriately…   More »

March PowerShell Oneliner

Tuesday, March 3rd, 2009 by Jeffery Hicks
In this month's SAPIEN newsletter I offered a PowerShell oneliner to returns usage information for a specified folder. I don't have room in the newsletter to go into detail so here is more in-depth coverage of this oneliner. I'll also have a downlink link at the end.   More »

Get TweeterTagged User

Thursday, February 5th, 2009 by Jeffery Hicks
If you use Twitter and like to script, especially in PowerShell, then I think you'll like this. A new site, has launched that allows you to tag your Twitter profile. The upshot is that this makes it easier to discover like-minded individuals. So let's say I want to find all the PowerShell tagged users, here's how I can do it directly from PowerShell with a simple script.   More »