1. 建立文本文档另存为csv文件,注意编码格式,否则导入后是乱码

    使用powershell批量导入AD用户

    使用powershell批量导入AD用户

  2. 使用powellshell命令导入

    Import-Csv -Path E:\users.csv | foreach { new-aduser -name $_.name -SamAccountName $_.samaccountname -GivenName $_.givenname -Surname $_.surname -DisplayName $_.displayname -Path $_.path -UserPrincipalName $_.userprincipalname -AccountPassword  (ConvertTo-SecureString -string  $_.accountpassword -AsPlainText -Force )  -Enabled $true -ChangePasswordAtLogon $false }

   3.查看建立的用户

使用powershell批量导入AD用户


 本文转自 烟台小崔 51CTO博客,原文链接:http://blog.51cto.com/seawind/1963593

相关文章:

  • 2022-12-23
  • 2021-11-14
  • 2021-09-17
  • 2021-05-16
  • 2021-04-29
  • 2021-09-05
  • 2022-12-23
  • 2021-11-17
猜你喜欢
  • 2021-06-29
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2022-12-23
相关资源
相似解决方案