Sometimes it’s the little things that can make life easier. Here’s one of them. We know that PowerShell treats comma separated items as an array:
PS C:\> $a=”a”,1,”b”,”jeff”,4
PS C:\> $aa1bjeff4PS C:\>
But what if you want back in its…
Read More
Of course since I’ve posted a VBScript version of the Tree command, I had to do it in PowerShell. On one hand, this would have been pretty straightforward since PowerShell can use COM objects and I could have simply reused…
Read More
One of the first CMD commands I fell in love with (yes I’m that geeky) was TREE. When executed from a command prompt it would give you a nice graphical representation of the directory structure. Never being satisfied I wrote…
Read More
I’m in the middle of running our online PowerShell Fundamentals class. The Intermediate class starts April 6. Registration ends on March 30th, or until the class fills up. Class size is limited. You can register for the class at ScriptingOutpost.com.…
Read More
My latest Prof. PowerShell column has a function that takes a computername as pipelined input. It then returns a custom object showing free space on drive C:\. The point of the column was to demonstrate how to make a function…
Read More
This topic came up recently in the PowerShell forum at ScriptingAnswers.com and I thought you might find it helpful. The issue was creating a file share remotely. In the “olden days”, this would have meant using a command line tool…
Read More
In a recent discussion in the PowerShell forum at ScriptingAnswers.com, a member was trying to parse the HOSTS file on a number of desktops. This is a thankless but probably useful task that seems perfectly suited to a scripted solution.…
Read More
Thanks to Christian Glessner for letting me know of a change to the Twitter API. This necessitated a change in my Out-Twitter script. There’s been a lot of movement in the PowerShell world with Twitter these days. Be sure to…
Read More
In case you missed it, SAPIEN will be running it’s popular series of online classes for Windows PowerShell. The first Fundamentals class starts March 10 and will run for 4 weeks. We’ll meet online twice a week to go over…
Read More
The other day I wrote an entry about using the Dictionary object in VBScript . I alluded to how you could use a hash table in PowerShell. Let me show you how and I think you’ll also appreciate how much…
Read More