Forum Discussion
eeri1540
May 07, 2019Copper Contributor
Unable to Set-MailboxFolderPermission
Unable to Set-MailboxFolderPermission example@test.fi -user Default -accessrights reviewer. Error message says that "There is no existing permission entry found for user".. We think this is because o...
- 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-EXOPSSessionKey here is to open new powershell session else Set-Culture does not work.
VasilMichev
May 07, 2019MVP
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.
eeri1540
May 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-EXOPSSessionKey here is to open new powershell session else Set-Culture does not work.