Thursday, 15 December 2016

Finding Username and Domain Info using CMD

How to find user and domain details using Command Prompt in Windows


To get the information regarding Username and the domain in which you are connected, follow the steps as shown below:

1) Open CMD (Command Prompt) - For this 

either you can Press Windows+R and then type cmd and then press enter

OR

Press Start and simply search for command prompt in All Programs-Accessories

2) Once you have opened your Command Prompt, type the below mentioned command there i.e.

echo %username%

This will display your current username with which you have login into the system.

3) Next step is finding the domain name, for that type the below mentioned command and press enter

echo %userdomain%

This will display your current domain in which your system is connected.

I hope this helps :)

No comments:

Post a comment