Monthly Archives: November 2011

UK PowerShell Group November–reminder

UK PowerShell Group meeting – Jonathan Medd on “Whats new in PowerCLI 5” details from

Posted in PowerShell User Group, Virtualisation | Leave a comment

Using calculated fields in subsequent processing

A calculated field can be created in Select-Object or Format-Table. When you use Format-Table processing effectively stops, the pipeline terminates and you are dumping the results to screen. The objects produced by Format-Table are not meant for further processing. If … Continue reading

Posted in Powershell Basics | Leave a comment

Infrastructure Architecture–from the Middle Ages to Now

i often wonder about how we go about performing Infrastructure Architecture in particular and Architecture in general. We spend a lot of time and effort creating frameworks such as Zachman and TOGAF; we create large bodies of data in the … Continue reading

Posted in Architecture, Opinion | Leave a comment

Swapping virtual switches

Virtualisation is a great technique for creating demo labs. I took my laptop with a bunch of VMs of Windows 8/Server 8 to the PowerShell Deep Dive.  Normally I run my “server” laptop and my development laptop on a switch … Continue reading

Posted in PowerShell V2, Virtualisation | 2 Comments

Patch Tuesdays 2012

I’ve shown these functions before but as we head rapidly towards 2012 we need to plan next years schedules.  One perennial for Windows administrators is patching – therefore we need to know patch Tuesdays. This is next years offenders 10 … Continue reading

Posted in IT Security, Powershell | Leave a comment

Set registry key owner

In chapter 7 of PowerShell and WMI I stated that I would post a .NET version of a script to set ownership of a registry key. The WMI method needs Vista or above so we need the .NET version for … Continue reading

Posted in .NET, IT Security, PowerShell V2 | Leave a comment

Hosts file – add an IPv6 address

This builds on adding an IPv4 address – function add-IPv6hostfilecontent { [CmdletBinding()] param ( [parameter(Mandatory=$true)] [string]$IPAddress, [parameter(Mandatory=$true)] [string]$computer ) $file = Join-Path -Path $($env:windir) -ChildPath “system32\drivers\etc\hosts” if (-not (Test-Path -Path $file)){ Throw “Hosts file not found” } $data = … Continue reading

Posted in Networking, PowerShell V2 | 1 Comment