Friday, October 9th, 2009 Posted in Windows Powershell, Windows Server | 1 Comment »
Do you need to see LDAP paths of your all computers in Active Directory? $Searcher = New-Object DirectoryServices.DirectorySearcher([ADSI]"") $Searcher.Filter = "(objectClass=computer)" $Computers = ($Searcher.Findall()) Foreach ($Computer in $Computers) { $Path=$Computer.Path write-host $Path } LDAP names can save ... Read more..