<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>PowerShell script to disable inactive accounts in Active Directory</title><link>http://blogs.technet.com/bahramr/archive/2008/01/25/powershell-script-to-disable-inactive-accounts-in-active-directory.aspx</link><description>In order to improve network security and at the same conform with regulatory requirements, companies have to make sure that they disable stalled accounts in their domains in a timely manner. The two scripts described in this post show you how you can</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Find Disabled and Inactive User and Computer Accounts using Powershell - Part I &amp;laquo; Just Another Sysadmin</title><link>http://blogs.technet.com/bahramr/archive/2008/01/25/powershell-script-to-disable-inactive-accounts-in-active-directory.aspx#3019983</link><pubDate>Tue, 25 Mar 2008 08:28:20 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3019983</guid><dc:creator>Find Disabled and Inactive User and Computer Accounts using Powershell - Part I « Just Another Sysadmin</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://justanothersysadmin.wordpress.com/2008/03/24/find-disabled-and-inactive-user-and-computer-accounts-using-powershell-part1/"&gt;http://justanothersysadmin.wordpress.com/2008/03/24/find-disabled-and-inactive-user-and-computer-accounts-using-powershell-part1/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: PowerShell script to disable inactive accounts in Active Directory</title><link>http://blogs.technet.com/bahramr/archive/2008/01/25/powershell-script-to-disable-inactive-accounts-in-active-directory.aspx#3066005</link><pubDate>Wed, 04 Jun 2008 17:46:15 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3066005</guid><dc:creator>Doc Dish</dc:creator><description>&lt;p&gt;I have found that when retrieving the User account properties (e.g. &amp;quot;string]$lastLogonInterval = $user.Properties.lastlogontimestamp&amp;quot;) the property value is only correctly retrieved if the property name is all lowercase (e.g. &amp;quot;lastlogontimestamp&amp;quot;). Any other case causes a null value to be returned.&lt;/p&gt;
&lt;p&gt;If you look at the property names in ADSI Edit, for example, they are all Camel cased (e.g. &amp;quot;lastLogonTimestamp&amp;quot;)&lt;/p&gt;
</description></item></channel></rss>