diff --git a/GetProjectUsers.ps1 b/GetProjectUsers.ps1 index 5d81ec0..82d8fad 100644 --- a/GetProjectUsers.ps1 +++ b/GetProjectUsers.ps1 @@ -8,15 +8,13 @@ param ( ) if($PSBoundParameters.ContainsKey('Name')){ - $Read='GR-'+$Name+'-RO' - $Write='GR-'+$Name+'-RW' $Roles if($PSBoundParameters.ContainsKey('Server')){ $Roles = . .\GetRoles.ps1 -Server $Server | Where-Object Name -Match $Name } else { $Roles = . .\GetRoles.ps1 | Where-Object Name -Match $Name } - return $Users = $Roles | Get-ADGroupMember | Get-Unique + return $Roles | Get-ADGroupMember | Get-Unique } throw "No such Project was found" \ No newline at end of file