Software >> OS >> Windows >> Command Line >>  How to use FOR to loop through a set of literals and run a command on it - for example to set the password for a set of users

FOR %a in (user1 user2 user3 user4) do net user %a newpassword