Home How to How to Check Your %computername% using Command Line

How to Check Your %computername% using Command Line

by admin

Each computer has its own name that can be used to identify it on a network. It may be changed when setting up the computer or you might be using the default name. For those who are wondering how to check out your computer name on Windows, you can use Command Line.

The Command Line interpreter application called Command Prompt is known as a powerful tool that is able to be used to do anything you want on your computer. Compared to some other complex processes, this one allows you to make, move, delete files, and find all the important information about the components of your computer. Even though it is really important to understand and learn the Command Prompt commands to use this tool for complex processes, a few simple and useful processes do not need that.

In some cases, you will need to know the name of your computer. For instance, you will have to know about it if you want to connect your printer to more than one computer. Fortunately, it is able to be done by using the Command Line.

In order to open the Command Line interpreter application called Command Prompt, you can just simply click on the Start and then enter “cmd” in the search bar. By pressing Enter, a small black window will show up. This one is your Command Prompt. Another way to open it is by typing “run” in the search bar and pressing Enter. Doing so will make the Run window show up. Please type in “cmd’ and press Enter again.

How to Check Your %computername% using Command Line

Now that you have opened the Command Prompt, it is time for you to start with the commands. hostname is the first command. All that should be done is typing “hostname” in the Command Prompt and press Enter. After that, the Command Prompt will show the name of your computer in the next line. The only problem that may occur here is that you have to be really careful with your typing. In case you make a mistake, the Command Prompt will not recognize the command and nothing will happen.

In order to get the same piece of information, you can also try to use the %computername% command. All that you have to do is to simply type echo %computername% in the Command Prompt and hit Enter. However, both of them will only show up the NetBOIS name of your computer and will not display the full DNS name. If you want to get the FQDN or Fully Qualified Domain Name of your computer, please use the following commands:

Net config workstation | findstr /C: “Full Computer Name


wmic computersystem get name

Please type one of these commands exactly as it is shown and then press Enter. In the end, the Command Prompt will display the full DNS name of your computer.

A really important piece of information that you can discover by using the Command Prompt is the IP address of your computer. To be able to find the IP address of your computer, first of all, you will have to open the Command Prompt. Once it is opened, type in “ipconfig”. After that, press Enter. Finally, you will be able to look for IPv4 Address. For those who are using a VPN or Virtual Private Network for your work, you will get more information under the IPv4 Address.

One of the most interesting command that you may want to use is “nslookup”. This one allows you to find your the IP address of your business domain server. To find it, all that should be done is to type in “nslookup” press Space, and add your business domain. For instance, you can use nslookup youtube.com.

If you want to print all server IP address between your computer and the website that you have entered, you will need to type “tracert” in your Command Prompt, press the Space key, and type in the name of the website that you want to visit or any website of your choosing. After hitting Enter, the Command Prompt will print everything. For instance, you can type tracert youtube.com if you want to find the IP address of all the servers that stand between you and Youtube.

The Command Prompt of your computer has a lot of functions and it is really versatile. Even though some of these commands are considered very basic, they are still good as the starting point for everyone who wants to learn more about using the Command Prompt.

Apart from using the Command Line, there are also some other methods to check out the name of your computer.

Method 1: Use a keyboard shortcut

Pressing Windows key and Pause or break at the same time is the quickest way to find out the name of your computer. then, you can look next to Computer name to find the name of your computer. There might be no Pause or break key on your keyboard. Apparently, a lot of modern keyboard do not have it. If not, then please use another these simple techniques.

Method 2: Use the Start button

To use the Start button to find the name of your computer, you will have to right click the Start button. it will open the list of choices. Please click System, which will open a Settings window, and then look next to Device name to find out the name of your computer.

Method 3: Use Cortana

The Cortana or the Start menu search can be used to check out the name of your computer. From the taskbar, choose Cortana or press Start and look for computer name. After that, click View your PC name from the results and look next to Device name.

Method 4: Use Settings

If you want to se Settings to find out the name of your computer, you can just press Windows key and I at the same time to open Settings. When it opens, click System > About and look next to Device name.

You may also like