diff --git a/GetProjects.ps1 b/GetProjects.ps1 index 14f6c84..5219006 100644 --- a/GetProjects.ps1 +++ b/GetProjects.ps1 @@ -6,7 +6,7 @@ param ( . .\Variables.ps1 if($PSBoundParameters.ContainsKey("Server")){ - Get-ADGroups -Server $Server -SearchBase $Projects + Get-ADGroup -Server $Server -SearchBase $Projects } else { - Get-ADGroups -SearchBase $Projects + Get-ADGroup -SearchBase $Projects } \ No newline at end of file