header image

Archive for November, 2011

UK PowerShell Group meeting – Jonathan Medd on “Whats new in PowerCLI 5” details from http://msmvps.com/blogs/richardsiddaway/archive/2011/11/05/powershell-user-group-22-november.aspx

under: PowerShell User Group, Virtualization

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 you use Select-Object to create the calculated field the results are an object on the […]

under: PowerShell Basics

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 form of Enterprise Architecture bodies; we have patterns and reference architecture and the body of […]

under: Architecture, Opinion

Swapping virtual switches

Posted by: | November 14, 2011 | No Comment |

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 or connected via a cross over cable. The VM nics are bound to the “server” […]

under: Hyper-V, PowerShellV2

Patch Tuesdays 2012

Posted by: | November 13, 2011 | No Comment |

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 January 2012 14 February 2012 13 March 2012 10 April 2012 08 May 2012 12 […]

under: IT Security, PowerShell original

Set registry key owner

Posted by: | November 11, 2011 | 1 Comment |

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 pre-Vista operating systems. function set-regkeyowner { [CmdletBinding()] param ( [parameter(Mandatory=$true)] [string] [Validateset(“HKCR”, “HKCU”, “HKLM”, "HKUS", […]

under: .NET, Registry

This builds on adding an IPv4 address – http://msmvps.com/blogs/richardsiddaway/archive/2011/10/24/hosts-file-add-a-record.aspx 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 = Get-Content -Path $file $data += "$IPAddress $computer" Set-Content -Value $data -Path $file -Force -Encoding ASCII […]

under: Networking, PowerShellV2

If I run ipconfig on my system the partial results are this Wireless LAN adapter Wireless Network Connection:    Connection-specific DNS Suffix  . : tiscali.co.uk    Link-local IPv6 Address . . . . . : fe80::6d95:b824:6a72:a0a9%11    IPv4 Address. . . . . . . . . . . : 192.168.1.2    Subnet Mask . […]

under: Networking, PowerShell and WMI

When: Tuesday, Nov 22, 2011 9:00 PM (GMT)Where: Live Meeting *~*~*~*~*~*~*~*~*~* PowerShell MVP and PowerCLI Jonathan Medd discusses the new features and PowerCLI 5 and how to get the best from them Notes Richard Siddaway has invited you to attend an online meeting using Live Meeting.Join the meeting.Audio InformationComputer AudioTo use computer audio, you need […]

under: PowerShell User Group

Working with IPv6

Posted by: | November 5, 2011 | No Comment |

A comment was left on one of the articles in my recent series on working with the hosts file asking about using IPv6.  I’ve not used it really as I’ve never had any reason but it seems a good idea to dig into it a bit as IPv6 is enabled by default in Windows Vista […]

under: Networking, PowerShell and WMI, PowerShellV2

Older Posts »

Categories