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

I have a Windows 7 PC on a domain, with a directory shared as \myPC\myShare. The share has share-permissions for Everyone to have Full Control, and security permissions for Everyone to have Full Control.

I have another Windows 7 PC, not on the domain. I can access \myPC\myShare for read and write through Windows explorer, both normally and when explorer is Run As Administrator. I can access the share via dir \\myPC\myShare from a command prompt not Run As Administrator; but the same command in a command prompted started with Run As Administrator produces:

Logon failure: Unknown username or bad password.

Why? What can I do about it?

share|improve this question
The problem is the share's permission is based on the domain, thus your trying to access a share, you don't have permission too. – Ramhound Aug 8 '12 at 15:30
So how come I can access it when not administrator? I'm still not on the domain then. – Chowlett Aug 8 '12 at 15:41
@Chowlett: Have you checked the permissions on the share? It could be that your account has permissions while the administrator account does not. Be sure to check both the share settings as well as the folder settings. The event log might give additional login attempt details, check it on both computers. Also, why exactly do you need to do this as an Administrator? – Tom Wijsman Aug 9 '12 at 17:55
@TomWijsman - Yes, the share and the folder are both set to have Everyone having full access. In the end I managed to get Administrator access by putting the client PC onto the domain, and giving a domain account admin rights (even on the domain, the normal Admin didn't work). I'm running a script that needs to be run as admin, and which accesses the shares as part of its operation. – Chowlett Aug 10 '12 at 8:38
@Chowlett: Ah right, the local administrator != the domain administrator. Can you post that as an answer so the question is no longer on the unanswered list? – Tom Wijsman Aug 10 '12 at 8:52
up vote 0 down vote accepted

I was eventually able to get a local administrator to access the shared directory by putting the second PC onto the domain, and giving a domain account administrator privileges on that machine. That account could then access the share.

share|improve this answer

You must log in to answer this question.

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