Jump to content
Sign in to follow this  
richie6700

Problem with script

Recommended Posts

richie6700

Hy!!! (sorry for my bad English)

Why I have error ????

$objConnection = ObjCreate("ADODB.Connection")
$objConnection.Open ("Provider=ADsDSOObject")

$objCommand = ObjCreate("ADODB.Command")

$objCommand.ActiveConnection = $objConnection
$objCommand.CommandText = "<ldap://ldap.domain.fr:389/ou=people,o=domain.fr>;(objectclass=person);cn;subtree"

$rs = $objCommand.execute

I have this error :

The requested action with this object has failed.:

$rs = $objCommand.execute

$rs = $objCommand.execute^ ERROR

Thx

Share this post


Link to post
Share on other sites
Joon

I know this works.

$objConnection.Provider = "ADsDSOObject"
    $objConnection.Open ("Active Directory Provider")

Edited by Joon

Share this post


Link to post
Share on other sites
richie6700

No it's same error....

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  

×