Untitled

 avatar
unknown
plain_text
5 months ago
409 B
7
Indexable
Import-Module activedirectory

New-ADUser -Name(Read-Host "Enter Name") -GivenName(Read-Host "Enter Given Name ") -Surname(Read-Host "Enter Surname") -SamAccountName(Read-Host "Enter SamAccountName") -UserPrincipalName(Read-Host "Enter UPN eg @aciplab.com") -Path "Ou=Marketing,DC=ACIPLAB,DC=com" -AccountPassword(Read-Host -AsSecureString "Enter Secure Password") -ChangePasswordAtLogon $true -Enabled $true
Editor is loading...
Leave a Comment