Set-EXOMailboxFolderPermissions(这是一回事吗?)

Set-EXOMailboxFolderPermissions (is it a thing?)

我刚刚在 M365/Powershell 模块环境中导航。我正在尝试在适用的情况下使用所有 Exchange Online PowerShell V2 命令(和 Powershell 7),以面向未来。

在 v2 中设置日历权限时:我注意到 Get-EXOMailboxFolderPermission 取代了 Get-MailboxFolderPermission,但我没有看到 Set-EXOMailboxFolderPermission。 我是否应该继续使用 Set-MailboxFolderPermissionGet-EXOMailboxFolderPermission 内联/这是最佳命令搭配吗?

谢谢!

PS:抱歉 - 我的声誉不够高,无法为“exchange-online-powershell-v2”添加标签

答案是——这取决于您管理环境的方式,是混合还是仅在线以及其他特定设置。对于 Hybrid,您最有可能需要同时使用两者(取决于任务)。

如果您启用了 MFA 并直接连接到 Exchange Online,则只能按照 Microsoft 文档使用 EXO cmdlet 进行连接。

所以我会在每个特定任务上使用 MS Advice。

Note: In Exchange Online PowerShell, we recommend that you use the Get-EXOMailboxFolderPermission cmdlet instead of this cmdlet. For more information, see Connect to Exchange Online PowerShell.

来源: https://docs.microsoft.com/en-us/powershell/module/exchange/get-mailboxfolderpermission?view=exchange-ps

MFA 详情: https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-powershell?view=exchange-ps