There is no such object on the server



Hello,

I'm trying to write a script that will get me info on a user account.
But I'm having a problem with GetObject. Below is my entire script (2
lines), yes I know it doesn't do much. I'm just trying to figure out
what the problem is.
------
Set objUser = GetObject ("LDAP://
cn=username,ou=city,ou=users,dc=corp,dc=acme,dc=local")
Wscript.Echo "Password last changed: " & objUser.passwordLastChanged
------

I get a Windows Script Host error
Line: 1
Char: 1
Error: There is no such object on the server
Code: 80072030
Source: (null)

The username is spelled correctly. I have an OU for each city with an
office, and in each one there is another OU called "users". I tried
it both ways, ou=city,ou=users and ou=users,ou=city. Everything is
spelled correctly. What is the problem? Is it case sensitive, am I
missing a field, am I missing a space, what?

Please help.

Thanks,
Joe
.



Relevant Pages

  • Re: Im new to scripting a I working on a project that I need some help with.
    ... After that the script ... >> that the user account is not valid. ... > it to the Administrators group: ... If the user does not have it, maybe a RunAs solution ...
    (microsoft.public.scripting.vbscript)
  • Re: Memory consumption PowerShell
    ... The mechanism of the Identity Management system (it is Novell Identity ... And we could initiate to run a script oout side the IDN 3.0. ... is the case we want to do, if a new user account was created. ... memory. ...
    (microsoft.public.windows.server.scripting)
  • Re: Im new to scripting a I working on a project that I need some help with.
    ... > on the local network taken care of, I can run a batch file that can do a run ... > that the user account is not valid. ... In the link below is a script that creates a new user account and adds ... Different RunAs products listed here, ...
    (microsoft.public.scripting.vbscript)
  • Re: simple Q for advanced: how to find out what rundll32.exe is executing?
    ... You may use the following script. ... Lists all the processes running in the ... currently logged on user account. ... Dim strUserName ...
    (microsoft.public.windowsxp.help_and_support)
  • Need some MySQL query help...
    ... to help organize and automate user account creation in a large HP-UX ... passwd entry to the current database entry. ... the script simply proceeds to the next entry. ... exactly how to test for inequality of all the variables in the passwd file. ...
    (perl.dbi.users)