John John (MVP) said:
Hmm. When using the Computername it works sometimes and at other times it
doesn't? And it always works when you use the IP address? Now it's
starting to sound like a "browser war" or Master Browser issue... Look in
the Event Log to see if any errors are recorded.
Ah, that was very interesting. The event logger on PC2 was logging two
events, 40960 and 49601. The key was one of those log message said it was
trying to log on to PC2 using USERXYZ, which is wrong because I was logged
on as USER2. So I started researching those events and ran across some
configuration information I didn't know existed and I don't remember ever
entering it. But it was entered on PC2, so I assume I must have done it,
perhaps long ago.
I found it using this place:
Start -> Settings -> Control Panel -> User Accounts -> Advanced -> Manage
Passwords -> Stored User Names and Password.
In that dialog you can enter user ids / passwords to use when accessing the
resources of other systems. As I said, I have no memory of entering it, but
there was one entry there that said to use USERXYZ when connecting to PC1.
So the entry said to use USERXYZ even though I was logged on as USER2.
Well, I believe that since that entry was made, the password for USERXYZ on
PC1 had changed, but that dialog on PC2 was never updated, and so the
USERXYZ password was being rejected by PC1. Sometimes it connected with
USER2 and that worked, and some times with USERXYZ that did not work.
Whether my net view \\PC2 worked or not depended on which one it had tried
most recently.
The thing is, USER2 has a valid account on PC1, so there was no point in
there being an entry on that dialog at all. So I deleted the entry for
USERXYZ and now it's using USER2 again so everything is now working
properly.
I didn't know there was a single place where you could configure userids and
passwords to be used for the resources of another system. I assumed your
current login was the only one it would ever try.
Thank you very much John! Your questions and information led me right to
the source of the problem
Bruce.