Sign in
|
Join PowerShell.com!
|
Help
Home
PowerTips
Ask the Experts
Forums
Webcasts
Blogs
eBookV2
Script Library
Twitter Grid
Code MarkUp Tool
All Tags
»
COM
»
copy-item
(
RSS
)
Browse Forum Posts by Tags
Showing related tags and posts for the
PowerShell for Windows
forum. See
all tags in the site
file
mail
powershell
How can I back up Outlook folder contents using powershell?
I found a script using Technet and Google. $outlook = New-Object -comObject Outlook.Application $olJunk = $outlook.Session.GetDefaultFolder(23) $($olJunk.Items) | %{$_.Delete()} It turns out it does actually empty the junk mail folder. I guess each default folder is assigned a numerical value. What I'm...
Posted to
PowerShell for Windows
(Forum)
by
jwhite
on 04-12-2011
Filed under: powershell, COM, copy-item, mail, file
Page 1 of 1 (1 items)
Copyright 2012 PowerShell.com. All rights reserved.