Link to home
Start Free TrialLog in
Avatar of t3buna
t3buna

asked on

Send Message to users whose accounts are about to expire

Gday all,
                a pretty straight forward question. I need to be able to send  messages  to users who's accounts are about to expire in AD. I have a lot of contractors who are only allowed to have access for one year at a time, but some are extended and thus need to reapply for access. This invovles a a far bit of process and can take up to a week, during which time thier account could expire. This is not for passwords but accounts. This needs to be automated and ideally be able to run down each day they have left. The message needs to appear like it does when your password is about to expire.

Cheers Me
Avatar of deroyer
deroyer

Quest has a great tool called password manager which has this feature.  I definitely would recommend using this tool for simplicity.  It also allows you to setup a report server to run reports to find the status of your network users.

I current use the PEWA tool see this link.(it says its for Win2K but it works on Win2k3 as well)..  http://support.microsoft.com/kb/221977
Avatar of t3buna

ASKER

I need something for accounts that are about to expire, not passwords
PEWA does both...
dsquery user | dsget user -samid -acctexpires  (This will return the user account in the left column and in the right column the date the account expires. It will be a date or the word "never")

you can automate that through .bat script, then with some clever scripting use blat to send a message to the users.  I am working on a similar script now and will post it when I get it complete if this thread remains open.
Avatar of t3buna

ASKER

Thanks Deroyer..that would be a great help
ASKER CERTIFIED SOLUTION
Avatar of deroyer
deroyer

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of t3buna

ASKER

Thanks..this has been a great help..I will update once I take time out to automate it
Avatar of t3buna

ASKER

You have been a great help...thanks for the dedication to the problem
no worries I was working on a similar concept at the time I saw this.  Thank you