create ps1

ANASTASIOS KATSOULIS 0 Reputation points
2025-10-24T06:05:40.2+00:00

create ps1 file so that i could create new folders in outlook (classic)

is it possible ??

Outlook | Windows | Classic Outlook for Windows | For business
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Vivian-HT 5,910 Reputation points Microsoft External Staff Moderator
    2025-10-24T06:42:33.05+00:00

    Dear @ANASTASIOS KATSOULIS,

    Thank you for posting your question in the Microsoft Q&A forum.

    Yes, it is possible to create a PowerShell script (.ps1 file) to automate the creation of new folders in Outlook (classic for Windows). This works by using the Outlook COM object model, which allows PowerShell to interact with the Outlook client installed on your PC.

    A few important points to note:

    • Outlook must be installed and configured on the machine where you run the script.
    • Folders created through the script will appear in your mailbox and sync across devices if you’re using Exchange or Microsoft 365.

    For more information you can look through these articles as references:

    Disclaimer: The link provided directs you to a third-party website that is not affiliated with Microsoft or our organization. We cannot guarantee the accuracy, security, or reliability of the content on external sites. Please review any information carefully and exercise caution before downloading files or sharing personal data. Use at your own discretion.

    Otherwise, you can use New-MailboxFolder and this cmdlet is available in on-premises Exchange and in the cloud-based service. Some parameters and settings might be exclusive to one environment or the other.

    Use the New-MailboxFolder cmdlet to create folders in your own mailbox. Administrators can't use this cmdlet to create folders in other mailboxes (the cmdlet is available only from the MyBaseOptions user role). For reference: New-MailboxFolder

    To find the permissions required to run any cmdlet or parameter in your organization, see Find the permissions required to run any Exchange cmdlet. .

    For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax.

    I hope this information is helpful. Please follow these steps and let me know if it works for you. If not, we can work together to resolve this.

    Please understand that our initial response does not always resolve the issue immediately. However, with your help and more detailed information, we can work together to find a solution.

    Thank you for your patience and your understanding. If you have any questions, please feel free to reach out.

    I'm looking forward for your reply.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".   

    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.User's image

    1 person found 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.