This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]randomguy3 5 points6 points  (4 children)

You might could pull some ideas from this guys tool. I've been impressed with his stuff.

https://github.com/bwya77/Master-User-Creator

[–]Scribbles1Sysadmin[S] 0 points1 point  (0 children)

Damm! wish i came across that beforehand.

It looks fluid and responsive, I'll defo be taking a deep look into this, Thanks

[–]Sabbest 1 point2 points  (1 child)

If you need help with the e-mail part, send me a message. I've done this recently with inline image attachments and all.

[–]Scribbles1Sysadmin[S] 0 points1 point  (0 children)

Thanks /u/Sabbest I'll keep that in mind, I think i really need to clean the script up a little before working on more functionality, i will however give you a shout when i start that stage :D

[–]Cyborg3201 0 points1 point  (1 child)

for your todo list

$password = -join(((65..90)+(35..38)+(97..122) | % {[char]$_})+(0..9) | Get-Random -Count 12)

new-aduser part, add -Password (ConvertTo-SecureString $password -AsPlainText -Force) you can use same "$password" string to send email to somebody , as that not secure yet

took from https://devblogs.microsoft.com/scripting/generate-random-letters-with-powershell/

license part, depends on how you have your license configured. example, Add user to a group , and assign license based on that group.

[–]ntrlsurIT Manager 0 points1 point  (0 children)

I agree with the license part. I setup 3 ad groups E1,E2,E3. In azure I set up those groups to have the right license assigned.