Monthly Archives: January 2009

Live Writer Problem

Just come across an odd problem with Live Writer.  Experimenting with the copy-script function from http://blogs.msdn.com/powershell/archive/2009/01/13/how-to-copy-colorized-script-from-powershell-ise.aspx I created a simple script and ran the copy script command and tried to paste into Live Writer.  No go.  Live Writer stops working!! … Continue reading

Posted in Uncategorized | 2 Comments

XML to Word

Found an interesting challenge on the WinIT magazine forum.  Take an XML file <recipe name="bread" prep_time="5 mins" cook_time="3 hours"> <title>Basic bread</title> <ingredient amount="8" unit="dL">Flour</ingredient> <ingredient amount="10" unit="grams">Yeast</ingredient> <ingredient amount="4" unit="dL" state="warm">Water</ingredient> <ingredient amount="1" unit="teaspoon">Salt</ingredient> <instructions> <step>Mix all ingredients together.</step> <step>Knead … Continue reading

Posted in Powershell | Leave a comment

Certificate Lifespan

Eileen has posted about a fairly long life span for one of the certificates on her machine – http://blogs.technet.com/eileen_brown/archive/2009/01/29/a-very-trusted-certificate.aspx If you want to find the certificate that will last the longest on your machine – PowerShell is there for you … Continue reading

Posted in Powershell | Leave a comment

CTP 3 – More functions

I realised after my post on advanced functions that I am getting ahead of myself.  Part of what I wanted to do was take the functional code in the original script and wrap it up to make it moe production … Continue reading

Posted in PowerShell V2 | Leave a comment

PowerShell Homework: The answer

In this post – http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!2006.entry – I mentioned the puzzle set by Jeffrey Hicks in his PowerShell column. If you want the answer it is available at – http://mcpmag.com/columns/article.asp?editorialsid=2977   Technorati Tags: PowerShell

Posted in Powershell | Leave a comment

Live Writer

I have been using Live Writer for a while now and it is pretty good.  The latest version has some good improvements like a preview pane and the ability to see and work with the source. Major gripe is that … Continue reading

Posted in Microsoft | 2 Comments

CTP 3 .NET 3.5 SP 1

Lesson number 1 – Read the Release Notes properly. Went to use the new Out-GridvView cmdlet in CTP 3 and discovered that I needed .NET 3.5 SP1.  I knew from CTP 2 that I needed .NET 3.5 so didn’t really … Continue reading

Posted in PowerShell V2 | Leave a comment

PowerShell Regular Expressions

I somehow ended up agreeing to do a session on Regular Expressions at an upcoming PowerShell UG meeting.  Not sure how it happened as RegEx is not my favourite topic.  I sort of started looking into it a while back … Continue reading

Posted in Powershell | Leave a comment

PowerShell abolishes Christmas

I was experimenting, OK I was playing around, with dates and decided to put in Christmas Day PS> $xmas = [datetime]"25/12/09"Cannot convert value "25/12/09" to type "System.DateTime". Error: "String was not recognized as a valid DateTime."At line:1 char:19+ $xmas = … Continue reading

Posted in Powershell | Leave a comment

PowerShell Homework

If you are just learning PowerShell and want to see how you are doing or you know PowerShell and want a problem to solve have a look at Jeffrey Hick’s Prof. PowerShell latest column at http://mcpmag.com/columns/article.asp?editorialsid=2963   Technorati Tags: PowerShell,puzzle

Posted in Powershell | Leave a comment