ProjectManagementScripts/GetRoles.ps1
2024-07-14 13:04:40 +02:00

14 lines
274 B
PowerShell

[CmdletBinding()]
param (
[string]
$Server
)
$Projects
if($PSBoundParameters.ContainsKey("Server")){
$Projects = . .\GetProjects.ps1 -Server $Server
} else {
$Projects = . .\GetProjects.ps1
}
$Projects | Get-ADGroupMember | Where-Object Name -Match "GR.*"