PowerShell InputBox

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.

Read More

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.

Read More

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 […]

Read More

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…

Read More

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? […]

Read More

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 […]

Read More

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.

Read More

Search

Enter any query and press enter
Advanced search operators:
+ ⟶ Term must appear
- ⟶ Term must not appear
"" ⟶ Exact string must appear
How do I use these?

Join our mailing list

Enter your email address to subscribe to our mailing lists for Monthly Blog Digests, Product Announcements and more (you can choose which you receive once you sign-up!)

Tags

Categories

Archives

Dashboard