Q

Command for getting domain name

I would like to know the domain name or primary DNS suffix in batch. Isn't there a command that can give me the name of the domain?
Both of these are simple SET variables entitled USERDOMAIN and USERDNSDOMAIN, respectively.
This was first published in September 2003

Dig deeper on Windows Systems and Network Management Tools and Techniques

Pro+

Features

Enjoy the benefits of Pro+ membership, learn more and join.

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

0 comments

Oldest 

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchExchange

SearchSQLServer

SearchWinIT

SearchEnterpriseDesktop

SearchVirtualDesktop

Close