New-ADUser <USERNAME>
Set-ADAccountPassword <USERNAME> -Reset -NewPassword (ConvertTo-SecureString -AsPlainText "<PASSWORD>" -Force -Verbose) -PassThru
Add-ADGroupMember -Identity "<GROUPNAME>" -Members <USERNAME>
enable-adaccount -identity "<USERNAME>"
No comments:
Post a Comment