Solved

Enable a specific AD account for 8 hours

Posted on 2011-09-20
2
218 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

Are your AD admin tools letting you down?

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

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
This article demonstrates probably the easiest way to configure domain-wide tier isolation within Active Directory. If you do not know tier isolation read https://technet.microsoft.com/en-us/windows-server-docs/security/securing-privileged-access/s…
This video Micro Tutorial explains how to clone a hard drive using a commercial software product for Windows systems called Casper from Future Systems Solutions (FSS). Cloning makes an exact, complete copy of one hard disk drive (HDD) onto another d…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

717 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