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.

Example:

Add-MailboxFolderPermission -Identity "User1@xyz.com:\Inbox\AHA Emails to Staff" -User User2@xyz.com -AccessRights Owner

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

Link to home
membership
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 'User1@xyz.com:\Inbox\AHA Emails to Staff' -User User2@xyz.com -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

or
$Folder = 'User1@xyz.com:\Inbox\AHA Emails to Staff'
Add-MailboxFolderPermission -Identity $Folder -User User2@xyz.com -AccessRights Owner

Open in new window