Re: using "Wscript.Shell" in asp

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance

From: David Wang [Msft] (someone_at_online.microsoft.com)
Date: 03/20/04


Date: Fri, 19 Mar 2004 16:27:09 -0800

The identity that is running the ASP page is probably not the same as when
you execute the command or from a vbs file.

Your choices are:
1. Enable authentication and disable anonymous access to the ASP page
2. If anonymous access is enabled, allow the configured anonymous user
permission to dtsrun and anything else.

I suggest you do #1 because #2 is risky from a security perspective.

-- 
//David
IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
//
"Jeho" <j.lezy@b2l.com> wrote in message
news:71addc2b.0403190651.1c4dfa24@posting.google.com...
Hello,
I want to use the "dtsrun" command in an ASP page.
Here is the script :
Set objScriptShell = Server.CreateObject("Wscript.Shell")
objScriptShell.Run "dtsrun -S serv-IIS5 -N TDB_IMPORT_DTS1_jeho -U
login -P password"
When i execute the page, i get no error, but the dtsrun does not seem
to work.
While executing the DTS from SQL Server Enterprise Manager, it works
fine.
Using the dtsrun command in a vbs file works fine too, like written
below :
Set objScriptShell = WScript.CreateObject("Wscript.Shell")
objScriptShell.Run "dtsrun -S serv-IIS5 -N TDB_IMPORT_DTS1_jeho -U
login -P password"
Does anyone know where the error comes from ?
Thanks for helping
Jeho


Relevant Pages