From 5712ca72c8ea470ae9e92f5e36705446ea104e80 Mon Sep 17 00:00:00 2001 From: Karl-Wilfried Zimmer Date: Mon, 15 Jul 2024 22:49:55 +0200 Subject: [PATCH] removed error --- GetProjectUsers.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/GetProjectUsers.ps1 b/GetProjectUsers.ps1 index 7b70fcc..79c9dff 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 -ProjectName $Name } else { - $Roles = . .\GetRoles.ps1 | Where-Object Name -Match $Name + $Roles = . .\GetRoles.ps1 -ProjectName $Name } return $Roles | Get-ADGroupMember | Get-Unique }