Back in 2005 I wrote my first ADSI for plugin WinPE (WinPE 2005 or v1.6), and per request I have since then updated it for every WinPE release... This is the release for WinPE 4.0 (part of ADK).
Please note: I don't recommend using ADSI in WinPE. It's not supported by Microsoft, and this release is only intended to support existing solutions using it. Instead you really should use web services to interact with Active Directory from WinPE. Check out http://mdtcustomizations.codeplex.com for ready-made web services for Active Directory, SQL Server, ConfigMgr and more...
WinPE 4.0 ADSI Plugin download
www.deploymentresearch.comhttp://www.deploymentresearch.com/DRFiles/ADSI_WINPE40_Plugin.zip
Detailed installation instructions can be found in the archive Readme.txt file.
The provided sample script, enumerating users in the Users Container.
Previous releases are found on my old blog (deployvista.com, still online as an archive) and at myITforum.
WinPE 3.0 ADSI Plugin
http://www.deployvista.com/Repository/tabid/71/EntryId/60/DMXModule/396/language/sv-SE/Default.aspx
WinPE 2.0 ADSI Plugin
http://www.deployvista.com/Repository/WindowsPE20/tabid/73/language/sv-SE/Default.aspx
WinPE 1.6 ADSI Plugin
http://www.myitforum.com/articles/2/view.asp?id=8810
/ Johan
More ...