-
Recent Posts
Archives
- May 2012 (26)
- April 2012 (21)
- March 2012 (65)
- February 2012 (94)
- January 2012 (54)
- December 2011 (17)
- November 2011 (11)
- October 2011 (15)
- September 2011 (39)
- August 2011 (57)
- July 2011 (58)
- June 2011 (65)
- May 2011 (53)
- April 2011 (25)
- March 2011 (12)
- February 2011 (18)
- January 2011 (27)
- December 2010 (2)
- November 2010 (14)
- October 2010 (13)
- September 2010 (1)
- June 2010 (11)
- May 2010 (31)
- April 2010 (29)
- March 2010 (19)
- February 2010 (31)
- January 2010 (28)
- December 2009 (11)
- November 2009 (40)
- October 2009 (2)
- September 2009 (8)
- August 2009 (21)
- July 2009 (21)
- June 2009 (27)
- May 2009 (32)
- April 2009 (24)
- March 2009 (41)
- February 2009 (42)
- January 2009 (34)
- December 2008 (30)
- November 2008 (40)
- October 2008 (42)
- September 2008 (52)
- August 2008 (40)
- July 2008 (35)
- June 2008 (38)
- May 2008 (29)
- April 2008 (32)
- March 2008 (59)
- February 2008 (43)
- January 2008 (47)
- December 2007 (30)
- November 2007 (62)
- October 2007 (54)
- September 2007 (43)
- August 2007 (44)
- July 2007 (55)
- June 2007 (57)
- May 2007 (55)
- April 2007 (43)
- March 2007 (61)
- February 2007 (50)
- January 2007 (21)
- December 2006 (7)
- November 2006 (16)
Categories
- .NET
- Active Directory
- Active Directory administration with PowerShell
- Architecture
- BITS
- Books
- COM
- Deep Dive
- DHCP
- DNS
- Events
- Exchange
- File system
- files
- Firewall
- General
- General IT matters
- IT Community
- IT Security
- Learning Powershell
- Math
- Microsoft
- Networking
- Office 2010
- Opinion
- Outlook
- Philosophy
- Powershell
- PowerShell and Active Directory
- PowerShell and Exchange 2007
- PowerShell and IIS
- PowerShell and SQL Server
- PowerShell and WMI
- Powershell Basics
- PowerShell User Group
- PowerShell V2
- PowerShell V3
- PSAM
- Rant
- Science Fiction
- Script of the Week
- Scripting
- SQL Server
- Strings
- Technology
- Uncategorized
- Virtualisation
- Walking
- Windows 7
- Windows 8
- Windows 8 Server
- Windows Server 2008
- Windows Server 2008 R2
- WPF
- WSH
Meta
Twitter
- Preparing for the next UG meeting - PowerShell in Server 2012 - too much to choose from 1 week ago
- Reading about regular expressions in #PowerShell . My head is exploding 1 week ago
- Sat in San Diego airport waiting to fly home after an awesome deep dive 3 weeks ago
- #PowerShell Deep Dive is over. Another awesome event. It's the only place I learn something from every session 3 weeks ago
- #PowerShell v3 jobs give many more options - results available across sessions in many cases 3 weeks ago
Category Archives: Office 2010
Outlook: removing calendar entries
We recently looked at dumping the Calendar entries http://msmvps.com/blogs/richardsiddaway/archive/2011/08/23/outlook-viewing-calendar-entries.aspx I usually leave entries to build up in the Calendar but a simple clean operation is to delete everything that occurred before a certain date function remove-calendaritem { param ( … Continue reading
Posted in Office 2010, Outlook
Leave a comment
Outlook: Viewing Calendar Entries
We have seen how to view emails – this is how to view items in your calendar function get-calendaritem { $outlook = New-Object -ComObject Outlook.Application get-mailfolders | where {$_.Path -like “*calendar*” -and $_.Path -notlike “*birthday*”} | foreach { $targetfolder = … Continue reading
Posted in Office 2010, Outlook
Leave a comment
Outlook: sending emails
We’ve looked at examining the email folders and their contents, as well as cleaning out old emails. Its time to look at sending emails. This function shows the skeleton of the process function send-mailitem { param ( [string]$to, [string]$from, [string]$subject, … Continue reading
Posted in Office 2010, Outlook
Leave a comment
Outlook: deleting mail items
As promised here is the function to delete mail items in a specific folder function remove-mailitem { [CmdletBinding(SupportsShouldProcess=$true)] param ( [parameter(Mandatory=$true)] [string]$mailfolder, [datetime]$start, [datetime]$finish ) if ($start -and $finish){ if ($start -ge $finish){Throw “Finish $($finish) before Start $($start)”} } $outlook … Continue reading
Posted in Office 2010, Outlook, PowerShell V2, Windows 7
1 Comment
Outlook: Viewing mail items
Continuing our perambulation around Outlook when used with multiple hotmail accounts its time to look at the other folders and the mail items they contain. This post will show how to view the mail items and a future post will … Continue reading
Posted in Office 2010, Outlook, PowerShell V2, Windows 7
Leave a comment
Clearing junk mail
Getting back to looking at working with Outlook we can adapt the function used to deleted the contents of the Deleted Items folder to work with the Junk mail folders function clear-junkmail { $outlook = New-Object -ComObject Outlook.Application get-mailitemcount -junk … Continue reading
Posted in Office 2010, Outlook, PowerShell V2, Windows 7
Leave a comment
Outlook folder item count revisited
I started this series http://msmvps.com/blogs/richardsiddaway/archive/2011/07/30/outlook-connector-amp-mail-folder-item-count.aspx by looking at how we could enumerate the mail folders in Outlook 2010 when I had had four hotmail accounts open. The function has been modified since then function get-mailitemcount { param ( [parameter(ParameterSetName="All")] [switch]$all, … Continue reading
Posted in Office 2010, Outlook, PowerShell V2, Windows 7
Leave a comment
Emptying the Deleted folders–version 2
The original version of this function only did one pass at deleting and had to iterate through all of the folders to find the Deleted Items folder. This time we use the collection of folders we created using the get-mailfolders … Continue reading
Posted in Office 2010, Outlook, PowerShell V2, Windows 7
Leave a comment
Outlook folders
The functions we’ve seen so far have involved iterating through the whole set of Outlook folders. That’s a lot of folders (I have 4 email accounts with lost of folders). The trick is to do this just once and then … Continue reading
Posted in Office 2010, Outlook, PowerShell V2, Windows 7
Leave a comment
Emptying the Deleted Items Folder
Continuing our look at scripting against Outlook & the hotmail connector Many of the emails I get end up being read once and deleted. This leaves a ton of stuff in the deleted items folders. Periodically I’ll clean these up. … Continue reading
Posted in Office 2010, Outlook, PowerShell V2, Windows 7
Leave a comment