Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

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

Reply
 
Old 06-04-2008   #1 (permalink)
JoshGfromPortland


 
 

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

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

My System SpecsSystem Spec
Old 06-05-2008   #2 (permalink)
RichS [MVP]


 
 

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

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://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"JoshGfromPortland" wrote:
Quote:

> 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
My System SpecsSystem Spec
Old 06-05-2008   #3 (permalink)
Hal Rottenberg


 
 

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

RichS [MVP] wrote:
Quote:

> 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
Sounds like a great idea for a codeplex project though...


--
Author, Tech Prosaic blog (http://halr9000.com)
Webmaster, Psi (http://psi-im.org)
Community Director, PowerShellCommunity.org
Co-host, PowerScripting Podcast (http://powerscripting.net)
My System SpecsSystem Spec
Old 06-05-2008   #4 (permalink)
Marco Shaw [MVP]


 
 

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

JoshGfromPortland wrote:
Quote:

> 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
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://blogs.msdn.com/jmanning/archi...utomation.aspx

Marco

--
Microsoft MVP - Windows PowerShell
http://www.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 06-05-2008   #5 (permalink)
Oisin (x0n) Grehan [MVP]


 
 

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

On Jun 4, 8:51 pm, JoshGfromPortland
<JoshGfromPortl...@xxxxxx> wrote:
Quote:

> 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
Hi Josh

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

http://www.codeplex.com/pfmigration/...ReleaseId=7674

....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
My System SpecsSystem Spec
Old 06-07-2008   #6 (permalink)
Karl Prosser[MVP]


 
 

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

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.

JoshGfromPortland wrote:
Quote:

> 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
My System SpecsSystem Spec
Old 06-08-2008   #7 (permalink)
Marco Shaw [MVP]


 
 

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

Karl Prosser[MVP] wrote:
Quote:

> 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.
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.microsoft.com/mvp

PowerGadgets MVP
http://www.powergadgets.com/mvp

Blog:
http://marcoshaw.blogspot.com
My System SpecsSystem Spec
Old 06-09-2008   #8 (permalink)
JoshGfromPortland


 
 

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

Thanks for the suggestion. That software utillity you recommended is able to
connect to our public folders. When I try to browse to a shared documents
folder on my Sharepoint server, or any other location on my Sharepoint
server, the scroll bar starts moving wildly and then the software utility
crashes without error.

I may be able to add a Sharepoint folder to Outlook and drag and drop from
the public folders perhaps.

I'm not familiar with accessing or using COM or COM via Powershell. I have
no background in using COM.

"Oisin (x0n) Grehan [MVP]" wrote:
Quote:

> On Jun 4, 8:51 pm, JoshGfromPortland
> <JoshGfromPortl...@xxxxxx> wrote:
Quote:

> > 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
>
> Hi Josh
>
> If you have a sharepoint instance running somewhere, you can use:
>
> http://www.codeplex.com/pfmigration/...ReleaseId=7674
>
> ....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
>
My System SpecsSystem Spec
Old 06-09-2008   #9 (permalink)
Marco Shaw [MVP]


 
 

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

Quote:

> I'm not familiar with accessing or using COM or COM via Powershell. I have
> no background in using COM.
I'll give it another try tomorrow to see if I can show some working code.

I don't have access to Outlook right now...

Marco
My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
Copy-Item : Container cannot be copied onto existing leaf item. PowerShell
copy-item changing files attributes on network copy failures PowerShell
copy-item down through folders PowerShell
Getting Copy-Item to display messages (like the old COPY command in CMD.EXE) ?? PowerShell
Copy-Item or Copy-ItemProperty and Remote Registry. PowerShell


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46