Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: Script to obtain last password change date

HTVi
TV Discussion Newsgroups

Script to obtain last password change date
Bettie Claxton 10/31/2008 9:53:01 PM
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
Re: Script to obtain last password change date
"Richard Mueller [MVP]" <rlmueller-nospam[ at ]ameritech.nospam.net> 11/1/2008 2:01:46 AM

"Bettie Claxton" <BettieClaxton[ at ]discussions.microsoft.com> wrote in message
news:0163BBC3-9008-40FA-9F3E-662313245948[ at ]microsoft.com...
[Quoted Text]
>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/documentation/windows/2000/server/scriptguide/en-us/sagsas_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
--


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen