bulk change password with csv file

Comments

3 comments

  • Avatar
    David Mcbride

    Anyone?

    0
    Comment actions Permalink
  • Avatar
    Matt Wade

    In the past when I have done this I copied my excel info into notepad. Then I changed the notepad ext to .bat and it ran all the bulk updates fine

    0
    Comment actions Permalink
  • Avatar
    Dasia Paucek
    ForEach($user in (Import-CSV 'c:\my.csv'))
    {
        Set-ADAccountPassword -Identity $user.identity -NewPassword (ConvertTo-SecureString -String $user.password -AsPlainText -Force)
        # Where identity is a column in the csv that holds a valid identity like the sam account name
        # and where password is the column header in the csv with their plain text password.
    }

    You can do something like that.

     

    Cupcake 2048

    0
    Comment actions Permalink

Please sign in to leave a comment.