ProjectManagementScripts/GetProjects.ps1

12 lines
298 B
PowerShell
Raw Permalink Normal View History

2024-07-14 13:01:03 +02:00
[CmdletBinding()]
param (
[string]
$Server
)
. .\Variables.ps1
if($PSBoundParameters.ContainsKey("Server")){
2024-07-14 16:57:49 +02:00
Get-ADGroup -Server $Server -SearchBase $Projects -Filter 'GroupCategory -eq "Security"'
2024-07-14 13:01:03 +02:00
} else {
2024-07-14 16:57:49 +02:00
Get-ADGroup -SearchBase $Projects -Filter 'GroupCategory -eq "Security"'
2024-07-14 13:01:03 +02:00
}