saved modifications

This commit is contained in:
Karl-Wilfried Zimmer 2024-07-14 13:33:45 +02:00
parent a9e9495f8a
commit 8b96445920

View File

@ -8,15 +8,13 @@ param (
) )
if($PSBoundParameters.ContainsKey('Name')){ if($PSBoundParameters.ContainsKey('Name')){
$Read='GR-'+$Name+'-RO'
$Write='GR-'+$Name+'-RW'
$Roles $Roles
if($PSBoundParameters.ContainsKey('Server')){ if($PSBoundParameters.ContainsKey('Server')){
$Roles = . .\GetRoles.ps1 -Server $Server | Where-Object Name -Match $Name $Roles = . .\GetRoles.ps1 -Server $Server | Where-Object Name -Match $Name
} else { } else {
$Roles = . .\GetRoles.ps1 | Where-Object Name -Match $Name $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" throw "No such Project was found"