Solved

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

Posted on 2008-10-16
2
429 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

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Shadow IT is coming out of the shadows as more businesses are choosing cloud-based applications. It is now a multi-cloud world for most organizations. Simultaneously, most businesses have yet to consolidate with one cloud provider or define an offic…
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…

840 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