<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>sheenaustin.com &#187; Email Notification</title>
	<atom:link href="http://www.sheenaustin.com/tag/email-notification/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sheenaustin.com</link>
	<description>my home on the interweb</description>
	<lastBuildDate>Wed, 21 Jul 2010 01:59:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Active Directory Password Expiry Reminder Email</title>
		<link>http://www.sheenaustin.com/2009/06/19/active-directory-password-expiry-reminder-email/</link>
		<comments>http://www.sheenaustin.com/2009/06/19/active-directory-password-expiry-reminder-email/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 03:18:00 +0000</pubDate>
		<dc:creator>Sheen</dc:creator>
				<category><![CDATA[Windows Scripting]]></category>
		<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Email Notification]]></category>
		<category><![CDATA[Password Expiry]]></category>

		<guid isPermaLink="false">http://www.sheenaustin.com/2009/06/19/active-directory-password-expiry-reminder-email/</guid>
		<description><![CDATA[If you have managed an Active Directory installation that has a large number of users who connect to the network infrequently, you may have faced a problem where the user’s password expires when they are away from the network and possibly leaving them in a situation where they are not able to reset their password [...]


Related posts:<ol><li><a href='http://www.sheenaustin.com/2009/05/04/active-directory-audit-script/' rel='bookmark' title='Permanent Link: Active Directory Audit Script'>Active Directory Audit Script</a></li>
<li><a href='http://www.sheenaustin.com/2008/12/06/script-to-kill-processes-older-than-x-days/' rel='bookmark' title='Permanent Link: Script to kill processes older than x days.'>Script to kill processes older than x days.</a></li>
<li><a href='http://www.sheenaustin.com/2009/10/07/how-to-backup-and-restore-active-directory/' rel='bookmark' title='Permanent Link: How to Backup and Restore Active Directory'>How to Backup and Restore Active Directory</a></li>
<li><a href='http://www.sheenaustin.com/2009/05/18/get-list-of-machines-by-os-type-from-active-directory/' rel='bookmark' title='Permanent Link: Get list of machines by OS type from Active Directory'>Get list of machines by OS type from Active Directory</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>If you have managed an Active Directory installation that has a large number of users who connect to the network infrequently, you may have faced a problem where the user’s password expires when they are away from the network and possibly leaving them in a situation where they are not able to reset their password remotely.</p>
<p>I recently was in this situation and had to write a script to intimate users about an impending password expiry. Here is what the script does:</p>
<p><span id="more-127"></span></p>
<p>The script queries your domain for all users and checks for the last password change date. This value is compared against you max password age value and then sends an email reminder to the user that is password is about to expire in x days. This email reminder is sent 9, 6 and 3 days before the actual password expiry date, giving the user enough time to reset the password without getting locked out.</p>
<p>You can schedule the script to run every day in which case you will need to write a simple batch file to call this script and maybe even log the output to a file. The script can be run under the system account. You can save the following line as a batch file that can be used to call the script:</p>
<blockquote><p><span style="color: #000000;">cscript “Path\to\the\vbs\script” &gt; PwdExpyEmail.log</span></p></blockquote>
<p>You can download the script <a href="http://www.sheenaustin.com/wp-content/uploads/2009/06/PasswordExpiryEmail.zip">here</a>.</p>
<p>Note: You will have to edit the values between the **** to suit your environment.</p>


<p>Related posts:<ol><li><a href='http://www.sheenaustin.com/2009/05/04/active-directory-audit-script/' rel='bookmark' title='Permanent Link: Active Directory Audit Script'>Active Directory Audit Script</a></li>
<li><a href='http://www.sheenaustin.com/2008/12/06/script-to-kill-processes-older-than-x-days/' rel='bookmark' title='Permanent Link: Script to kill processes older than x days.'>Script to kill processes older than x days.</a></li>
<li><a href='http://www.sheenaustin.com/2009/10/07/how-to-backup-and-restore-active-directory/' rel='bookmark' title='Permanent Link: How to Backup and Restore Active Directory'>How to Backup and Restore Active Directory</a></li>
<li><a href='http://www.sheenaustin.com/2009/05/18/get-list-of-machines-by-os-type-from-active-directory/' rel='bookmark' title='Permanent Link: Get list of machines by OS type from Active Directory'>Get list of machines by OS type from Active Directory</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.sheenaustin.com/2009/06/19/active-directory-password-expiry-reminder-email/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>
