Vilius Mockûnas
2007-04-19 06:07:06 UTC
Hi,
What I'm trying to do is to map network drive runing as another user.
(I'm logged on as user(interactivelly) another user is administrator)
Fof example if I launch new cmd window as administrator(I am loged on as
user) :
runas /u:administrator cmd
When new cmd window is created I use command:
net use x: \\server_ip\share
Everything is OK.
But if I try to use one command:
runas /u:administrator "net use x: \\server_ip\share"
Result is "The command completed successfully", but when I issue "net use"
without parameters - the state of connection is showed "Unavailable", and of
course I can't use it.
How to explain this ?
thanks
Vilius
What I'm trying to do is to map network drive runing as another user.
(I'm logged on as user(interactivelly) another user is administrator)
Fof example if I launch new cmd window as administrator(I am loged on as
user) :
runas /u:administrator cmd
When new cmd window is created I use command:
net use x: \\server_ip\share
Everything is OK.
But if I try to use one command:
runas /u:administrator "net use x: \\server_ip\share"
Result is "The command completed successfully", but when I issue "net use"
without parameters - the state of connection is showed "Unavailable", and of
course I can't use it.
How to explain this ?
thanks
Vilius