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?

link|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
feedback

2 Answers

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

link|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
feedback

Weird? On our win 7 machines, all you have to do is type the account name "Administrator" and it automatically knows you want to logon locally! I will have to try th eperiod thing though.....

link|improve this answer
Yeah, using "Administrator" as my example may not have been the best idea, as it always targets the local Administrator account if NO domain is given. But it gets the point across. ;) – techie007 Feb 17 '11 at 20:38
feedback

Your Answer

 
or
required, but never shown

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