WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Domain

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to Get Local Machine Domain Name

Keywords:   domain name computer

Question:

I need to capture the local machine's domain name and set as default. Where do I find this, and what function can I use if possible?

Answer:

We don't have a function to do that at this time, but you can read it from the registry.

In 95:

   @regmachine, "System\CurrentControlSet\Services\BXD\VNETSUP\Workgroup[]"
and in NT:
   @regmachine, "Software\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultDomainName[]"

Article ID:   W14258
Filename:   Get Local Machine Domain Name.txt
File Created: 1999:10:26:11:22:52
Last Updated: 1999:10:26:11:22:52