Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


execute asp script with different user credentials

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,3140
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> execute asp script with different user credentials
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 execute asp script with different user credentials - 5/27/2005 1:01:19 AM   
  atlas05

 

Posts: 1
Score: 0
Joined: 5/27/2005
From:
Status: offline
Hi

I've written an asp script that creates a local user on a W2k3 server. It works fine so far.
The script is executed with the credentials of the IUSR_Machinename.
I don't like to give this user the right to create local users.

Is it possible to run the asp script with an other user or does anyone know how to pass user and password in the script?

Here is my little script:

Set objContainer = GetObject("WinNT://servername")
Set objUser = objContainer.Create("user", user)
objUser.SetPassword pwd
objUser.SetInfo


Thanks for any help
Andy
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> execute asp script with different user credentials Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts