Skip to content

Commit

Permalink
remove .SamAccountName. Using ad object variable instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
vreguibar committed Jun 4, 2024
1 parent 4074386 commit 39a0619
Show file tree
Hide file tree
Showing 2 changed files with 171 additions and 171 deletions.
2 changes: 1 addition & 1 deletion Public/Add-AdGroupNesting.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function Add-AdGroupNesting {
Try {

Write-Verbose -Message ('Getting members of group {0}' -f $Identity)
$CurrentMembers = Get-ADGroupMember -Identity $Identity
$CurrentMembers = Get-ADGroupMember -Identity $Identity -Recursive -ErrorAction SilentlyContinue

} Catch {
###Get-CurrentErrorToDisplay -CurrentError $error[0]
Expand Down
Loading

0 comments on commit 39a0619

Please sign in to comment.