If $number is an array from 1 to 300 and for every number or $n we run New-ADUser -name $n were going to get 300 users with names like 1, 2 , 3, 4..300.
001
002 003 004 005 006 |
PS C:\> 1..5 # sample Array
1 2 3 4 5 |
001
002 003 004 |
$number = 1..300
foreach ($n in $number){ New-ADUser -name $n -verbose } |
No comments:
Post a Comment