Hi all,

I'm trying unsuccessfully to make a workaround for the aliasing to be
able to add aliases from a cutom ASP webpage.  My solution is to use
ASPExec to execute rcmd.exe on the
web server to run the addalias command.  

I've realized I need to run a net use command first to access an NT
account with the proper permissions to run rcmd, which I've done.  I
have logged on to a permission-less machine on our network, and figured
out which commands I need to run to do this.  I was able to successfully
do everything I need to.  The problem I have, is when using ASPExec to
do the exact same commands, it fails.  The net use works fine...but it
won't run the rcmd.exe at all.  Can anyone help me?  If we get this
worked out, I know a lot of us can benefit from this.  Thanks
inadvance...

The code I use is:

Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "net use \\hercules" Executor.Parameters = "*****
/USER:WCNET\*****" 
Response.Write "Attempting to execute " & Executor.Application & "<br>"
strResult1 = Executor.ExecuteDOSApp 
Executor.Application = "rcmd.exe" 
Executor.Parameters = "\\hercules" 
Response.Write "Attempting to execute " & Executor.Application & "<br>" 
strResult2 = Executor.ExecuteDOSApp 
Executor.Application = "addalias" 
Executor.Parameters = "asptest=jeunderwood2" 
Response.Write "Attempting to execute " & Executor.Application & "<br>" 
strResult3 = Executor.ExecuteDOSApp 
Response.Write "The result of this call was: " & strResult1 & "<br>" &
strResult2 & "<br>" & strResult3 


and the browser returned:

        Attempting to execute net use \\hercules
        Attempting to execute rcmd.exe
        Attempting to execute addalias
        The result of this call was: The command completed successfully.

        Connected to \\hercules Error:8 - Internal error = 6 
        ERROR: Could not create process

Jeff Underwood
WestCoastNet
(877)996-9700
[EMAIL PROTECTED]

Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

Reply via email to