From 71ae6260f6427dc694366f92329a0357dce000b9 Mon Sep 17 00:00:00 2001 From: Karl-Wilfried Zimmer Date: Mon, 15 Jul 2024 22:04:16 +0200 Subject: [PATCH] made to use eq --- GetProjectUsers.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 }