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

Popular posts from this blog

CRL Revocation always failed

Failed to query the results of bpa xpath

0x300000d errors in Microsoft Remote Desktop client