diff --git a/GetProjectUsers.ps1 b/GetProjectUsers.ps1 index 7b70fcc..3974015 100644 --- a/GetProjectUsers.ps1 +++ b/GetProjectUsers.ps1 @@ -10,9 +10,9 @@ param ( if($PSBoundParameters.ContainsKey('Name')){ $Roles=$null if($PSBoundParameters.ContainsKey('Server')){ - $Roles = . .\GetRoles.ps1 -Server $Server | Where-Object Name -Match $Name + $Roles = . .\GetRoles.ps1 -Server $Server | Where-Object Name -eq $Name } else { - $Roles = . .\GetRoles.ps1 | Where-Object Name -Match $Name + $Roles = . .\GetRoles.ps1 | Where-Object Name -eq $Name } return $Roles | Get-ADGroupMember | Get-Unique }