Shot in the dark time...
Several months ago we attempted to do some stuff
which involved using Cold Fusion to set NT ACLs
(permissions) across servers and (NT) domains.
While the command line indicated that all was fine,
the ACLs were never changed. There is some obscure
documentation in the MS KB that indicates that a
number of theoretically possible functions will
fail when you attempt to run them remotely.
This certainly isn't specific to your situation,
but it may point you in the right direction. We
never found a solution.
--- Ed Perrine / Network Tallahassee
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Jeff Underwood
Sent: Monday, February 28, 2000 1:12 PM
To: [EMAIL PROTECTED]
Subject: [IMail Forum] Alias workaround
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.
Please visit http://www.ipswitch.com/support/mailing-lists.html
to be removed from this list.