header image

Archive for January, 2016

PowerShell conferences 2016

Posted by: | January 16, 2016 Comments Off on PowerShell conferences 2016 |

April is going to be a very busy month. It starts with the PowerShell plus DevOps Global Summit in Bellevue, Washington – https://eventloom.com/event/login/PSNA16   The PowerShell Conference EU 2016 follows later in the month – http://www.psconf.eu/   I’ll be speaking and running pre-conference workshops at both events. Hope to see you at one or the […]

under: PowerShell

European PowerShell conference 2016

Posted by: | January 12, 2016 Comments Off on European PowerShell conference 2016 |

PowerShell Conference EU combines the former “Deutsche PowerShell Konferenz” and “PowerShell Summit EU” into one great big 3-day PowerShell event for Admins and DevOps in Europe and takes place April 20-22 in Hannover/Germany. With more than 40 international speakers including PowerShell inventor Jeffrey Snover, and more than 60 sessions, you are cordially invited to join […]

under: PowerShell

Testing against an arrays contents

Posted by: | January 11, 2016 Comments Off on Testing against an arrays contents |

You may need to test if a value is a member of an array. PowerShell provides 2 operators for testing array membership  – -   -in and –contains. Simple usage is like this   PS> $colours = ‘red’, ‘orange’, ‘yellow’, ‘green’, ‘blue’, ‘indigo’, ‘violet’   PS> ‘blue’ -in $colours True PS> $colours -contains ‘blue’ True   […]

under: PowerShell Basics

WMI discovery

Posted by: | January 8, 2016 Comments Off on WMI discovery |

I’ve been working with System Center Configuration Manager this week. SCCM uses a lot of WMI. However, WMI discovery is still a bit of an art.   I needed to find the SMS_SCI_Component class.   If you know the namespace you can easily find the classes in that namespace but namespaces are hierarchical so you […]

under: PowerShell and CIM, PowerShell and WMI

Starting to use PowerShell

Posted by: | January 4, 2016 Comments Off on Starting to use PowerShell |

A common question goes along the lines of  “I’ve leant PowerShell (from class, book etc) but what do I do next?”   The usual answer is to pick a problem in your organisation and solve it.   I’ve provided an example in this UK TechNet blog post http://blogs.technet.com/b/uktechnet/archive/2016/01/04/starting-your-powershell-journey.aspx   Its the second one of a […]

under: PowerShell Basics

2015 December Scripting Games Puzzle

Posted by: | January 2, 2016 Comments Off on 2015 December Scripting Games Puzzle |

The December 2015 puzzle was based on the 12 Days of Christmas song.  Starting with this here-string. $list = @" 1 Partridge in a pear tree 2 Turtle Doves 3 French Hens 4 Calling Birds 5 Golden Rings 6 Geese a laying 7 Swans a swimming 8 Maids a milking 9 Ladies dancing 10 Lords […]

under: PowerShell Basics, Scripting Games

Happy New Year 2016

Posted by: | January 2, 2016 Comments Off on Happy New Year 2016 |

A new year and a number of things to which we can look forward. The re-release of WMF 5.0. The WMF 5.0 download was pulled because a bug was over writing the module path. Look fot the download being available again soon. Windows Server 2016 – Containers and Nano server give lots of new options […]

under: PowerShell

« Newer Posts

Categories