• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 437
  • Last Modified:

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

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
ADP india
Asked:
ADP india
1 Solution
 
RobSampsonCommented:
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now