The other day I gave you a function to create a VBScript style message box in PowerShell. If you find yourself needing MsgBox in PowerShell, you’re likely going to want InputBox.
Category: VBScript
PowerShell, VBScript, Shells and Cmdlets
We are currently running a survey about PowerShell adoption. If you haven’t had a chance yet to participate, please go here to do so: Take the survey I would like to thank all those who already took the survey for participating and for leaving a huge amount of very interesting comments. One thing that really […]
PowerShell MsgBox
if you came from the VBScript world you may be missing a few old friends in PowerShell. Because Powershell is a management console, it lacks a GUI unless you create one using Windows forms. Things will change a bit in PowerShell v2.0 but for now let’s stick with what we have. If you really need a message box, ala VBScript, then simply call it from PowerShell. All you need to do is use the [microsoft.visualbasic.interaction] class and the MsgBox method.
New PrimalToys object for easier CSV handling
With service build 569 of PrimalScript 2007 we added a COM object that makes it easier to deal with CSV (comma separated values) data and/or files. While browsing through posts at ScriptingAnswers.com and some of Microsoft’s scripting related newsgroups I couldn’t help but notice that questions regarding CSV keep coming up. I mentioned this to […]
VBScript: Drive Utilization
Here’s another recent topic from the ScriptingAnswers.com forums which I thought I’d share. The forum members wanted to delete files if the drive utilization exceeded a certain threshold. Using Windows Management Instrumentation (WMI) with VBScript I came up with something like this…
ActiveXPoSH is now a free download
The ActiveXPoSH COM component released with PrimalScript 2007 Service build 566 is now available as a free download from SAPIEN.com For more details please review this document: ActiveXPoSH.pdf ActiveXPoSH is free for personal and commercial use. You can download the installer from here.
Scripting/SysAdmin Meme
I saw that Kirk Munro called me out on on Steven Muraski’s Scripting/SysAdmin meme . Here’s my contribution to the meme.
Use PowerShell in your VBScript code
Are you a VBScript user looking to leverage some of PowerShell’s cool new capabilities – but aren’t ready to move entirely to PowerShell? Perhaps you have an older VBScript that needs some minor new functionality that you just KNOW would be easier in PowerShell – but you don’t have time to convert the entire script? […]
Best Practices
We’re beginning to collect scripting best practice recommendations at http://www.scriptinganswers.com/essentials/index.php/category/best-practices/; you’ll also find additional PowerShell-specific best practices (including those related to PowerShell development, rather than scripting), at www.powershellcommunity.org. Best practices are a way for you to benefit from the hard-earned lessons learned by others, and are usually a great way to produce more professional scripts than […]
ADM Template for Windows Script Host TrustPolicy
Download the template, which can be imported into Group Policy to centrally control Windows Script Host TrustPolicy. Note: After importing, if you see the containers but not the settings, you need to enable the advanced view options. These settings are “tatooed” into the registry, not controlled like normal Settings.