Skip to content

Running in a loop with multiple domains #18

@darqangels

Description

@darqangels

Hello,

I noticed when running in a loop with multiple domains it will fail. I solved this by commenting out the lines below as they will change the context from the provided $domain variable to actually pulling the current domain in the context of the powershell.exe window.

$DirEntry = New-Object System.DirectoryServices.DirectoryEntry
$UserSearcher.SearchRoot = $DirEntry

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions