This script works with one group per user; how can I add more groups to each user? (some users have more groups than others)
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Open _
("C:\Scripts\New_users.xls")
intRow = 2
Do Until objExcel.Cells(intRow,1).Value = ""
strComputer = "dellcat01"
Set objGroup = GetObject("WinNT://" & strComputer & objExcel.Cells(intRow, 2).Value)
Set objUser = GetObject("WinNT://" & objExcel.Cells(intRow, 1).Value)
objGroup.Add(objUser.ADsPath)
intRow = intRow + 1
Loop
objExcel.Quit
Set objExcel = CreateObject("Excel.Application")
Set objWorkbook = objExcel.Workbooks.Open _
("C:\Scripts\New_users.xls")
intRow = 2
Do Until objExcel.Cells(intRow,1).Value = ""
strComputer = "dellcat01"
Set objGroup = GetObject("WinNT://" & strComputer & objExcel.Cells(intRow, 2).Value)
Set objUser = GetObject("WinNT://" & objExcel.Cells(intRow, 1).Value)
objGroup.Add(objUser.ADsPath)
intRow = intRow + 1
Loop
objExcel.Quit