Hi friends.
I have a problem with code:
Import-Module Activedirectory
Import-Csv user_conservacao.csv | ForEach-Object{
New-ADUser -Name $_."Nome Completo" -AccountPassword (ConvertTo-SecureString "123456789@WSs" -
AsPlainText -Force) -DisplayName $_."Nome Completo" -GivenName $_."Nome" -Surname $_."Sobrenome"
-UserPrincipalName $_."account" -SamAccountName $_."samaccount" -Enabled $true -Path
"OU=Company,OU=Users,OU=Unit,OU=Operactions,DC=Company,DC=local" -verbose
}
They execute normally, more not create nothing in the my AD.
Any sugestions