Sign in to follow this  
Followers 0
arcker

Active directory

3 posts in this topic

hello evry1 ! it's been a long time

i continue to use autoitscript, it's my new passion

so here is my problem : i want to automate an user creation, but there is a problem with

the object, but i don't understand :

;$Domain=InputBox(0,"Domaine","entrer le domaine")
    $Domain="LABO06.btsig"
    Local $ObjDomain = ObjGet("WinNT://" & $Domain)
    $nv = InputBox("Nouveau","Nom du nouvel utilisateur")
    
For $Object In $ObjDomain
    
    $objUSR = $Object.Create("user", "cn=" & "essai")
     
    $objUSR.Put ("samAccountName", "essai") 
    $objUSR.Put ("givenname", "essaigivenname")
    $objUSR.Put ("sn", "essaisn")
    $objUSR.Put ("Description", "utilisateur créé automatiquement")
    $objUSR.SetInfo

Next

so i use scite and the problem is "cannot execute action..bla bla bla... with the line "$objUSR = $Object.Create("user", "cn=" & "essai")

"

if you find, i've just this problem, and after i think i can do evrything with objects

thx

c u


-- Arck System _ Soon -- Ideas make everything

"La critique est facile, l'art est difficile"

Projects :

[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list]

Share this post


Link to post
Share on other sites



Are you using the latest beta version?

In Scite, F5 will run the script in non beta mode, use ALT+F5 or Tools, Beta Run.

J'espere que ca fera l'affaire.


CheersNobby

Share this post


Link to post
Share on other sites

yes i use this !

but the script cannot work

i think that object programmation in auto it is too recent to have a good support on it,

but if i find the problem, i can do everyhting in AD after, and i would like to make a program for it.

merci de l'aide

i hope for an answer

c u all

auto it power


-- Arck System _ Soon -- Ideas make everything

"La critique est facile, l'art est difficile"

Projects :

[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0