Re: Password Expiration
From: Michel Gallant (MVP) (neutron@istar.ca)
Date: 10/30/02
- Next message: Bill Gilliam: "mptasking service, what is it for?"
- Previous message: Tom: "Annoying warning message"
- In reply to: TwistedPair: "Password Expiration"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 30 Oct 2002 14:57:38 -0500 From: "Michel Gallant (MVP)" <neutron@istar.ca>
WSH/vbscript solution:
From: Michael Harris (Please.Respond@To.NewsGroup)
Subject: Re: ADSI to check password expiration
Newsgroups: microsoft.public.scripting.wsh
Date: 1999/09/23
Set oUser = GetObject("WinNT://" & "domainname/username" & ",USER")
vExpireDays = DateDiff("d",Now(),CDate(oUser.PasswordExpirationDate))
msgbox "Name: " & oUser.Name & vbCrLf
& "FullName: " & oUser.FullName & vbCrLf
& "Password Expiration Date: "
& oUser.PasswordExpirationDate & vbCrLf
& "Password expires in " & vExpireDays & " days"
- Michel Gallant
MVP Security
http://home.istar.ca/~neutron
TwistedPair wrote:
> Hi,
> Is there a way to tell how long before a user's password will expire, or how
> long it has expired?
>
> Thanks
> Pair
- Next message: Bill Gilliam: "mptasking service, what is it for?"
- Previous message: Tom: "Annoying warning message"
- In reply to: TwistedPair: "Password Expiration"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|