Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Occasionally I need to log into a local machine account on a Windows workstation joined to our domain. The syntax for specifying a domain account looks like this:


whereas the syntax for logging into a local account is


The problem is that I often don't know the host name off the top of my head. It is possible to find out by clicking the "How do I log onto another domain" link, but this requires me to memorize or write down an often cryptic hostname. Is there another, simpler way to do this?

share|improve this question
This is Windows 7? – Not Kyle stop stalking me Feb 17 '11 at 14:48
Either Vista or Windows 7. If there's a Windows 7-only solution, I'd still like to know. Thanks. – David Feb 17 '11 at 14:53
up vote 23 down vote accepted

You can use a period to represent the local host name when logging in.

So, .\Administrator would be the local administrator account.

share|improve this answer
That's exactly what I was looking for. Thanks! It works on both Vista and Windows 7, at least. – David Feb 17 '11 at 15:58
This works fine locally, but does not work through RDP because it will specify the local rather than host domain. Is there any shortcut possible via RDP? – djs Jun 25 '13 at 20:39
@djs you know the machine name that you're connecting to if you're using RDP. Or you can do nslookup on the IP address if you connect that way. Doesn't stop you having to type it in though – laurencemadill Mar 19 '14 at 16:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .