How To Get Domain Name Computer. View the computer name or full computer name in the basic information. We can find the domain name of a computer by running the following commnad from command line.
Get a Free Domain Name for Your Business. Input system in the top-right search box and tap See the name of this computer. An alternative but similar SystemNetDNS class method you can use to get a computer name is called GetHostByName.
An alternative but similar SystemNetDNS class method you can use to get a computer name is called GetHostByName.
Here are the steps. The first command is hostname All you need to do is type hostname in the Command Prompt and hit Enter. ObjComputerName WscriptEcho Domain. In the search box type Computer.