UserDNSDomain environment variable set if a computer is a logged on to a domain

  • Section(s): Domain
  • Published on Apr 20, 2004.
  • Last Modified on Apr 20, 2004.
  • Last Modified by Wayne Maples.
  • Rated 1.9 out of 5 based on 9 votes.
UserDNSDomain environment variable set if a computer is a logged on to a domain

The title says it all. If you want to know whether and what domain a computer is logged onto, the UserDNSDomain environment variable will tell you. The nice thing is that you can use the environmental variable in automation scripts where you want to do different things depending on which domain a computer is logged onto.

About Wayne Maples


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred Anti Spam Hardware solution?

Follow TechGenix on Twitter