forest wide search using Powershell

This topic contains 0 replies, has 1 voice, and was last updated by Profile photo of Forums Archives Forums Archives 5 years, 5 months ago.

  • Author
    Posts
  • #6260

    by techps at 2013-01-24 02:15:51

    I would like to search for users in entire domain and update some attributes mostly extended attributes. I have samaccountname in CSV file

    Is this possible? I can do this for domain where my account exist but for all other domains not possible. I am looking to updated entire forest

    Can this be done using Powershell or Quest commands

    Any help would be appreciated

    Thanks

    by ArtB0514 at 2013-01-24 10:59:51

    Note that you need Enterprise Admin permissions to update in all domains.
    This should get you started (using the Quest tools)....

    $DomainList = [System.DirectoryServices.ActiveDirectory.Forest]::GetCurrentForest().Domains
    foreach ($Domain in $DomainList) {
    $Connection = Connect-QADService $Domain

    Disconnect-QADService $Connection
    }

You must be logged in to reply to this topic.