Sign in to follow this  
Followers 0
wattmil

ASP and RunAsSet

2 posts in this topic

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 ??

Share this post


Link to post
Share on other sites



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:


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 

Share this post


Link to post
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
Sign in to follow this  
Followers 0