Q
Problem solve Get help with specific problems with your technologies, process and projects.

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.

Dig Deeper on Windows administration tools

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.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchServerVirtualization

SearchCloudComputing

SearchSQLServer

SearchEnterpriseDesktop

SearchVirtualDesktop

Close