Easy Domain Enumeration with ADSI
Introduction [adsisearcher]::new([adsi]”LDAP://domain.local/OU=MyOU,DC=Domain,DC=Local”, “(ObjectCategory=user)”).FindAll() [adsisearcher]::new([adsi]”LDAP://domain.local”, “(name=targetuser)”).FindOne().GetDirectoryEntry() [adsisearcher]::new([adsi]”LDAP://domain.local”, “(ObjectCategory=user)”).FindAll()|ForEach-Object {$entry=$_.GetDirectoryEntry();$entry.Properties[“description”].Value=”No...