![]() ![]() ![]() It just uses a different method to read the text file.įoreach($subfolder in Get-Content "D:\Documents\newfolders. Like the script above, this PowerShell script reads the folder names from a text file. That is it, you can create an entire Outlook folder tree in one shot. Copy and paste it into the Bulk Folders window. $addnewFolders= New-Object System.IO.StreamReader("D:\Documents\newfolders.txt") To create several folders and subfolders at the same time: Create a list of folder and subfolder names in Excel or Notepad. To add the folders at the same level as the Inbox, change this line:ĭon't forget to change the path to the text file!Įnter your folder names in a text file, one name per line. In the Namebox, enter a name for the folder, and press Enter. Note: When in Calendar, the New Foldercommand is replaced with New Calendar. Use this is you need to frequently create new folders as the text file is generally easier to update. In the left pane of Mail, Contacts, Tasks, or Calendar, right-click where you want to add the folder, and then click New Folder. This PowerShell script reads the folder names from a text file. # Repeat this line as needed, changing the folder name in each lineĬreate subfolders using a list of filenames ![]() $olApp = new-object -comobject outlook.application To add the folder at the same level as the Inbox, change this line: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |