Jump to content

Windows host script help


Recommended Posts

Hi... I am new to vbs scripting.. :). But I am working on learning... :rolleyes:

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 Password

RemoteUser101 Password

2)ResetPws.vbs

<script code>

Can anyone help me with this? :D

Thanks,

Dtek

Link to comment
Share on other sites


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.com

Custom scripts for cPanel:

http://html.conclase.net/cp/scripts/

Link to comment
Share on other sites

:rolleyes:

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

Link to comment
Share on other sites

  • 2 weeks later...

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\/\/

Link to comment
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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...