Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Scripting > Script to obtain last password change date

Reply
Thread Tools Display Modes

Script to obtain last password change date

 
 
Bettie Claxton
Guest
Posts: n/a

 
      10-31-2008
I am creating a script to get the date of the last password change for
each user in Users in abc.corp. I am trying to get the syntax right for the
Get Object for the user. It keeps failing on the Get Object command with the
error 80072030, There is no such object on the server. I copied the command
out of the script center and it is supposed to work against 2003 AD. The
line
is:
Set objUser = GetObject ("LDAP://CN=<userid>,OU=Users,DC=abc,DC=corp")

I used my id, so there should definitely be an object. Any ideas of why it
would fail?

Also, can someone suggest a good book to learn the basics of scipting?

--
Bettie
 
Reply With Quote
 
 
 
 
Richard Mueller [MVP]
Guest
Posts: n/a

 
      11-01-2008

"Bettie Claxton" <> wrote in message
news:0163BBC3-9008-40FA-9F3E-...
>I am creating a script to get the date of the last password change for
> each user in Users in abc.corp. I am trying to get the syntax right for
> the
> Get Object for the user. It keeps failing on the Get Object command with
> the
> error 80072030, There is no such object on the server. I copied the
> command
> out of the script center and it is supposed to work against 2003 AD. The
> line
> is:
> Set objUser = GetObject ("LDAP://CN=<userid>,OU=Users,DC=abc,DC=corp")
>
> I used my id, so there should definitely be an object. Any ideas of why
> it
> would fail?
>
> Also, can someone suggest a good book to learn the basics of scipting?
>
> --
> Bettie


See my reply in microsoft.public.windows.server.active_directory.

The best book I have seen on scripting, especially for admin tasks in AD, is
"Microsoft Windows 2000 Scripting Guide - Automating System Administration".
It covers VBScript, WSH, ADSI, ADO, and WMI. I like the hardcopy book, but
the text is available online at:

http://www.microsoft.com/resources/d..._overview.mspx

I discuss LDAP binding strings (which is what you are struggling with) in
this link:

http://www.rlmueller.net/LDAP_Binding.htm

Also, I dicuss the many "names" associated with user objects in this link:

http://www.rlmueller.net/Name_Attributes.htm

--
Richard Mueller
MVP Directory Services
Hilltop Lab - http://www.rlmueller.net
--


 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script for last password change date Bettie Claxton Active Directory 3 10-31-2008 09:19 PM
Re: Setting Last Password Change date Richard Mueller Active Directory 2 01-14-2006 12:45 AM
How to obtain password expiration date Lardy Windows Small Business Server 4 11-11-2005 12:09 AM
Script to query date of password expiration Jason T. Parker Active Directory 3 04-03-2005 04:36 PM
Last Password Change Date Active Directory 6 08-17-2004 06:39 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59