saved modifications
This commit is contained in:
parent
a9e9495f8a
commit
8b96445920
@ -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"
|
Loading…
Reference in New Issue
Block a user