Re: Checking if a user has logged in and changed his/her password



Yes thx I know - checked those first, but I didn't find exactly what I was
looking for...

Well guess I will just have to try and get the pieces I need from the
scripts there and make a working one on my own :-) If noone already has one
that is...

It's the way I usually work anyways, so like I said earlier shouldn't be
much of a problem. Was just trying to save some time here. Appreciate the
reply :-)

-Marius

"Corni Bogaarts" wrote:

> Have a look here:
> http://www.microsoft.com/technet/scriptcenter/scripts/ad/users/pwds/default.mspx
>
>
> On Mon, 4 Apr 2005 04:09:02 -0700, "Marius Wilberg"
> <MariusWilberg@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> >I need to make a script that checks all the users in my AD if they have "User
> >must change password at next logon" flags set, and if they do write the
> >user.DisplayName and the user.sAMAccountName into a text file
> >
> >Shouldn't be hard to do, but since I'm rather inexperienced at Windows
> >Server scripting I thought I'd ask first for once :)
> >
> >const pathbase = "OU=Employees,OU=Base OU,DC=Corp,DC=company,DC=com"
> >
> >Under Employees I have CZ, NL, NO, SE and UK OUs which are where the users
> >are located.
> >
> >Cheers
> >
> >-Marius
> >
>
>
.



Relevant Pages

  • Re: "Sxxxx"s and "Kxxxx"s in /etc/rc(*).d/
    ... interface is brought up. ... thx for your help! ... I read the debian references and there are some sentences like ... Scripts beginning with S are run with the argument start." ...
    (Debian-User)
  • [SuSE 9.0] possible symlink attacks in some scripts
    ... some scripts shipped with suse 9.0 ... i have done a litte reseach on a SuSE linux 9.0 box ... rm -rf $tmp ... #thx for that info ...
    (Bugtraq)
  • ifcfg
    ... thx for infos? ... -- redhat-list mailing list unsubscribe mailto:redhat-list-request@redhat.com?subject=unsubscribe ...
    (RedHat)
  • user logon hours...
    ... how i can use scripts to set users' logon hours? ... i don't know scripting on server, thx all! ... Prev by Date: ...
    (microsoft.public.windows.server.scripting)
  • RE: Login scripts not executing
    ... We are using windows 2003 in bothe the forests. ... We are not using Group Policy for logon scripts, ... controller and given the path in the user properties-profiles-logon scripts. ...
    (microsoft.public.win2000.active_directory)