Jump to content

How to convert this VB Script to autoit?


SpecialK
 Share

Recommended Posts

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

Link to comment
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
Link to comment
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!

Link to comment
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

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...