Easy Import CSV Users into Active Directory

Опубликовано: 20 Октябрь 2024
на канале: mrholverson
209,519
361

Windows Server 2008 R2 Active Directory user import from a CSV delimited file. Create users in Active Directory the EASY way with a delimited file you create in Excel and Save As... CSV.
Examples here:
------------test.CSV FILE BEGIN--------------
GivenName,Surname,Name,DisplayName,SamAccountName
Tim,Perry,Tim Perry,Tim Perry,TPerry
Larry,Cooper,Larry Cooper,Larry Cooper,LCooper
------------test.CSV FILE END------------
---------- PowerShell Cmd BEGIN ----------
Import-Csv .\test.csv | New-ADUser -Enabled $True -AccountPassword (ConvertTo-SecureString Pass123 -AsPlainText -force) -City Fennimore -State WI
---------- PowerShell Cmd END ----------