简体   繁体   中英

How do I add Active Directory support to Windows PE?

I want to query Active Directory from Windows PE 2.0, which is not supported "out of the box." Microsoft seems to suggest that this is possible, but not with any tools they provide. What do you recommend?

There seem to be instructions here, and the author claims to query AD from WinPE. http://www.clientarchitect.com/blog1.php/2008/06/18/windows-pe-2-0-ad-scripting-requirements

i recently needed to use a connection to AD from WinPE to retrieve some computer informations, i tested the above solution and other one with ADSI but not working for me in ADK 1709.

My final solution is using WMI on a DC with differed Credentials so can get all i need just by one line :)

(Get-WmiObject -Namespace 'root\\directory\\ldap' -Query "Select DS_info from DS_computer where DS_cn = $($AccountName)" -ComputerName $Domain -Credential $myADCred).$($Myattribute)

$AccountName : is the name of the computer i am searching in AD $Domain : fqdn name that pointing to your DC ex:(xyz.youtdomain.com) $MyADCred : is a credential object containing user and password with the necessary rights on AD $myattribute : is the info i am searching from the computer in AD.

have a nice deployment :)

Yassine

从deployvista.com安装ADSI软件包可以为我解决问题,但是您的工作量可能会有所不同。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM