Share via

[Migrated from MSDN Exchange Dev] Cmdlet Import-Contactlist into subfolder

Yuki Sun-MSFT 41,456 Reputation points Moderator
2020-10-28T06:05:33.933+00:00

[Note] This thread was originally posted on MSDN. As the MSDN Exchange Dev forum mainly focuses on Exchange developer questions and the TechNet Exchange forums for Non-developer Exchange has been locked down and transitioned to Microsoft Q&A for support, we manually migrated this thread to Microsoft Q&A platform to continue the discussion.

[MSDN thread link]Cmdlet Import-Contactlist into subfolder

[Original post]
Hi,

I want use PowerShell to Import contacts to Outlook.
The Import-Contactlist cmdlet reads a CSV file into the contacts Folder.

How can I read into a Subfolder of the Contacts folder (Mailbox)

thanks, Vlady

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Yuki Sun-MSFT 41,456 Reputation points Moderator
    2020-10-28T06:25:34.977+00:00

    Hi Vlady,

    To the best of my knowledge, I am afraid it's not feasible to use the Import-Contactlist cmdlet to import contacts into a Subfolder of the Contacts folder of a mailbox.

    As indicated in the parameter explanation section in Import-ContactList, the -Identity parameter specifies the target mailbox, and there is no other parameters available to specify a subfolder path. So the contacts can only be imported into the default Contacts folder of the mailbox.

    That being said, if you would like to import the csv file into a subfolder, it's suggested to use the Outlook client instead which allows you to select a destination folder. For mode details, you may refer to:

    Import contacts to Outlook


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.