Changing Local User Passwords

Welcome Forums General PowerShell Q&A Changing Local User Passwords

Viewing 1 reply thread
  • Author
    Posts
    • #263406
      Participant
      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 1 week, 4 days ago by kvprasoon. Reason: Code formatting: please look at https://powershell.org/forums/topic/guide-to-posting-code-2/
    • #263424
      Participant
      Topics: 7
      Replies: 137
      Points: 668
      Helping Hand
      Rank: Major Contributor

      Shouldnt that be:

      Foreach($computer in $computers)

Viewing 1 reply thread
  • You must be logged in to reply to this topic.