wattmil Posted November 5, 2005 Share Posted November 5, 2005 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 More sharing options...
doudou Posted November 18, 2005 Share Posted November 18, 2005 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 + ServerLocalization.au3 - localize your scriptsTLI.au3 - type information on COM objects (TLBINF emulation)TLBAutoEnum.au3 - auto-import of COM constants (enums)AU3Automation - export AU3 scripts via COM interfacesTypeLibInspector - OleView was yesterday Coder's last words before final release: WE APOLOGIZE FOR INCONVENIENCEĀ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now