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 -
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 few changes recently to cover for speakers that have...
Name mismatch

Ever wondered why you can’t do this:
Get-ADComputer -Filter * -SearchBase 'OU=Servers,DC=Manticore,DC=org' | Get-CimInstance -ClassName Win32_OperatingSystemThe –ComputerName parameter on get-CimInstance accepts pipeline input BUT its by property name.
PS> Get-Help...
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?
PS> Get-ChildItem -Path...
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 … Summit 2017 brings that concept back. If...
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 an open source module that...
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 https://bit.ly/2niU715 Also see https://www.manning.com/dotd
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 :...
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....
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 in the last post so lets see how we use it.
$users = Import-Csv -Path...