Jump to content

ASP and RunAsSet


wattmil
 Share

Recommended Posts

Hello

I've tried to use the autoit activex under asp pages with IIS6 on Windows 2003 server. It seems to work with few methods, but the runasset method does'nt work properly.

Here is the code i test unsuccesfully :

Function COPYPROFIL(profil_name)

Set objAUTOIT = Server.CreateObject("AutoItX3.Control")

return = objAUTOIT.RunAsSet ("myuser", "mydomain", "mypassword", 0)

objAUTOIT.Run "C:\Program Files\SecCopy\SecCopy.exe"

objAUTOIT.RunAsSet "", "", "", 0

End Function

If i don't put the line : return = objAUTOIT.RunAsSet ("myuser", "mydomain", "mypassword", 0) it works fine; the seccopy.exe is running on my my server background.

If i leave this line with runasset there no error script but seccopy.exe is not running on my server.

I've verified the login and password.....

Any ideas ??

Link to comment
Share on other sites

  • 2 weeks later...

RunAs works in Windows ONLY from within accounts that have the policy 'Run programs as other user' set, IIS or any other Web server runs under a very unprivileged account for good reasons, I would not recommend to enable this policy for this purpose as it is a serious security risk

UDFS & Apps:

Spoiler

DDEML.au3 - DDE Client + Server
Localization.au3 - localize your scripts
TLI.au3 - type information on COM objects (TLBINF emulation)
TLBAutoEnum.au3 - auto-import of COM constants (enums)
AU3Automation - export AU3 scripts via COM interfaces
TypeLibInspector - OleView was yesterday

Coder's last words before final release: WE APOLOGIZE FOR INCONVENIENCEĀ 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...