Archive for the ‘VBScript’ Category


How safe are credentials in script packages?

Monday, April 30th, 2012 by Alex Riedel
We get that question all the time. Before we start, please note that we do not advise to ever put credentials as plain text into any kind of code. Use encrypted strings, store encrypted credentials in files or, if all else fails, prompt. Now, having said that we all know that sometimes schedules and pressure from “above” forces you to do things you normally wouldn’t do. So for the sake of argument we have created a variety of executables which use SUPERADMINUSER and SUPERSTRONGPASSWORD to run a WMI query on SUPERSECRETSERVER. We used VBScript PowerShell C# C++ Obviously all of…   More »

Why is there a shield on my icon?

Friday, December 16th, 2011 by Alex Riedel
If you package your script with PrimalScript's or PrimalForm's packager you have the option of including a manifest. This manifest can be used to make your executable file prompt for elevation when executed. It's easy to spot the difference between an application that will prompt for elevation and one that does not by looking at the icon: Now, imagine the surprise if you get a shield on your icon and an elevation prompt when you run a file you packaged without a manifest. As you can see from the image below it's all in the name: I simply took the…   More »

PrimalPad gets a 2011 upgrade

Tuesday, September 6th, 2011 by Alex Riedel
PrimalPad gets upgraded with code folding, new languages and the ability to run scripts. With this new 2011 version of the ever popular Notepad replacement you get support for code folding in VBScript, JScript and PowerShell. Because some of you asked nicely, we also added SQL and Python to the languages supported by PrimalPad's syntax coloring. Last but not least, you can now run your script files from within PrimalPad. While it doesn't have PrimalScript's output capture abilities, it still works pretty well for some quick hit and run scripting. The tools menu is where you make it all happen.…   More »

VBScript Video Training Available as a Download

Wednesday, August 10th, 2011 by Robert Morey
We released our PowerShell Video Training as a download and the response was overwhelming!  Once again, you asked for it, you got it! Our VBScript Video Training set is now available as a download! This is the perfect way to learn VBScript with these self-paced videos.  Each set contains our VBScript 101, VBScript 201, VBScript 301, and full set of Electives!  You can read all about the set at  Purchase yours today at But that's not all! We put together the Complete PowerShell and VBScript Video Training set as well. If you are ready to dive into all the…   More »

Benchmarking Scripts: Strings

Monday, June 6th, 2011 by Alex Riedel
The latest build of PrimalScript 2011 has a new little toy built in. If you run a script from within PrimalScript, it will time the execution and print the elapsed time after the script has finished in the output window. While this isn't exactly a profiler of any kind, it can be helpful to evaluate the time it takes to accomplish come common tasks. For example, let's look at concatenating strings. Almost every example script we see from users adds strings up to form reports, log files, CSV files and so forth. It's also not language specific, as we see…   More »

Feature Peek PrimalScript 2011: Debugging with arguments

Tuesday, March 22nd, 2011 by Alex Riedel
Many of the scripts you develop use command line arguments to specify data that needs to be passed to the script. In a production environment these parameters usually change for each invocation of a script. For debugging however most developers use a fixed set of test parameters for any given script, which allows you to easily reproduce the state you need for debugging a specific item. In the past that meant that for each script you had to manually set the parameters somewhere in a dialog box before debugging. It also meant that you somehow had to remember what the…   More »

RSEE and security

Thursday, November 11th, 2010 by Alex Riedel
We have received a couple requests in the last few days to explain the security implications of using our Remote Script Execution Engine (RSEE). The RSEE service must be installed on a target machine and uses a configurable tcp/ip port to listen for incoming script execution requests from a PrimalScript instance. Another port is used to transport the output back to the requester. All traffic to and from RSEE is encrypted. This is no high level of encryption, it uses a very simple and fast algorithm that is sufficient in most cases. RSEE has no built-in authentication, as the assumption…   More »

Feature Peek 2011: Can I get some help here?

Friday, November 5th, 2010 by Alex Riedel
One of the most important things for any type of development is quick and efficient access to help information. No matter whether you are a seasoned developer or just started to write scripts longer than five lines, at some point you will need help.Maybe you just need a reminder about what the parameters of a function are for or you need a detailed sample of how to use this newfangled cmdlet to produce meaningful output. PrimalScript had built-in context sensitive help for generations and PrimalForms equally had its built-in access to PowerShell help, but these took screen real estate away…   More »

Back from TechEd: Is PowerShell more secure than VBScript?

Monday, August 2nd, 2010 by Alex Riedel
The ILOVEYOU virus in the year 2000 gave Windows Script Host a bad rep because it simply executed every script you double clicked on. Now, mind you, I personally think that was much more the fault of the email clients that indiscriminately executed every attachment without hesitating and the users who where too infatuated with the message to look at the attachment's extension. Anyway, the Windows Script Host for VBScript and JScript files has a registry setting that allows scripts to run uninhibited or only if they are signed. The default is to run everything, so you better use group…   More »

Moving to 64 bit: Running VBScript files in 64 bit mode from PrimalScript 2009

Wednesday, July 28th, 2010 by Alex Riedel
PrimalScript 2009 usually uses CScript.exe to run VBScript files and captures its output and directs it to the IDE's output windows. Since PrimalScript 2009 is a 32 bit application the host used is also of the 32 bit variety, residing in the System32 folder of your Windows directory. If you are working on a 64 bit operating system and you have to use 64 bit COM objects you need to be able to run your scripts in 64 bit mode. In order to do that you can simply change what specific version of CScript.exe is used by specifying the full…   More »