Skip to content

Commit d69b2ba

Browse files
author
haraldpfirmann
committed
Fixed
1 parent 37b8b4e commit d69b2ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ActiveDirectory/Groups/Get-ADGroupMembers.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ try{
125125
else {
126126
$cmdArgs.Add("Identity", $DomainName)
127127
}
128-
$Domain = Get-ADDomain @cmdArgs
128+
$Script:Domain = Get-ADDomain @cmdArgs
129129

130130
$cmdArgs = @{'ErrorAction' = 'Stop'
131-
'Server' = $Domain.PDCEmulator
131+
'Server' = $Script:Domain.PDCEmulator
132132
'AuthType' = $AuthType
133133
'Filter' = {(SamAccountName -eq $GroupName) -or (DistinguishedName -eq $GroupName)}
134134
'SearchBase' = $OUPath

0 commit comments

Comments
 (0)