Solved

Account does not expire in AD server 2003 R2

Posted on 2009-07-03
4
305 Views
Last Modified: 2012-05-07
When  I set a AD Account to expire a given date , it will not expire , the Account is still enable , I have try to log on any program and it works ,I Dont understand why the Account doesnt expire .
I dont know what the problem is ,I have try to look at some group polices , but there is no GP related to the problem .. may some hot fix , service pack.

Cant somebody please help
0
Comment
Question by:johnfreak
  • 2
  • 2
4 Comments
 
LVL 5

Expert Comment

by:mredfelix
ID: 24771106
you are setting the account to expire and not the password. IS the net time wrong?
try it via command line
"   /EXPIRES:{date | NEVER}    Causes the account to expire if date is
                              set. NEVER sets no time limit on the"
0
 

Author Comment

by:johnfreak
ID: 24771381
I don`t Understand , should i type  /EXPIRES:{date | NEVER}  .. it dosent work .. syntax is incorrect..
And I dont not about the net time is wrong , how do i test that
0
 
LVL 5

Accepted Solution

by:
mredfelix earned 50 total points
ID: 24796379
hi

load up a command prompt

net time \\timesrv /set /yes
see this document  http://support.microsoft.com/kb/314090 here is a list of time servers http://support.microsoft.com/kb/262680


and try the expire command line via wmi

You can try set password expiration via WMI, using wmic command line like this,

cmd> wmic path Win32_UserAccount where Name='testusername' set PasswordExpires=false
0
 

Author Comment

by:johnfreak
ID: 24801408
Thanks it works now
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
Numerous times I have been asked this questions that what is it that makes my machine log on so slow, there have been cases where computers took 23 minute exactly after taking password and getting to the desktop. Interesting thing was the fact th…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now