UAC and mapped network drives
Hi everyone, thought to post my problem elsewhere, since it's generic, but no other topics seem relevant either, so here I go.
I am testing on VIsta (among others) with UAC ON. So, I am starting the Agent separately as Administrator. I guess most of you just turn this um... stupidity feature off and go on with happy testing. Well, we are asked to test in the 'average user' environment, so, ON UAC it is.
- There are some files on the remote machine that need to be copied to local drive during testing.
- When I try to SYS_GetDirContents () and pass the directory on remote machine I get back: "Directory ..... does not exist".
- at the same time that same directory is opened in windows explorer alright.
If I turn the UAC off, everything is fine.
Another problem is that with UAC ON the mapped network drives/remote machines cannot be accessed through DOS window.
THe only way to access a mapped network drive in command prompt is to:
- open explorer as ADMINISTRATOR
- map the drive
- open DOS as NON-ADMINISTRATOR.
If I open dos as administrator (which for me happens since the administrator agent is opening it) I still cannot get access to network drives.
Anyone has any insights on how to get over these issues with UAC and mapped network drives? Thanks so much in advance!
Re: UAC and mapped network drives
I found a solution - in case someone will run into the similar problem.
Run as SilkTest and Agent as administrator (I could not run SilkTest 2006 as admin until the latest release of SP2)
and map network drive as admin (ie. open explorer as admin).
This way I can access network drives alright.
And the problem with DOS seems to be a Vista bug, since it behaves the opposite of what it supposed to.
I've seen some people found this helpful in similar situations
http://desktopdeployment.co.uk/UAC.aspx, although it does nto apply in this case.