digital8 Second Lieutenant
Joined: 29 Sep 2005
Posts: 1002
|
Posted: Fri Oct 07, 2005 10:26 am Post subject: How to add ADSI support to Windows PE 2005 (WinPE) |
|
|
Step-by-step instructions
1. Copy the WINPE folder from the Windows PE 2005 CDROM to C:\
2. Insert the Windows XP SP2 or Windows Server 2003 SP1 CD-ROM (F: in this example). Start a command prompt and type:
cd /d c:\winpe
mkimg.cmd F: C:\WinPE_ADSI
3. Extract the additional ADSI files from the Windows XP SP2 or Windows Server 2003 SP1 CD-ROM (F: in this example). Start a command prompt and type:
expand F:\i386\activeds.tl_ C:\WinPE_ADSI\i386\system32\activeds.tlb
expand F:\i386\adsldp.dl_ C:\WinPE_ADSI\i386\system32\adsldp.dll
4. Add support for WSH, ADO and HTA to WinPE. Start a command prompt and type:
cd /d c:\winpe
buildoptionalcomponents.vbs /S:F: /D:C:\WinPE_ADSI /Q
5. Edit C:\WinPE_ADSI\i386\system32\STARTNET.CMD and add the following line at the bottom.
oc.bat
6. Modify the sample script according to your environment and save it in C:\WinPE_ADSI\i386\system32
7. Create a Bootable CD by starting a command prompt and type this.
cd /d c:\winpe
oscdimg -h -n -betfsboot.com C:\WinPE_ADSI C:\WinPE_ADSI.iso
8. Burn the .iso to a CD using Nero or other cdr burning software
Note: When using ADSI in Windows PE you need to bind to Active Directory. The sample vbscript connects to a domain controller and displays all objects in the users contatiner. |
|