Ready to get started with anonymous questions today? It's easy! Learn more.
$theOU = read-host "enter OU name" $txtBoxDisplayName = ($txtBoxSurname , $txtBoxGivenName) $txtBoxDescription = read-host "Enter descr" $txtBoxSurname = read-Host "enter surname" $txtBoxGivenName = $txtBoxSurname + $txtBoxGivenName $txtBoxTelephone = read-host "Enter phone #" $txtBoxPassword = "P@$$WORD1" $name = "$givenname $surname" $proxyaddress = read-host "Enter the proxy address" Import-Module activedirectory import-module servermanager New-ADUser -path $myOU -DisplayName $txtBoxDisplayName -Description $txtBoxDescription -Surname $txtBoxSurname -givenname $txtboxgivenname -OfficePhone $txtBoxTelephone -AccountPassword (ConvertTo-SecureString $txtBoxPassword -AsPlainText -force) -enabled:$true
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.