Mikael Ronaldo Halim is on Facebook. Join Facebook to connect with Mikael Ronaldo Halim and others you may know. Facebook gives people the power to share. The alien from Meatballs Part 2. #alien #meatballs #part #2 #worst #movie #ever.
Change local user passwords using txt random password list
I need to change around 50 local user accounts on one machine. I have a txt file containing the usernames on each line and a txt file with the randomly generated unique passwords on each line.
I've written this:
I want to make sure I'm on the right path before I attempt to use it. Does this look correct for what I want to do?
EDIT: So I tried all of the fixes here but I'm now getting this error when trying any of them:
Set-LocalUser : Cannot bind parameter 'Password'. Cannot convert the 'P@ssw0rd' value of type 'System.String' to type 'System.Security.SecureString'. At C:MyScriptsResetLocalUserPasswordv3.ps1:14 char:56