Skip to content

Commit 5ce42ff

Browse files
committed
Add missing parameter
1 parent c9ebd58 commit 5ce42ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/AD-TokenGroups_Test.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $Search.FindAll() | ForEach-Object -Process {
1313
$($AccountGetDirectory.Get("tokenGroups")) |
1414
ForEach-Object -Process {
1515
# Create SecurityIdentifier to translate into group name
16-
$Principal = New-Object System.Security.Principal.SecurityIdentifier($_, 0)
16+
$Principal = New-Object -TypeName System.Security.Principal.SecurityIdentifier($_, 0)
1717
$domainName = [adsi]"LDAP://$($Principal.AccountDomainSid)"
1818

1919
<#

0 commit comments

Comments
 (0)