ProjectManagementScripts/GetRoles.ps1

14 lines
275 B
PowerShell
Raw Normal View History

2024-07-14 13:01:03 +02:00
[CmdletBinding()]
param (
[string]
$Server,
)
2024-07-14 11:44:34 +02:00
2024-07-14 13:01:03 +02:00
$Projects
if($PSBoundParameters.ContainsKey("Server")){
$Projects = . .\GetProjects.ps1 -Server $Server
} else {
$Projects = . .\GetProjects.ps1
}
$Projects | Get-ADGroupMember | Where-Object Name -Match "GR.*"