Forum Discussion
Unable to Set-MailboxFolderPermission
- May 10, 2019
Ok, Thanks. Issue resolved.
First "Set-Culture -CultureInfo en-us" and then open new powershell session.
$modules = @(Get-ChildItem -Path "$($env:LOCALAPPDATA)\Apps\2.0" -Filter "Microsoft.Exchange.Management.ExoPowershellModule.manifest" -Recurse )$moduleName = Join-Path $modules[0].Directory.FullName "Microsoft.Exchange.Management.ExoPowershellModule.dll"Import-Module -FullyQualifiedName $moduleName -Force$scriptName = Join-Path $modules[0].Directory.FullName "CreateExoPSSession.ps1". $scriptName$null = Connect-EXOPSSessionhttps://blogs.technet.microsoft.com/canitpro/2017/08/23/powershell-basics-connecting-to-exchange-online-using-multi-factor-authentication/Key here is to open new powershell session else Set-Culture does not work.
You might simply have an folder with the default entry deleted, in which case use the Add-MailboxFolderPermission cmdlet instead. The language shouldn't matter, as long as you enclose the string in quotes.
- pv2hymelAug 05, 2021Copper ContributorThanks! That helped me!
- eeri1540May 09, 2019Copper Contributor
VasilMichev Nope. Add-MailboxFolderPermission example@test.fi -user Default -accessrights reviewer, Cmdlet error with following error message: Microsoft.Exchange.Management.StoreTasks.InvalidExternalUserIdException: The user "Oletus" is either not valid SMTP address, or there is no matching information.
Once again "Default" is automatically converted to "Oletus" and not working. Same thing, remove-MailboxFolderPermission.
I also try to use quotes 'Default' and "default" but not helping.
- VasilMichevMay 09, 2019MVP
Well, for some reason the culture cmdlets don't seem to work on my machine, but try using Set-Culture first before running the cmdlet. Or just use an English box :)
- eeri1540May 10, 2019Copper Contributor
Ok, Thanks. Issue resolved.
First "Set-Culture -CultureInfo en-us" and then open new powershell session.
$modules = @(Get-ChildItem -Path "$($env:LOCALAPPDATA)\Apps\2.0" -Filter "Microsoft.Exchange.Management.ExoPowershellModule.manifest" -Recurse )$moduleName = Join-Path $modules[0].Directory.FullName "Microsoft.Exchange.Management.ExoPowershellModule.dll"Import-Module -FullyQualifiedName $moduleName -Force$scriptName = Join-Path $modules[0].Directory.FullName "CreateExoPSSession.ps1". $scriptName$null = Connect-EXOPSSessionhttps://blogs.technet.microsoft.com/canitpro/2017/08/23/powershell-basics-connecting-to-exchange-online-using-multi-factor-authentication/Key here is to open new powershell session else Set-Culture does not work.