Skip to content

Commit 32407c7

Browse files
committed
Add missing param
1 parent 5ce42ff commit 32407c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AD-GROUP-Get-NestedMember/AD-GROUP-Get-NestedMember.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function Get-NestedMember {
3636
Write-Verbose -Message "[$FunctionName] Check if ActiveDirectory Module is available"
3737
if (-not(Get-Module Activedirectory -ErrorAction Stop)) {
3838
Write-Verbose -Message "[$FunctionName] Loading ActiveDirectory Module"
39-
Import-Module ActiveDirectory -ErrorAction Stop
39+
Import-Module -Name ActiveDirectory -ErrorAction Stop
4040
}
4141

4242
# Set Depth Counter

0 commit comments

Comments
 (0)