Search in entire AD forest
is there way in active directory powershell search in entire forest without specifying server name?
just in exchange use set-adserversettings -viewentireforest $true
nagesh
here more flexible method:
$gc=[system.directoryservices.activedirectory.forest]::getcurrentforest().name+':3268'
get-aduser -filter * -server $gc
\_(ツ)_/
Windows Server > Windows PowerShell
Comments
Post a Comment