?
Solved

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

Posted on 2008-10-16
2
Medium Priority
?
432 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:ADP india
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 65

Accepted Solution

by:
RobSampson earned 2000 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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

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

This post looks at MongoDB and MySQL, and covers high-level MongoDB strengths, weaknesses, features, and uses from the perspective of an SQL user.
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
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…
This is a high-level webinar that covers the history of enterprise open source database use. It addresses both the advantages companies see in using open source database technologies, as well as the fears and reservations they might have. In this…

777 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