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
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
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.
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.
ASKER
Thanks Deroyer..that would be a great help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks..this has been a great help..I will update once I take time out to automate it
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
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