|
|
![]() |
|
|
Top | #1 |
|
OSNN One Post Wonder
Joined: March 2005
Posts: 1
Reputation: 0
Power: 0 |
I need to use the name of my DC in my LDAP query that queries AD because without that my query fails and gives Table Does not Exist message. Currently I have been hard coding the name of the Domain controller, and that works fine. But can you get the name of the nearest AD Domain Controller, while in WinPE environment and before logging to any domain. This is what I had tried, but did not work for me. In my VB.Net Code modified for my WinPE Environment: Set MyDomain = GetObject("LDAP://RootDSE") MyDC = MyDomain.Get("dnsHostName") The above query basically gives me the name of the DC. I then tried to use this MyDC variable in my LDAP search but this did not work in WinPE environment. I still got the table does not exist message. (works fine from my machine on the domain as I am already logged on the domain). Any thoughts or suggestions of getting the name of Domain Controller. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Internet Use Issue - Workgoup Vs .local domain | melfordgurl | Windows Desktop Systems | 3 | January 14th, 2008 5:31pm |
| Creating a backup domain controller | navinkumar123 | Windows Server Systems | 3 | May 23rd, 2006 10:19pm |
| Change default domain, with out a domain | illmaticone | Windows Desktop Systems | 2 | March 13th, 2006 4:40pm |
| XP Install Restart Issue, Plus Driver Letter Issue | lancer | Windows Desktop Systems | 4 | February 20th, 2006 1:25am |
| Command line NT Domain Controller | NegativeFactor | Windows Desktop Systems | 8 | February 13th, 2003 8:10pm |