# 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...
# Requires -Version 2.0 # Add-DomainUserToLocalAdministatorsGroup.ps1 # Add a domain user to a Local Administrator's group # Thomas Lee - tfl@psp.co.uk # Based on http://powershell.com/cs/media/p/380.aspx, with some error checking # Setup up information on user to add,etc $Domain = " Cookham...
Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> # REQUIRES -Version 2 # Validate-DocumentPackage.ps1 # Validate an Office XML Package # Essentially the C# sample at: http://msdn.microsoft.com/en-us/library/bb497334.aspx # Thomas Lee - tfl@psp.co...