I put my asp script up on a web server and didn't require authentication on the page, so basically it was running as IUSR_SERVER. Anyhow, just to report, I get an error returned on the User.SetInfo: -2147024891. But the funny thing is that it works!! Weird...
-----Original Message----- From: Evans Chris - cevans [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 8:52 AM To: NT 2000 Discussions Subject: RE: AD passwords Here are to VB Scripts that might get you started. Changing a User Password Using a VBScript Active Server Page Dim User Dim UserName Dim UserDomain Dim NewPassword Dim OldPassword UserDomain = "Target_User_Domain" UserName = "Target_User_Name" NewPassword = "Superm@n26" OldPassword = "B@tm@n74!" Set User = GetObject("WinNT://" & UserDomain & "/" & UserName & ",user") Call User.ChangePassword(OldPassword, NewPassword) User.SetInfo Setting a New Value for a User Password Using a VBScript Active Server Page Dim User Dim UserName Dim UserDomain Dim NewPassword UserDomain = "Target_User_Domain" UserName = "Target_User_Name" NewPassword = "Superm@n99" Set User = GetObject("WinNT://" & UserDomain & "/" & UserName & ",user") Call User.SetPassword(NewPassword) User.SetInfo -----Original Message----- From: Alexander Kha Do [mailto:[EMAIL PROTECTED]] Sent: Monday, February 25, 2002 10:47 AM To: NT 2000 Discussions Subject: AD passwords Can you guys think of an easy way for Windows 95 users to change their Active Directory passwords on a mixed mode domain? 2 scenarios - i) if they do "log on to Windows NT domain" in their microsoft networks client settings, and ii) if they don't log on to NT domain. I'm trying to write a vbs script that they might be able to click on to do it, but I'm having a pain of a time. ------ You are subscribed as [EMAIL PROTECTED] Archives: http://www.swynk.com/sitesearch/search.asp To unsubscribe send a blank email to [EMAIL PROTECTED] ********************************************************************* The information contained in this communication is confidential, is intended only for the use of the recipient named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is strictly prohibited. If you have received this communication in error, please re-send this communication to the sender and delete the original message or any copy of it from your computer system. Thank You. ------ You are subscribed as [EMAIL PROTECTED] Archives: http://www.swynk.com/sitesearch/search.asp To unsubscribe send a blank email to [EMAIL PROTECTED] ------ You are subscribed as [email protected] Archives: http://www.swynk.com/sitesearch/search.asp To unsubscribe send a blank email to [EMAIL PROTECTED]
