Monthly Archives: June 2010

Suspended

I won’t be posting here for a while – until the current issues are sorted out.   Please see http://msmvps.com/blogs/RichardSiddaway/Default.aspx for all your PowerShell posts. Advertisements

Posted in Uncategorized | Leave a comment

Upgrade?

Live.com has been upgraded – biggest change seems to be to the SkyDrive and we now get the ability to use Web versions of Office. May or may not be useful. Big downside is that the statistics on the blog have … Continue reading

Posted in General | Leave a comment

Ranged letters

While I was playing around with the range operator I thought of this 001002003004005 $start = [byte][char]"a"$finish = [byte][char]"h" $start..$finish | foreach {New-Item -Path c:test -Name "file$([char]$_).txt" -ItemType File}   Define your start and finish letters. Convert each to a char and then a byte.  This gives us the numeric value of the … Continue reading

Posted in PowerShell V2 | Leave a comment

Using Range operator to generate letters

The range operator is used to generate a sequential set of numbers 1..10 | foreach {$_} if we try this with letters PS> a..j | foreach {$_}The term ‘a..j’ is not recognized as the name of a cmdlet, function, script … Continue reading

Posted in PowerShell V2 | Leave a comment

Using the range operator

One of the events in this years scripting games involved creating a set of files.  Many of the entries did something like this 001002003 $files = @("file1.txt", "file2.txt", "file3.txt", "file4.txt", "file5.txt", "file6.txt", "file7.txt", "file8.txt", "file9.txt", "file10.txt")foreach ($file in $files) {New-Item -Path c:test -Name $file -ItemType File}   A list of files is created and a foreach is used to call New-Item.  … Continue reading

Posted in PowerShell V2 | Leave a comment

Code in Posts

I’ve been asked a couple of times recently how I put the colour highlighted code into the posts on my blog(s). I create the posts using Live Writer. The scripts are usually developed in PowerShell ISE.  I have a script … Continue reading

Posted in PowerShell V2 | Leave a comment

PowerShell in Practice – published

The book is finally complete and available in its final form.  The ebook is available now from http://www.manning.com/siddaway/ and the print version will be available 7 June 2010. Enjoy

Posted in PowerShell V2 | Leave a comment