Ok, I sat with a consultant yesterday and we had two machines, one that my script was working on, and one that it wasn't. I don't remember how exactly we got to it, but we were talking and googling about user context, and I decided to try an elevated command prompt on the computer that wasn't working. In the elevated prompt, I could see my drives, but in the non-elevated one I couldn't. On the machine that worked, my command prompt was always elevated? Hmmmm, so we double check UAC, the slider is off on both machines.
So we find the article about EnableLinkedConnections and figure that should solve the problem. So we dig into the registry on the non-working computer and put in the DWord EnableLinkedConnections. Sure enough it works. However, the consultant noticed that the setting EnableLUA was set to 1 on the computer that wasn't working! He said that's the setting for UAC! So we removed EnableLinkedConnections, set EnableLUA to 0 and rebooted. Now the computer works fine.
It looks like the UAC slider doesn't change this setting back to 0 once its on.
So, I've added a line to my script to set EnableLUA to 0 and everything is back to "normal" again!
It's been a fun three weeks! Thanks everyone for the suggestions and help.
Mike
|