The Windows PowerShell commands needed to create the new user Kugan Tech in the preceding example were as follows: New-ADUser -DisplayName:”Kugan Tech” -GivenName:”Kugan” -Name:”Kugan Tech” -Path:”OU=IT Users OU,OU=IT OU,DC=nkcode,DC=com” -SamAccountName:”Kugan” -Server:”MIS-SRV.nkcode.com” -Surname:”Tech” -Type:”user” -UserPrincipalName:kugan@nkcode.com Set-ADAccountPassword -Identity:”CN=Kugan Tech,OU=IT Users OU, OU=IT OU,DC=nkcode,DC=com” -NewPassword:”System.Security.SecureString”
Read More