1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Active Directory and Windows XP

Discussion in 'Windows XP' started by TechRetard, Jul 20, 2009.

Thread Status:
Not open for further replies.
Advertisement
  1. TechRetard

    TechRetard Thread Starter

    Joined:
    Feb 24, 2003
    Messages:
    88
    Is there a way to reset user's active directory pws from the command prompt in windows xp?
     
  2. Techmonkeys

    Techmonkeys

    Joined:
    Feb 10, 2005
    Messages:
    625
    You can do this from the command prompt on the server (assuming server 2003) by the following:

    Alternatively if this from your machine and your are domain admin try installing the AdminPak.msi from MS as this will give you all the server admin tools on your local PC.

    http://www.microsoft.com/downloadS/...15-c8f4-47ef-a1e4-a8dcbacff8e3&displaylang=en
     
  3. TechRetard

    TechRetard Thread Starter

    Joined:
    Feb 24, 2003
    Messages:
    88
    I am using Windows XP (not server 2003) and would like to reset active directory from the command prompt. I can open up active directory from my computer and search for a user and reset it, but would like to know the command line to do it if possible for programming reasons.
     
  4. loserOlimbs

    loserOlimbs

    Joined:
    Jun 19, 2004
    Messages:
    7,800
    Try this: from http://support.microsoft.com/kb/322684

    Resetting a User Password

    1. Click Start, and then click Run.
    2. In the Open box, type cmd.
    3. At the command prompt, type the following command:
    dsmod user user_dn -pwd new_password
    This command uses the following values:
    * user_dn specifies the distinguished name of the user for which the password will be reset.
    * new_password specifies the password that will replace the current user password
    4. If you want to require the user to change this password at the next logon process, type the following command:
    dsmod user user_dn -mustchpwd {yes|no}

    NOTE: If a password is not assigned, the first time the user tries to log on (by using a blank password), the following logon message is displayed:
    You are required to change your password at first logon
    After the user has changed the password, the logon process continues.

    You must reset the services that are authenticated with a user account if the password for the service's user account is changed.

    NOTE: To view the complete syntax for this command, and to obtain more information about entering more user account information, at a command prompt, type dsmod user /?.
     
  5. TechRetard

    TechRetard Thread Starter

    Joined:
    Feb 24, 2003
    Messages:
    88
    I don't know if its b/c i'm on win xp or i'm typing in the wrong commands... i don't know what "ou" means or "dc=com"

    I know what my domain is, my domain controller, i have user IDs and user full names to test but it isn't working

    using that link you gave me, all it says is to type dsmod user username -pwd password which gives the error "dsmod failed:Value for 'Target object for this command' has incorrect format.
     
  6. Curly

    Curly

    Joined:
    Apr 1, 2002
    Messages:
    1,249
    ou = organizational unit
    dc = domain component

    But I am a little confused. Windows XP does not have the Active Directory service.
     
  7. TechRetard

    TechRetard Thread Starter

    Joined:
    Feb 24, 2003
    Messages:
    88
    Maybe it's linking to the server via admin pack?
     
  8. Curly

    Curly

    Joined:
    Apr 1, 2002
    Messages:
    1,249
    What server OS are you using? Techmonkeys already offered the steps used with Server 2003. But you said that you are not using that, and did not disclose which one you are using. Are you creating a domain account or local user account?
     
  9. TechRetard

    TechRetard Thread Starter

    Joined:
    Feb 24, 2003
    Messages:
    88
    active directory sits on a server 2003, i am typing the command from a windows xp machine. I am not "creating" anything, just trying to find the correct syntax to reset pws. Maybe i am just typing the <userDN> wrong....i don't really understand the OU=, DC=, DC=...can I omit these? I know what my domain controller is...if i just type
    Code:
    Dsmod user  "CN=John Doe, DC=dc01" -pwd password -mustchpwd yes
    i get an error

    What does DC=com mean...do i need that?

    also tried:
    dsquery user dc=dc01 -name John* and got "dsquery failed:A referral was returned from the server.
     
  10. Curly

    Curly

    Joined:
    Apr 1, 2002
    Messages:
    1,249
    The coding is LDAP. A domain is broken down into two components (hence, DC). For example, google.com would be DC=google, DC=com. Yes, you do need that.

    An organizational unit (OU) is a container that represents a grouping of resources. Your Active Directory Users and Computers snap-in will show you all of your organizational units.

    Note: I absent mindedly misworded DC in post #6. DC actually means domain component. Sorry for the confusion.
     
  11. Sponsor

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/844777

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice