Re: Re: RunAsSet and WinXP -> was "msiexec is running on w2k but not on XP"

Stefan Lubitz <[email protected]>
Newsgroups gmane.comp.windows.autoit.user
Message-ID <[email protected]>
hmmm, but it is realy a public share. Everyone can see and access it. I 
tried it also with the UNC name (\\server\path\file)
Same result. I also tried the user I normaly use for installing Software 
on the Client machine. If I log on to the Client with this user, I can 
see and access the share. The same user is not working with RunAs. It 
should work? Or am I wrong?

Stefan

Valik schrieb:
> Stefan Lubitz wrote:
>   
>> The Directory is a public Share on the Network (t:\updates\sametime
>> which is \\bies002\projekt\program\updates\sametime)
>> I have tried to use both expressions instead of the @scriptdir with the
>> same result.
>> The access to the directory is given and I have tried to make a
>> fileexist check before, which returns 1, which means file is existing.
>> If I don't use RunAsSet, and I am logged on with the same user I use in
>> the Script, it is working. So am am pretty sure that it has something to
>> do with the RunAsSet function and the access to the network.
>> The strange thing is, that if I run it from the local desktop (with
>> using @scriptdir) it is working.
>>
>> Stefan
>>
>>     
>
> Then you have encountered the second most common problem people make 
> with RunAs().  They assume "because I can see the share, the user I'm 
> trying to run as can see the share".  Checking if the current user can 
> see the share is irrelevant.  The account you are going to run as needs 
> to be able to see the share.  Log into that account manually and see if 
> you can see the share.  My guess is no, you can not.
>
>   



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AutoItList/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/AutoItList/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[email protected] 
    mailto:[email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.