Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Create User PowerShell

$
0
0

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



Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>