Link to home
Create AccountLog in
Avatar of JimmyRiverside
JimmyRiversideFlag for United States of America

asked on

Add Mailbox FolderPermission using Powershell Exchange 2010

How to use PowerShell Command "Add-Mailbox FolderPermission" to Folder with Spaces in Name.


Add-MailboxFolderPermission -Identity "\Inbox\AHA Emails to Staff" -User -AccessRights Owner

Every time I run this I get an error from powershell cannot find path ???
Avatar of Anthony Carter
Anthony Carter

Link to home
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of Jeremy Weisinger
Jeremy Weisinger

Or just surround it with single quotes instead of double quotes.

Add-MailboxFolderPermission -Identity '\Inbox\AHA Emails to Staff' -User -AccessRights Owner

Open in new window

Try this:
Add-MailboxFolderPermission -Identity 'User1:\Inbox\AHA Emails to Staff' -User User2 -AccessRights Owner

Open in new window

$Folder = '\Inbox\AHA Emails to Staff'
Add-MailboxFolderPermission -Identity $Folder -User -AccessRights Owner

Open in new window