header image

Archive for January, 2009

Live Writer Problem

Posted by: | January 31, 2009 | No Comment |

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!! I can paste the script into Word and then do another cut and paste but […]

under: PowerShell v2

XML to Word

Posted by: | January 30, 2009 | No Comment |

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 thoroughly.</step> <step>Cover with a cloth, and leave for one hour in warm room.</step> <step>Knead again.</step> […]

under: PowerShell original

Certificate Lifespan

Posted by: | January 29, 2009 | No Comment |

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 Get-ChildItem -Path Cert: -Recurse | Sort Notafter -Descending | Select -First 1 | Format-List use […]

under: PowerShell original

CTP 3 – More functions

Posted by: | January 29, 2009 | No Comment |

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 orientated.  I suspect like many I tend to write scripts to do a job and […]

under: PowerShellV2

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

under: PowerShell original

Live Writer

Posted by: | January 27, 2009 | No Comment |

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 I can’t set a default font.  It keeps reverting to Verdana which I hate. One […]

under: Microsoft

CTP 3 .NET 3.5 SP 1

Posted by: | January 27, 2009 | No Comment |

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 pick up on the SP1 Download and install it from here http://www.microsoft.com/downloads/details.aspx?FamilyId=AB99342F-5D1A-413D-8319-81DA479AB0D7&displaylang=en You will also […]

under: PowerShellV2

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 but got distracted. I was browsing round some of my blog links and it seems […]

under: PowerShell original

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 = [datetime] <<<< "25/12/09"    + CategoryInfo          : NotSpecified: (:) [], RuntimeException    + FullyQualifiedErrorId : RuntimeException Oops […]

under: PowerShell original

PowerShell Homework

Posted by: | January 25, 2009 | No Comment |

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

under: PowerShell original

Older Posts »

Categories