Run Command

M

Mike

Is there a way to up a network share from the run command
using the secondary logon service? maybe possible using
the runas command. what I'm trying to do is open a
network share with an admin account from a system who
doesn't have access to it. I know I can use the runas and
restart the explorer shell but I just want to open the
network share in a window with the admin account.

Kinda like this: \\computer\share /user /password

TIA

Mike
 
P

Pegasus \(MVP\)

I'm not sure what you mean with "Is there a way to up a network
share from the run command" (as opposed to "down a network
share?"), but placing these commands inside a batch file might
do what you want to do:

@echo off
if "%1"=="" runas /user:administrator "cmd /c c:\temp\test.bat xxx" |
sanur.exe SomePassword & goto :eof
(unwrap the line above!)
c:\winnt\explorer.exe
pause

You can get sanur.exe from http://www.commandline.co.uk.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top