May 5, 200422 yr Hi... I am new to vbs scripting.. . But I am working on learning... I need a script to re-set a user's password from a flat file. I would like to know if it is posible, that some could give a hand with this or to give some idea on how to get the script to read the file.My Project: I need change a password for a user that I have setup on all my clients (Domain). The user is name as follow (user+ID) ID is the id for the client. For example RemoteUser102.1) ClientsEnv.txt (flat file)User Name PWS------------------ ------------RemoteUser100 PasswordRemoteUser101 Password2)ResetPws.vbs<script code>Can anyone help me with this? Thanks,Dtek
May 9, 200422 yr It depends on the server operating system and other software. UNIX, Linux, Apache, and the specific versions of each. I use all three, but I also use two control panels with a windows type of GUI. Both are already pre-scripted and the conventions you ask about are already built-in. Just a few clicks and job done. The first is the Web Host Manager (WHM) and the second is Control Panel (cPanel) available at www.cpanel.net Demos of both are found at www.demodemo.com Password demo is at http://www.demodemo.com/1/tutorials/whm_xskin_pw.htm Popular script site that covers just about everything:http://www.hotscripts.comCustom scripts for cPanel:http://html.conclase.net/cp/scripts/
May 14, 200422 yr Author MSNwar, Thank for taking the time and pointing me to some reference. I will give this a try.... BTW the script is to be use on Windows 2000 Domains and stand alone servers... Just incase you come across to any scripts that match my search... Peace! \\// | | ---Dtek
May 28, 200422 yr Just use a ADSI connection to the server itself (SAM) or AD, and use the changePassword function.Set oUser = GetObject("WinNT://" & sDomain & "/" & sUserName & _ ",user")oUser.ChangePassword sPword1, sPword2(if you want to use AD use a LDAP path ("LDAP://CN=YourUserName UO=YourUserOU, dc=Dom, DC=COM") gr /\/\o\/\/
Create an account or sign in to comment