Solved

Enable a specific AD account for 8 hours

Posted on 2011-09-20
2
217 Views
Last Modified: 2012-05-12
Hi ;

I have this one account which we allocated for external users. This account will be enable on demand basis. But I wanted it to be expire after 8 hours it is enable. Is there any function is the AD that can do that ?
0
Comment
Question by:chongbenkee
[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 9

Accepted Solution

by:
ghodder earned 500 total points
ID: 36571714
Open the user account in ADUC, open the "Account" tab, click "Logon hours" and only enable the block of 8 hours that you wish the account to be active for on whichever day of the week is required. Also set "Expire at end of" to the current date so that the account is disabled at the end of that day.
0
 
LVL 6

Expert Comment

by:Kiran Ch
ID: 36572906
easiest way is by powershell
use this example : Set-ADUser -AccountExpirationDate "05/01/2012 5:00:00 PM"
but you need to download Active Directory module for Windows PowerShell...
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

Suggested Solutions

This article describes my battle tested process for setting up delegation. I use this process anywhere that I need to setup delegation. In the article I will show how it applies to Active Directory
Recently, Microsoft released a best-practice guide for securing Active Directory. It's a whopping 300+ pages long. Those of us tasked with securing our company’s databases and systems would, ideally, have time to devote to learning the ins and outs…
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

696 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