Armen Minasyan
asked on
Creating Subfolder in Outlook from Exchange 2010 SP1
Looking for a solution to create a Subfolder under User's folder in Outlook which should be visible for them. Want to do it from Exchange powershell. I was trying this down below and getting errors:
$mailboxes = Get-Mailbox -Server EX2KMBOX
$mailboxes | foreach { New-ManagedFolder -name $($_.Alias) -FolderName "$($_.Alias):\eBrochure" -StorageQuota '50Mb' -Comment 'Messages in this folder are retained for 2 Weeks' -MustDisplayComment $true }
And as I understand I'm totally wrong as it is creating set of custom managed folder which is not right.
Any advice on this?
$mailboxes = Get-Mailbox -Server EX2KMBOX
$mailboxes | foreach { New-ManagedFolder -name $($_.Alias) -FolderName "$($_.Alias):\eBrochure" -StorageQuota '50Mb' -Comment 'Messages in this folder are retained for 2 Weeks' -MustDisplayComment $true }
And as I understand I'm totally wrong as it is creating set of custom managed folder which is not right.
Any advice on this?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
honestly no idea :D can you give me the error so i can try to help
ASKER
Mailbox 'Armen Minasyan' cannot be Archive enabled with Managed Folders Policy. Archives are supported only with Retent
ion Policy.
+ CategoryInfo : NotSpecified: (Armen Minasyan:ADUser) [Set-Mailbox], RecipientTaskException
+ FullyQualifiedErrorId : 397C31E4,Microsoft.Exchang e.Manageme nt.Recipie ntTasks.Se tMailbox
ion Policy.
+ CategoryInfo : NotSpecified: (Armen Minasyan:ADUser) [Set-Mailbox], RecipientTaskException
+ FullyQualifiedErrorId : 397C31E4,Microsoft.Exchang
well I guess not it clearly says it is not supported
ASKER
Thanks for your help! You're saved my day!
glad I was able to help
ASKER
BTW, instead of ManagedFolderMailboxPolicy I applied retention policy to it and enable archive. So, it is totally resolved - Thanks to Akhater.
great find! Tx for the update
ASKER