Jump to content

Chriss

Members
  • Posts

    3
  • Joined

  • Last visited

Chriss's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I've changed the line like you told me but it still does not work... :-( Probably you could have anothe look at it.. regards We intercepted a COM Error ! Number is : 0000000A9 Windescription is. Variable must be of type 'Object' Script line number is: 152 We intercepted a COM Error ! Number is : 0000000A9 Windescription is. Variable must be of type 'Object' Script line number is: 153 We intercepted a COM Error ! Number is : 0000000A9 Windescription is. Variable must be of type 'Object' Script line number is: 155
  2. Hi there, probably someone could help me because I've really no Idea what's going wron with this script. I always get following failure. >"C:\Programme\AutoIt3\SciTE\..\autoit3.exe" /ErrorStdOut "\\40.4.200.210\c$\Domainusers.au3" C:\Programme\AutoIt3\Include\adfunctions.au3 (141) : ==> Missing right bracket ')' in expression.: $ObjUser = $ObjOU.Create ("User", $cnname) $ObjUser = ^ ERROR >Exit code: 1 Time: 5.025 CODE#include <adfunctions.au3> #include <ExcelCOM.au3> $sFilePath = "c:\UserAccounts.xls" ;$importfilepath = "c:\Nashuatecimport.csv" $fVisible = 0 $oExcel = _ExcelBookOpen($sFilePath, $fVisible) $datensatz = 1 $line = 12 While $datensatz = 1 $line = $line + 1 $fname = _ExcelReadCell($oExcel, "A" & $line) $lname = _ExcelReadCell($oExcel, "B" & $line) IF $fname = "" Then $datensatz = 0 $user = $fname & "." & $lname $userou = "users=ou, 04unique=ou, GermanUSGGroup=dc ,local=dc" $description = "nothing" _ADCreateUser($userou, $user, $fname, $lname, $description) WEnd _ExcelBookClose($oExcel)
×
×
  • Create New...