I've got a Windows Server 2012 r2 without domain and active users. No Remote Server Administration Tools (RSAT) are installed and no Csvde command. Is there a way to import users from a csv file ? Thank you in advance. Alessandro
Asked
Active
Viewed 7,427 times
1 Answers
1
As you don't mention an Active Directory, I found a powershell script example to create local username from an CSV.
CreateaHundredUsersFromCSVFile.ps1
Import-Module -Name LocalUserModule
If(!(Test-IsAdministrator)) { “This module requires admin rights.” ; exit }
New-LocalGroup -GroupName testgroup -description “for 100 users”
Import-Csv C:\fso\testusers.csv |
Foreach-Object {
New-localuser -username $_.username -password $_.password
Set-LocalGroup -userName $_.username -GroupName testgroup –add
}
Remove-Module -Name LocalUserModule
Code from there

yagmoth555
- 16,758
- 4
- 29
- 50