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 The Author

Leave a Comment

Your email address will not be published. Required fields are marked *

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Scroll to Top