Advertisement
Guest User

zsk

a guest
Dec 6th, 2016
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. import-module ActiveDirectory
  2. $input=$args[0]
  3. $stringInput=$(Get-Content $input)
  4. $name,$firstname,$secondname,$pass=$stringInput.split(',')
  5. write-host $name
  6. write-host $firstname
  7. write-host $secondname
  8. write-host $pass
  9. $pass=convertto-SecureString -string $pass -Asplaintest -force
  10. new-aduser $name -GivenName $firstname -surname $secondname -AccountPassword $pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement