Why does "get-addomaincontroller -filter *" no longer work?? RRS feed

  • General discussion

  • Having a hard time getting a straight answer when searching the interwebs for an answer to why

    get-addomaincontroller -filter *

    no longer works. Used to use that in a variety of scripts to gather AD data, but having to work around it. Ended up switching to using:

    ([system.directoryservices.activedirectory.Forest]::GetCurrentForest().domains | %{$_.DomainControllers.name} )
    Gets the job done, but really curious to know why the much simpler get-addomaincontroller cmdlet isn't working like it used to.

    Thursday, June 14, 2018 3:47 PM

All replies

  • When you say that something didn't work, you have to say how it didn't work.

    -- Bill Stewart [Bill_Stewart]

    Thursday, June 14, 2018 3:54 PM