# Requires –Version:2.0 # Get-EvenNumber.ps1 # Gets an even number # Demonstrates Version 2 functionality # Updates Andget-=y Schneider's example at # http://get-powershell.com/2008/12/23/industrial-strength-functions-in-powershell-v2-ctp-3/ function...
# Requires -Version 2.0 # Get-IPAddress.ps1 # Parses an address, returns a System.NET.IPAddress if OK # Thomas Lee - tfl@psp.co.uk $strings = " 10.1.1.100 " , " 10.1 " , " fooey " foreach ( $string in $strings ){ try { $address = [System.Net.IPAddress] :: parse( $string...