Jump to content

Problem with script


Recommended Posts

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

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...