1 2 3 4 5 6 7 8 9 10 |
#Content file user.txt: #(line 1)pepito,pass1 #(line 2)juanito,pass2 $userandpass=Get-Content .user.txt foreach($i in $userandpass) { $partiruserandpass=$i.Split(",") net user $partiruserandpass[0] /add $partiruserandpass[1] } |