Ste*_*ngs 3 powershell exchange-2010 microsoft-office-365
我们使用 Exchange 2010 作为 Office 365 订阅的一部分。我们有一个仅由 Alice 拥有的安全组。如果不使用 Alice 的帐户,管理员如何获得该安全组的所有权?
PS C:\> Get-DistributionGroup "SecurityGroupX" |
Select ManagedBy -ExpandProperty "ManagedBy"
namprd00.prod.outlook.com/Microsoft Exchange Hosted Organizations
/example.onmicrosoft.com/alice
Run Code Online (Sandbox Code Playgroud)
我是组织管理角色的成员,因此我希望能够覆盖此权限。我尝试使用 Exchange 管理门户,也尝试使用 PowerShell:
PS C:\> Set-DistributionGroup "SecurityGroupX" -ManagedBy "stephen@example.com"
You don't have sufficient permissions. This operation can only be performed by a
manager of the group.
+ CategoryInfo : NotSpecified: (:) [Set-DistributionGroup], OperationRequiresGroupManagerException
+ FullyQualifiedErrorId : 99CEE042,Microsoft.Exchange.Management.RecipientTasks.SetDistributionGroup
+ PSComputerName : bl0prd0000psh.outlook.com
Run Code Online (Sandbox Code Playgroud)
在问这个问题的过程中,我找到了答案。Set-DistributionGroup
有一个-BypassSecurityGroupManagerCheck
用于此目的的参数。
PS C:\> Set-DistributionGroup "SecurityGroupX" `
-ManagedBy "stephen@example.com" `
-BypassSecurityGroupManagerCheck
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
11305 次 |
最近记录: |