ProjectManagementScripts/GetProjects.ps1
2024-07-14 16:57:49 +02:00

12 lines
298 B
PowerShell

[CmdletBinding()]
param (
[string]
$Server
)
. .\Variables.ps1
if($PSBoundParameters.ContainsKey("Server")){
Get-ADGroup -Server $Server -SearchBase $Projects -Filter 'GroupCategory -eq "Security"'
} else {
Get-ADGroup -SearchBase $Projects -Filter 'GroupCategory -eq "Security"'
}