Sign in to follow this  
Followers 0
SpecialK

How to convert this VB Script to autoit?

6 posts in this topic

Hello,

can you please give me a little support for converting this script to autoit?

Set ou = GetObject("LDAP://dc01.enom.corp.com/ou=Abwesend,ou=Users,ou=Berlin,ou=Locations,dc=enom,dc=corp,dc=com")
For Each obj In ou                                       
    WScript.Echo obj.name                                
Next

I want to learn a little bit Ldap sripting in Autoit and need the convertet script to get startet.

Thank you

SpecialK

Share this post


Link to post
Share on other sites



Hi

you can find a sample under

#524939

n.b. this forum have a search function. you can search for ldap ;-)

Share this post


Link to post
Share on other sites

I did search for ldap a lot :mellow:

But i need exact my example translated in autoit to compare it to vbs and unterstand is.

SpecialK

Share this post


Link to post
Share on other sites

This is a tough one. Wait...

$ou = ObjGet("LDAP://dc01.enom.corp.com/ou=Abwesend,ou=Users,ou=Berlin,ou=Locations,dc=enom,dc=corp,dc=com")
For $obj In $ou                                      
    ConsoleWrite($obj.name & @CRLF)                       
Next

Share this post


Link to post
Share on other sites

This is a tough one. Wait...

$ou = ObjGet("LDAP://dc01.enom.corp.com/ou=Abwesend,ou=Users,ou=Berlin,ou=Locations,dc=enom,dc=corp,dc=com")
For $obj In $ou                                      
    ConsoleWrite($obj.name & @CRLF)                       
Next
If you don't know where to start almost everything is tough <scnr>

BTW: Thanks for your reply. I'm not very familiar with all that object stuff, and it helped me for a different task :mellow:

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

Share this post


Link to post
Share on other sites

This is a tough one. Wait...

$ou = ObjGet("LDAP://dc01.enom.corp.com/ou=Abwesend,ou=Users,ou=Berlin,ou=Locations,dc=enom,dc=corp,dc=com")
For $obj In $ou                                      
    ConsoleWrite($obj.name & @CRLF)                       
Next
Thank you very much!

Now i can work with this sample script.

SpecialK

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