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.