ProjectManagementScripts/GetProjectUsers.ps1
Karl-Wilfried Zimmer 5712ca72c8 removed error
2024-07-15 22:49:55 +02:00

20 lines
447 B
PowerShell

# Parameter help description
[CmdletBinding()]
param (
[string]
$Name,
[string]
$Server
)
if($PSBoundParameters.ContainsKey('Name')){
$Roles=$null
if($PSBoundParameters.ContainsKey('Server')){
$Roles = . .\GetRoles.ps1 -Server $Server -ProjectName $Name
} else {
$Roles = . .\GetRoles.ps1 -ProjectName $Name
}
return $Roles | Get-ADGroupMember | Get-Unique
}
throw "No such Project was found"