Display: Cloud | List
Most Popular Tags
Results (2 total) All > .net (x) > powershell (x)
TryParse sample using PowerShell (IPAddress.TryParse Method (System.Net))
# Try-Parse.ps1# Sample showing use of TryParse() method# Thomas Lee - tfl@psp.co.uk # Create an IP address variable# Note: the address used here seems irrelevant to what's sent to TryParse$ip1= [system.net.ipaddress] "127.0.0.1" # Try parsing an IP address$IpAddrString = "10.1.1.1"$ipok = [System.Net.Ipaddress]::TryParse($IpAddrString, [ref] $ip) # display resultsif ($ipok) {"The IP a
Last modified by Thomas Lee on 4/21/2008 5:36:28 PM
Tags:  .net  code  powershell
Windows PowerShell processing Mailitem from Inbox (PIA Version) (MailItem Object [Outlook 2007 Developer Reference])
Windows PowerShell Sampleusing the PIA (significantly faster at least in my tests on Vista) #using PIA - you probably want to check this first:# http://msdn2.microsoft.com/en-us/library/bb646840.aspx $outlook = New-Object Microsoft.Office.Interop:Outlook# 6 equals to Inbox according to# http://msdn2.microsoft.com/en-us/library/bb208072.aspx$olInbox = $outlook.Session.GetDefaultFolder(6)
Last modified by Thomas Lee on 4/28/2008 3:50:30 PM
Page view tracker