Here’s another tidbit about PrimalScript that you may not be aware of. Not only does PrimalScript offer a large number of code snippets that you can drag and drop into your scripting or development project, but it also includes a large number of complete sample scripts.
Category: VBScript
PrimalScript Packaged PrimalForm PowerShell
I hope you’ve been playing with the free PrimalForms tool and started creating some useful PowerShell tools. Here’s a technique you might want to explore if you are using PrimalScript. If you’ve used the PrimalScript for awhile you likely are aware of the script packaging feature. You can use it to package your PowerShell scripts into an EXE file. Remember though, PowerShell needs to be installed wherever you may want to execute your package. But once packaged, launching the file will display your WinForm based script. Let me show you some ways to leverage script packaging and PowerShell scripts.
Who owns the file?
Browsing through some forum or newsgroup recently I noticed that the task of getting or setting file or folder ownership is not trivial from a script. I put together a small COM component that does the trick and it is available for free from here: http://www.primalscript.com/Free_Tools/index.asp The usage is pretty simple and self explanatory. Only […]
New ActiveXPosh version
A new version of ActiveXPosh was uploaded to our server. You can download it from http://www.primalscript.com/Free_Tools/index.asp Aside from some minor fixes, it includes a new method on the interface called ‘GetValue’. With that function you can easily get the string value of some variable or property without going through the output buffer. An example would […]
Scripting Essentials
I wanted to make sure everybody knew about another site in the ScriptingAnswers.com family. We have another area we refer to as our Essentials site. Here we gather tips, best practices, sample scripts and more. Coverage includes not only PowerShell but VBScript as well. This is also where you’ll find conference slide decks and demo […]
WBEMTest Demo
If you’ve sat in on any of my WMI related classes or conference sessions, I know you’ve heard me talk about using WBEMTest to test WMI connectivity and your WMI queries. WBEMTest has been around as part of Microsoft operating systems for a long time but many administrators have never heard of it. If you are troubleshooting a WMI related script this is the first place you should go, especially when troubleshooting remote server connections and alternate credentials. If you can’t authenticate to the server using WBEMTest, your script is likely to fail as well. Usually if there is a connection error, the error message should lead you in the right direction.
You should also use WBEMTest to test and refine your query. Once you know it works, then copy and paste it into your script (VBScript or PowerShell or anything else for that matter). If you script still has a problem, it is likely not your WMI query because you’ve already verified it works.
I put together a short video demo on how to use WBEMTest. To start it, click Start – Run and type WBEMTEST. The video shows you the rest.
Techmentor NYC 2008 Demos and Slides
I’ve posted a few zip files with my slides and demos from Techmentor NYC. You’ll find the files in the Essentials section of ScriptingAnswers.com. Click here to get them. Some of these sessions will be done again at Techmentor Las Vegas next month, plus a whole lot more.
Script packages and elevation with manifests
Microsoft Windows Vista and Server 2008 have become a lot more protective of certain areas of the registry and the file system. Take an innocent little script that create a URL shortcut in a folder under C:\Program Files. Not really a problem under XP, but under Window Vista this will fail: Fortunately Windows Vista […]
Techmentor NYC
I’ve been getting things ready for my next Techmentor appearance. This one is practically in my back yard. I’ll be in NYC on Monday and Tuesday next week.
The road ahead and the path traveled
As our development team gets ready to focus entirely on PrimalScript 2009 and some other, still very secret, new products, it is time to look back on PrimalScript 2007’s path. It is hard to believe it has only been one year. Since its initial release in August 2007 a total of 39 new features have […]