[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Enable a specific AD account for 8 hours

Posted on 2011-09-20
2
Medium Priority
?
221 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 2000 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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

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

Here's a look at newsworthy articles and community happenings during the last month.
It’s time for spooky stories and consuming way too much sugar, including the many treats we’ve whipped for you in the world of tech. Check it out!
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…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

650 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