Solved

Create user accounts from an excel spreadsheet

Posted on 2011-03-15
4
1,015 Views
Last Modified: 2012-05-11
Need a script to create multple user accounts from a spreadsheet.
0
Comment
Question by:ntr2def
  • 2
4 Comments
 
LVL 11

Expert Comment

by:RickSheikh
ID: 35141055
0
 
LVL 1

Author Comment

by:ntr2def
ID: 35141173
Nope need a Vb script. I can do it in powershell
0
 
LVL 11

Expert Comment

by:RickSheikh
ID: 35141267
0
 
LVL 65

Accepted Solution

by:
RobSampson earned 500 total points
ID: 35143579
There's an example of creating user from Excel here:
http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_26460342.html

This is the structure of the Excel spreadsheet:
      strGivenName = Trim(objExcel.ActiveSheet.Cells(intRow, "A").Value)
      strSurname = Trim(objExcel.ActiveSheet.Cells(intRow, "B").Value)
      strUserName = Trim(objExcel.ActiveSheet.Cells(intRow, "C").Value)
      strDescription = Trim(objExcel.ActiveSheet.Cells(intRow, "D").Value)
      strDisplayName = Trim(objExcel.ActiveSheet.Cells(intRow, "E").Value)
      strOffice = Trim(objExcel.ActiveSheet.Cells(intRow, "F").Value)
      strPhone = Trim(objExcel.ActiveSheet.Cells(intRow, "G").Value)


Regards,

Rob.
0

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question