Click here to Skip to main content
15,886,873 members
Please Sign up or sign in to vote.
3.67/5 (2 votes)
We have a requirement to limit the access to a set of applications for a fixed period of time (e.g. 24 hours) - is there a way to automate the removal of users from a group after a set time has elapsed?
Posted

You can set Account Expiration on an Active Directory Account.
See:
~ MSND article on the Account-Expires attribute[^]
~ Set-ADAccountExpirationSets - Sets the expiration date for an Active Directory account.[^]

Good luck,
Edo
 
Share this answer
 
Have them access the system/server through a specific network connection. Most network boxes can allow access from certain interfaces on a daily schedule.

This might sound awkward but I think it is more robust and easy to manage/monitor/log than trying to control on a Windows machine.
 
Share this answer
 
Thanks but I don't want the account to expire, I just want them to be removed from the particular group.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900