Hal Rottenberg’s Managing VMware Infrastructure with Windows PowerShell is now available as PDF eBook on ScriptingOutpost.com. It is also available as a print + eBook combo. Check out Hal’s book and all of the other SAPIENPress books available on ScriptingOutpost.com.…
Read More
Associating a file type with a specific application has always been fairly easy to do under the various incarnations of Windows. Basically, you can right-click on a file of the type you wish to use, select the Open With |…
Read More
I recently guest-hosted Episode 69 the PowerScripting Podcast. One of the items we discussed was a port scanning script from TheAdminGuy blog. Here’s the original script: http://theadminguy.wordpress.com/2009/04/30/portscan-with-powershell/. As written, there’s nothing technically wrong with it. The script gets the job…
Read More
I was helping a member out in the PowerShell forum at ScriptingAnswers.com. He was trying to create a multistring registry entry on a remote computer using the .NET registry classes. Creating registry values is really not that complicated. Here’s a…
Read More
In case you missed this recent SAPIEN newsletter, here’s my one liner for this month.
I have a quick one-liner that will create a random filename with a preferred file extension in a folder that you specify. By default the…
Read More
In my recent Special Forces PowerShell class, one of the students brought up a challenge he was facing when we were talking about the -f replacement operator. This is a handy way to build strings.
PS C:\> “Hello, {0}. It…
Read More
A few days ago I posted a blog entry on simple regular expression replacements in VBScript. Let me show you a more complex example. It helps to have a purpose, even for demonstration so my need is to convert an…
Read More
I seem to find my self turning to regular expressions more often these days, often to help out a fellow scripter in one of the many scripting forums I keep tabs on. I thought I’d take a moment and provide…
Read More
I’ve been dealing with the topic of enumerating local group membership in several PowerShell forums from different people. My responses have pretty much been the same. But if these people are asking its a safe bet there are others who…
Read More
A few weeks ago I posted a PowerShell script that created a directory tree, like the TREE command from the CMD shell. Then while testing something new in PrimalForms, I realized I had a literal form object, a tree view,…
Read More