Monthly Archives: March 2017

PowerShell v6

Tried PowerShell v6 yet? Its the open sourced latest version of PowerShell – runs on Windows, Linux (various flavours) and MacOS Its available from – https://github.com/PowerShell/PowerShell Before you get too excited there’s a few things you need to remember: – … Continue reading

Posted in Powershell | Leave a comment

Summit 2017–one week to go

With one week to go before travelling to Seattle for the 2017 PowerShell & DevOps Summit I’m putting the finishing touches to my presentations and the Summit organisation. The agenda was published last October but we’ve had to make a … Continue reading

Posted in Powershell, Summit | Leave a comment

Name mismatch

Ever wondered why you can’t do this: Get-ADComputer -Filter * -SearchBase ‘OU=Servers,DC=Manticore,DC=org’ | Get-CimInstance -ClassName Win32_OperatingSystem The –ComputerName parameter on get-CimInstance accepts pipeline input BUT its by property name. PS> Get-Help Get-CimInstance -Parameter ComputerName -ComputerName [<String[]>]     Specifies computer on … Continue reading

Posted in PowerShell and Active Directory, PowerShell and CIM | Leave a comment

Get-SupportedFileSystems

I stumbled on the Get-SupportedFileSystems cmdlet today. Its part of the Storage module and is defined as a function. Digging a bit further its from a CDXML module based on a CIM class. But which CDXML file contains the definition? … Continue reading

Posted in CDXML, CIM, Powershell, PowerShell and CIM | Leave a comment

PowerShell Summit 2017–Community Lightning Demos

Early Summits, and their precursors – the PowerShell Deep Dives – featured Lightning rounds where attendees had 10 minutes or so to present something PowerShell related – a tip, trick, discovery, cool piece of code, new technique etc etc etc … Continue reading

Posted in Powershell, Summit | Leave a comment

Updating built in modules

Windows 10 and Server 2016 automatically install a module called Pester which is used for testing code. Its the foundation of Test Driven Development or Behaviour Driven Development using PowerShell. The version  installed by default is 3.4.0. Pester is originally … Continue reading

Posted in PowerShell v5, Windows 10, Windows Server 2016 | Leave a comment

Hyper-V book deal

March 11 2017 – My book Learn Hyper-V in a Month of Lunches is Manning’s Deal of the day. Get 50% off using code dotd031117au at http://bit.ly/2niU715 Also see https://www.manning.com/dotd

Posted in Books, Hyper-V, Powershell | Leave a comment

Windows 10 uptime

One of the things that managers seem to be fascinated with is up time. For Windows server operating systems its a fairly simple calculation PS>  (Get-Date) – (Get-CimInstance -ClassName Win32_OperatingSystem | select -ExpandProperty LastBootUpTime) Days              : 0 Hours             : 3 … Continue reading

Posted in Powershell, Windows 10 | Leave a comment

Full Summit agenda available

The full agenda – including the PowerShell team sessions – is now available on the event web site – – https://eventloom.com/event/home/summit2017 This is our biggest ever Summit. We’ve sold out for this year and are already making plans for next … Continue reading

Posted in Powershell, Summit | Leave a comment

Modifying AD users in bulk

Modifying AD users in bulk involves either setting one or more properties to the same value for a set of users or reading in the values you need from a data source of some kind. We prepared some test data … Continue reading

Posted in PowerShell and Active Directory, Powershell Basics | Leave a comment