Remove-MsolGroupMember
보안 그룹에서 멤버를 제거합니다.
Syntax
Remove-MsolGroupMember
-GroupObjectId <Guid>
[-GroupMemberType <GroupMemberType>]
[-GroupMemberObjectId <Guid>]
[-TenantId <Guid>]
[<CommonParameters>]
Description
Remove-MsolGroupMember cmdlet은 보안 그룹에서 멤버를 제거하는 데 사용됩니다. 이 구성원은 사용자 또는 그룹일 수 있습니다.
예제
예제 1: 그룹에서 사용자 제거
PS C:\> $GroupId = Get-MsolGroup -SearchString "MyGroup"
PS C:\> $UserId = Get-MsolUser -UserPrincipalName "evannarvaez@contoso.com"
PS C:\> Remove-MsoLGroupMember -GroupObjectId $GroupId -GroupMemberType User -GroupmemberObjectId $UserId
이 예제에서는 MyGroup이라는 그룹에서 사용자를 evannarvaez@contoso.com 제거합니다.
매개 변수
-GroupMemberObjectId
그룹에서 제거할 사용자 또는 그룹의 고유 개체 ID를 지정합니다.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-GroupMemberType
그룹에서 제거할 멤버의 형식을 지정합니다. 유효한 값은 사용자 및 그룹입니다.
Type: | GroupMemberType |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-GroupObjectId
멤버를 제거할 그룹의 고유 ID를 지정합니다.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TenantId
작업을 수행할 테넌트 고유 ID를 지정합니다. 기본값은 현재 사용자의 테넌트입니다. 이 매개 변수는 파트너 사용자에게만 적용됩니다.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
관련 링크
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기