DSQuery for DN (distinguished name)
Forum rules
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
Do not post any licensing information in this forum.
Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
- pr0digalson
- Posts: 1
- Last visit: Tue Jun 22, 2010 3:31 am
DSQuery for DN (distinguished name)
Greetings. First time member here.I've had relative success with DSQUERY in the past on various tasks, but for some reason I can't quite get my arms around running a DSQUERY for a domain's 'distinguished name' only. Any idea on how to use DSQUERY to query for *just* the distinguished name of a domain? Thanks so much in advance.
DSQuery for DN (distinguished name)
No - that is not what dsquery is for. It can target a domain and return information on objects in teh domain but not the domain itself.
You can get the current domain here:
echo %userdnsdomain%
You can get the current domain here:
echo %userdnsdomain%