Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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:

DOMAINNAME\myusername

whereas the syntax for logging into a local account is

HOSTNAME\myusername

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? –  Kyle 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
add comment

1 Answer

up vote 8 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.

This works in 2008 and 7, not sure about Vista and earlier.

Hope that helps...

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 at 16:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.