Solved

Account does not expire in AD server 2003 R2

Posted on 2009-07-03
4
309 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So you have two Windows Servers and you have a directory/folder/files on one that you'd like to mirror to the other?  You don't really want to deal with DFS or a 3rd party solution like Doubletake. You can use Robocopy from the Windows Server 200…
by Batuhan Cetin In this article I will be guiding through the process of removing a failed DC metadata from Active Directory (hereafter, AD) using the ntdsutil tool in a Windows Server 2003 environment. These steps are not necessary in a Win…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

829 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