Hi All
i have a user lets say user1@contoso.com who has a folder in his inbox lets say Test and in this Test folder he has some 100 folders and again he has many sub folders.
i want to share this Test folder and all the folders inside Test Folder to user2@contoso.com
Will the below syntax help me
ForEach($f in (Get-MailboxFolderStatistics lance.brolin | Where { $_.FolderPath.Contains("Test") -eq $True } ) ) {
$fname = "user1:" + $f.FolderPath.Replace("/","\");
Add-MailboxFolderPermission $fname -User user2 -AccessRights Editor }