I have a txt file which contains list of email address of mailboxes.
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.