Can the copy-item cmdlet be used to copy public folders to C: ?

Can the copy-item cmdlet be used to copy public folders to C: ?

Post by Sm9zaEdmcm » Fri, 06 Jun 2008 09:51:00


Copying public folders via Outlook has a limitation on the number of
items/emails that can be copied at once. When you have a large number of
items, this makes copying very difficult to do manually. I'm hoping
Powershell can do this better.

1. Is the copy-item cmdlet usable with public folders?

2. Can the copy-item cmdlet be used to copy an Exchange public folder to the
regular file system (i.e. C:\ drive)?

3. If the copy-item cmdlet cannot do this, is there a different command in
Powershell that would be sufficient for this purpose?

Our Specs:
Exchange 2007
Windows 2003 x64 Edition

Thanks for any information and ideas,

Josh
SERA Architects
 
 
 

Can the copy-item cmdlet be used to copy public folders to C: ?

Post by UmljaFMgW0 » Fri, 06 Jun 2008 16:23:03

I don't think you will be able to do this as the public folder is held within
an Exchange database which isn't exposed as a drive via a provider. I'm not
aware of anything in PowerShell that would do this for you

--
Richard Siddaway
All scripts are supplied "as is" and with no warranty
PowerShell MVP
Blog: http://www.yqcomputer.com/
PowerShell User Group: http://www.yqcomputer.com/

 
 
 

Can the copy-item cmdlet be used to copy public folders to C: ?

Post by Hal Rotten » Fri, 06 Jun 2008 22:06:59


Sounds like a great idea for a codeplex project though...


--
Author, Tech Prosaic blog ( http://www.yqcomputer.com/ )
Webmaster, Psi ( http://www.yqcomputer.com/ )
Community Director, PowerShellCommunity.org
Co-host, PowerScripting Podcast ( http://www.yqcomputer.com/ )
 
 
 

Can the copy-item cmdlet be used to copy public folders to C: ?

Post by Marco Shaw » Fri, 06 Jun 2008 22:58:56


At first glance, I'm not able to see how to view a public folder, but if
you can see it in your Outlook client, then there's a good chance you
can use Outlook automation to get to the items:

http://www.yqcomputer.com/

Marco

--
Microsoft MVP - Windows PowerShell
http://www.yqcomputer.com/

PowerGadgets MVP
http://www.yqcomputer.com/

Blog:
http://www.yqcomputer.com/
 
 
 

Can the copy-item cmdlet be used to copy public folders to C: ?

Post by x0 » Fri, 06 Jun 2008 23:50:40

On Jun 4, 8:51 pm, JoshGfromPortland


Hi Josh

If you have a sharepoint instance running somewhere, you can use:

http://www.yqcomputer.com/

...to put your public folders into a sharepoint site. You can then
copy them out of sharepoint to a local drive quite easily as all
sharepoint sites can be accessed via UNC syntax to expose the files
within (allowing you to do a drag and drop via explorer).

I can't offer you any help with this tool as I've never used it, but I
just remembered it from finding it in the process of looking for
something else ;-)

btw, if you don't have sharepoint anywhere, your Windows Server 2003
can add a local instance as a feature very easily (WSS 2.0).

Hope this helps,

- Oisin
 
 
 

Can the copy-item cmdlet be used to copy public folders to C: ?

Post by Karl Pross » Sun, 08 Jun 2008 13:52:48

I think your best bet would be scripting outlook via COM. there might be
a dotnet interface to outlook as well. but searching for this against
powershell is probably going to be hard, so i'd search for scripting
outlook with vbscript or something and adapt.
 
 
 

Can the copy-item cmdlet be used to copy public folders to C: ?

Post by Marco Shaw » Tue, 10 Jun 2008 11:02:06


Yeah, there's a .NET interface to Outlook ("VSTO"?)... *But*, I'm pretty
sure it is just done via a wrapper for COM (tlbimp.exe?).

So just talk directly to COM from PowerShell...

Marco

--
Microsoft MVP - Windows PowerShell
http://www.yqcomputer.com/

PowerGadgets MVP
http://www.yqcomputer.com/

Blog:
http://www.yqcomputer.com/