[Quick Tip] How To Find Computer Name Using Command Prompt

Here’s a quick way to find out your computer’s name, something you might need often (like, when you are trying to connect a printer to multiple PCs). This method makes use of the command prompt in Windows.

Click on the start button, type cmd in the search box (In windows XP and older version, open run command, type “cmd” and press enter). Click on the result.

command prompt windows

A command prompt window will open up. Type the word “hostname” and press enter.

cmd-hostname windows

Your computer name will appear. In my case it is “Himanshu-PC”.

cmd-computer name

This way you can easily find your computer’s name. Simple and quick.

Show Comments Hide Comments