Remove personal contacts script

Status
Not open for further replies.

alan_000

Member
Dont know if anyone can help or has had this problem. We have imported a pst file with contacts into selected directors profiles on exchange server 2007. The contacts all go into the same folder "Directors" within the contacts folder. Is there a way I can script the removal of the "Directors" folder for the people who have this in there contacts?

Many thanks in advance
 

larry

Senior Member
Outlook version
Outlook 2010 64 bit
Email Account
Exchange Server

alan_000

Member
Hi thanks for pointer but must be doing something wrong I have tried the below and pasted error message.

Get-User user | Export-Mailbox -PSTFolderPath c:\user.pst -TargetFolder "\Contacts\Stores"

Export-Mailbox : Parameter set cannot be resolved using the specified named par

ameters.

At line:1 char:34

+ Get-User user | Export-Mailbox <<<< -PSTFolderPath c:\user.pst -TargetFol

der "\Contacts\Stores"

Then I tried this

Export-Mailbox -Identity user@mydomain.co.uk -PSTFolderPath c:\user.pst

-TargetFolder "\Contacts\Stores"

Export-Mailbox : Parameter set cannot be resolved using the specified named parameters.

At line:1 char:15

+ Export-Mailbox <<<< -Identity user@mydomain.co.uk -PSTFolderPath c:\user.pst

-TargetFolder "\Contacts\Stores"

Not sure if you can clarify where I am going wrong

Thanks again for help
 
Status
Not open for further replies.
Top