Windows

How to login locally if you don’t know computer name

How to login locally if you don't know computer name

You may have run into a situation where you need to login locally to a workstation that may be joined to a domain. ย The last person that logged into the workstation used the domain credentials so by default, the workstation is displaying theย log on to as the domain. ย You need to know the local computer name to force the computer to login to the local user account database instead of the Active Directory domain. ย You can click the hyperlink right below the login box: ย “How do I log in to another domain” and it will tell you your local computer name as well as direct you to use a local user name to login. ย The screen that pops up is displayed below.

locallog1

However, a simple trick to implement if you don’t want to click in the hyperlink or if you are perhaps using a script you can use theย syntaxย .\localuserย where “localuser” is your local username. ย The preceding “.” and then the “\” tells Windows you want to use the local machine domain for authentication purposes. ย This is a really quick way to choose the local machine domain without having to click or go to any lengths to try and figure out what the computer name is of the target workstation.

Subscribe to VirtualizationHowto via Email ๐Ÿ””

Enter your email address to subscribe to this blog and receive notifications of new posts by email.



Brandon Lee

Brandon Lee is the Senior Writer, Engineer and owner at Virtualizationhowto.com, and a 7-time VMware vExpert, with over two decades of experience in Information Technology. Having worked for numerous Fortune 500 companies as well as in various industries, He has extensive experience in various IT segments and is a strong advocate for open source technologies. Brandon holds many industry certifications, loves the outdoors and spending time with family. Also, he goes through the effort of testing and troubleshooting issues, so you don't have to.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.