diff --git a/.docs/Add-VSTeamMembership.md b/.docs/Add-VSTeamMembership.md index 33b9eeddf..2140f9c08 100644 --- a/.docs/Add-VSTeamMembership.md +++ b/.docs/Add-VSTeamMembership.md @@ -14,6 +14,16 @@ ## EXAMPLES +### -------------------------- EXAMPLE 1 -------------------------- + +```PowerShell +PS C:\> $user = Get-VSTeamUser | ? DisplayName -eq 'Test User' +PS C:\> $group = Get-VSTeamGroup | ? DisplayName -eq 'Endpoint Administrators' +PS C:\> Add-VSTeamMembership -MemberDescriptor $user.Descriptor -ContainerDescriptor $group.Descriptor +``` + +Adds Test User to the Endpoint Administrators group. + ## PARAMETERS diff --git a/.docs/Get-VSTeamGroup.md b/.docs/Get-VSTeamGroup.md index ea8d0efef..4887500a6 100644 --- a/.docs/Get-VSTeamGroup.md +++ b/.docs/Get-VSTeamGroup.md @@ -14,6 +14,14 @@ ## EXAMPLES +### -------------------------- EXAMPLE 1 -------------------------- + +```PowerShell +PS C:\> $group = Get-VSTeamGroup | ? DisplayName -eq 'Endpoint Administrators' +``` + +Assigns Endpoint Administrators group to $group variable. + ## PARAMETERS diff --git a/.docs/Get-VSTeamMembership.md b/.docs/Get-VSTeamMembership.md index 78f916243..11a212579 100644 --- a/.docs/Get-VSTeamMembership.md +++ b/.docs/Get-VSTeamMembership.md @@ -13,14 +13,17 @@ ## EXAMPLES + ### -------------------------- EXAMPLE 1 -------------------------- ```PowerShell -(Get-VSTeamMembership -MemberDescriptor $user.ID).value | % { Get-VSTeamGroup -Descriptor $_.containerdescriptor } +(Get-VSTeamMembership -MemberDescriptor $user.ID).value | % { Get-VSTeamGroup -Descriptor $_.containerDescriptor } ``` + Get all the groups for a user ### -------------------------- EXAMPLE 2 -------------------------- + ```PowerShell (Get-VSTeamMembership -ContainerDescriptor $group.id).value | % {Get-VSTeamUser -Descriptor $_.memberDescriptor } ``` @@ -55,7 +58,6 @@ Position: 0 ## OUTPUTS - ## NOTES ## RELATED LINKS diff --git a/.docs/Remove-VSTeamMembership.md b/.docs/Remove-VSTeamMembership.md index 0ec9eec38..1399e2e43 100644 --- a/.docs/Remove-VSTeamMembership.md +++ b/.docs/Remove-VSTeamMembership.md @@ -14,6 +14,16 @@ ## EXAMPLES +### -------------------------- EXAMPLE 1 -------------------------- + +```PowerShell +PS C:\> $user = Get-VSTeamUser | ? DisplayName -eq 'Test User' +PS C:\> $group = Get-VSTeamGroup | ? DisplayName -eq 'Endpoint Administrators' +PS C:\> Remove-VSTeamMembership -MemberDescriptor $user.Descriptor -ContainerDescriptor $group.Descriptor +``` + +Removes Test User from the Endpoint Administrators group. + ## PARAMETERS diff --git a/.docs/Test-VSTeamMembership.md b/.docs/Test-VSTeamMembership.md index aa403cd87..5dc960705 100644 --- a/.docs/Test-VSTeamMembership.md +++ b/.docs/Test-VSTeamMembership.md @@ -23,7 +23,8 @@ ## INPUTS ## OUTPUTS -### $True or $False + +### System.Boolean ## NOTES diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fddfca6a..35ce33928 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,10 +30,10 @@ Updated help to refer to Add-VSTeamProfile instead of Set-VSTeamProfile Added support for Get-VSTeamJobRequest. The provider was extended to show the Job Request under the Agent. - Account - - Agent Pools - - Pool1 - - Agent1 - - JobRequest1 + - Agent Pools + - Pool1 + - Agent1 + - JobRequest1 ## 6.2.7 diff --git a/Source/en-US/VSTeam-Help.xml b/Source/en-US/VSTeam-Help.xml index e0aed3ef1..521647033 100644 --- a/Source/en-US/VSTeam-Help.xml +++ b/Source/en-US/VSTeam-Help.xml @@ -9240,7 +9240,7 @@ ID Title Status -------------------------- EXAMPLE 1 -------------------------- - (Get-VSTeamMembership -MemberDescriptor $user.ID).value | % { Get-VSTeamGroup -Descriptor $_.containerdescriptor } + (Get-VSTeamMembership -MemberDescriptor $user.ID).value | % { Get-VSTeamGroup -Descriptor $_.containerDescriptor } Get all the groups for a user @@ -17937,7 +17937,7 @@ PS demo:\> Get-ChildItem - $True or $False + System.Boolean diff --git a/docs/Get-VSTeamMembership.md b/docs/Get-VSTeamMembership.md index 5cfb0750c..92f2b3fef 100644 --- a/docs/Get-VSTeamMembership.md +++ b/docs/Get-VSTeamMembership.md @@ -14,14 +14,17 @@ Gets a memberships for a container or member. Gets a memberships for a container or member. ## EXAMPLES + ### -------------------------- EXAMPLE 1 -------------------------- ```PowerShell -(Get-VSTeamMembership -MemberDescriptor $user.ID).value | % { Get-VSTeamGroup -Descriptor $_.containerdescriptor } +(Get-VSTeamMembership -MemberDescriptor $user.ID).value | % { Get-VSTeamGroup -Descriptor $_.containerDescriptor } ``` + Get all the groups for a user ### -------------------------- EXAMPLE 2 -------------------------- + ```PowerShell (Get-VSTeamMembership -ContainerDescriptor $group.id).value | % {Get-VSTeamUser -Descriptor $_.memberDescriptor } ``` @@ -56,7 +59,6 @@ Position: 0 ## OUTPUTS - ## NOTES ## RELATED LINKS diff --git a/docs/Test-VSTeamMembership.md b/docs/Test-VSTeamMembership.md index 8ae6c247b..d4ac7fc31 100644 --- a/docs/Test-VSTeamMembership.md +++ b/docs/Test-VSTeamMembership.md @@ -42,7 +42,8 @@ Position: 1 ## INPUTS ## OUTPUTS -### $True or $False + +### System.Boolean ## NOTES