Monthly Archives: February 2009

PowerShell v1 to v2 changes

Jeffrey left a comment on this post http://richardsiddaway.spaces.live.com/blog/cns!43CFA46A74CF3E96!2084.entry regarding discovery of WMI classes.  He pointed out that if the line of PowerShell is changed to 001 Get-WMIObject -NameSpace root -Recurse -List *Printer*   that you can check all namespaces in one hit.  Recurse! where did … Continue reading

Posted in PowerShell V2 | Leave a comment

Discovering WMI

One thing that seems to come up rather frequently on the newsgroups is what WMI class do I need to use to do X. The really confusing thing about WMI is knowing just what is available. I have done far … Continue reading

Posted in PowerShell and WMI | 1 Comment

Learning PowerShell – 4 friends

When you start learning PowerShell you will find that it has a massive amount of self discovery built into the system. There are four cmdlets you find yourself using all of the time: Get-Help Get-Command Get-Member Get-PSDrive Oh.  You want … Continue reading

Posted in Powershell | Leave a comment

UK PowerShell UG meetings

Speakers for the next two meetings have been finalised. In March we will be bringing you: Jonathan Medd on the AD cmdlets in Windows Server 2008 R2 Alan Renouf on VMWare’s VI toolkit plus there will be an introduction to … Continue reading

Posted in PowerShell User Group | Leave a comment

Learning PowerShell

One of the subjects that came up at the PowerShell event last week was how do you go about learning PowerShell. If I was starting from scratch there are a number of things I would do: Download and install PowerShell  … Continue reading

Posted in Powershell | Leave a comment

User Group Live Meeting

7pm GMT on Thursday February 26th sees Rolf Masuch presenting a Live Meeting to the PowerShell User group.  Rolf runs the German PowerShell User Group. Bio: Rolf Masuch MCT 2008 & MCSE 2003 Messaging Product Manager IT Services, ABSC GmbH … Continue reading

Posted in PowerShell User Group | Leave a comment

Common parameters

I’ve been looking at the get-diskfreespace function over a number of posts. We’ve been looking a mixture of turning it into a production script and adding the advanced functionality from PowerShell v2.  In this post http://richardsiddaway.spaces.live.com/default.aspx?_c01_BlogPart=blogentry&_c=BlogPart&handle=cns!43CFA46A74CF3E96!2005 we added the [CmdletBinding()] … Continue reading

Posted in PowerShell V2 | Leave a comment

More colour syntax highlights

In this post – http://richardsiddaway.spaces.live.com/default.aspx?_c01_BlogPart=blogentry&_c=BlogPart&handle=cns!43CFA46A74CF3E96!2025 – I mentioned I had been experimenting with the copy script functionality so that I would get colour copypaste from PowerShell ISE.  There was a problem in that I couldn’t paste into Live Writer – … Continue reading

Posted in Uncategorized | Leave a comment

Enter the Clones

Following my comments about PowerShell being designed for the Jedi – http://richardsiddaway.spaces.live.com/default.aspx?_c01_BlogPart=blogentry&_c=BlogPart&handle=cns!43CFA46A74CF3E96!2066 – I discovered the Clones are now getting into the action – http://www.leeholmes.com/blog/MakingPerfectChangeWithTheFewestCoins.aspx Lee (of Cookbook fame) has a very nice script for working out the smallest number … Continue reading

Posted in Powershell | Leave a comment

Cultured Dates

In this post – http://richardsiddaway.spaces.live.com/default.aspx?_c01_BlogPart=blogentry&_c=BlogPart&handle=cns!43CFA46A74CF3E96!2007 – I talked about the way date strings had to be formatted when we were creating datetime objects – [datetime]”mm/dd/yyyyy” I have since discovered its a little bit more complicated than that.  If we start … Continue reading

Posted in Powershell | Leave a comment