Changing Local User Passwords

Welcome Forums General PowerShell Q&A Changing Local User Passwords

Viewing 1 reply thread
  • Author
    • #263406
      Topics: 1
      Replies: 0
      Points: 11
      Rank: Member

      Hello All, I am new to PowerShell and learning on the fly primarily via my new BFF Google. I need to change the change a local user password on about 250 machines on my domain. The user is a backdoor admin, I’m not a coder by any strech but was handed this. I have found some scripts get me close but then fail. 

      This is what I have come up with so far, it runs, prompts for me to enter a new password, and completes with no errors. But when I try to login to my machine with the LocalUser account and enter the password I just created it gives me password not correct. Any help would be greatly appriciated. Not even sure if I’m  on the right track

      Thank you in advance

      • This topic was modified 3 months, 1 week ago by kvprasoon. Reason: Code formatting: please look at
    • #263424
      Topics: 10
      Replies: 210
      Points: 1,023
      Helping Hand
      Rank: Community Hero

      Shouldnt that be:

      Foreach($computer in $computers)

Viewing 1 reply thread
  • The topic ‘Changing Local User Passwords’ is closed to new replies.