Link to home
Start Free TrialLog in
Avatar of nav2567
nav2567Flag for United States of America

asked on

create a script to do mailbox conversion.

Hello,

I have a txt file which contains list of email address of mailboxes.  

traffic@xyz.com
sales@xyz.com
hr@xyz.com
.....

I need to run a PS command to read this text file and convert the mailboxes into shared mailboxes.

I am trying this command but it does not work:

get-content "c:\mailbox.txt" | set-mailbox $_ -Type Shared

If someone knows how to fix it, please advise.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Jason Crawford
Jason Crawford
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nav2567

ASKER

Thanks a lot Jason.  It looks right.  I am going to try.