Solved

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

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction: Recently, I got a requirement to zip all files individually with batch file script in Windows OS. I don't know much about scripting, but I searched Google and found a lot of examples and websites to complete my task. Finally, I was ab…
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
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…

707 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

13 Experts available now in Live!

Get 1:1 Help Now