Solved

IS there any script or tool to set the User Account activation date in AD

Posted on 2008-10-16
2
427 Views
Last Modified: 2013-12-24
IS there any script or tool to set the User Account activation date in AD?

it is something like how we set expiration date for user acct,the same i would need to enable the account on specified date...
0
Comment
Question by:adpindia
2 Comments
 
LVL 65

Accepted Solution

by:
RobSampson earned 500 total points
ID: 22737852
Hi, the only way you can set an "activation" date is run this code at the time you need it enabled.

You could schedule a Windows task to set the account to enabled.

Set objUser = GetObject("CN=Joe Bloggs,OU=Users,OU=Main Office,DC=domain,DC=com")
objUser.AccountDisabled = False
objUser.SetInfo

If you want to configure an "expiration" date, use the code provided here:
http://www.microsoft.com/technet/scriptcenter/resources/qanda/apr07/hey0405.mspx

Regards,

Rob.
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

Suggested Solutions

APEX (Application Express) is used to develop a web application from Oracle. SQL Workshop is one of the tools that comes with Oracle APEX to query or modify the database objects or to make any changes to the structure.
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

947 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

20 Experts available now in Live!

Get 1:1 Help Now