Jump to content

Change Windows User Password and name


alinuzzu
 Share

Recommended Posts

Hello,

I am trying to change (not delete and create new!) a User's profile name and password and want to run the script at login time. Has anyone dealt with this problem before?

Any help will be appreciated.

LE: I would like do it silently not via GUI.

Edited by alinuzzu
Link to comment
Share on other sites

@allinuzu

It is not recommended to change the name of the profile this will currupt the user environment.

Better way is to log on to the new user and copy all relevant data from the old profile to the new profile.

This can change a password

Dim $objComputer

$objComputer = ObjGet("LDAP://CN=computername,DC=WINDOWS2000,DC=COM")
$objComputer.SetPassword ("computername$")

Regards

ptrex

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
 Share

  • Recently Browsing   0 members

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