2024-07-14 13:01:03 +02:00
|
|
|
[CmdletBinding()]
|
|
|
|
param (
|
|
|
|
[string]
|
|
|
|
$Server
|
|
|
|
)
|
|
|
|
|
|
|
|
. .\Variables.ps1
|
|
|
|
if($PSBoundParameters.ContainsKey("Server")){
|
2024-07-14 15:00:02 +02:00
|
|
|
Get-ADGroup -Server $Server -SearchBase $Projects
|
2024-07-14 13:01:03 +02:00
|
|
|
} else {
|
2024-07-14 15:00:02 +02:00
|
|
|
Get-ADGroup -SearchBase $Projects
|
2024-07-14 13:01:03 +02:00
|
|
|
}
|