<?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>Edwin M SarmientoActive Directory password &#8211; Edwin M Sarmiento</title>
	<atom:link href="https://www.edwinmsarmiento.com/category/active-directory-password/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.edwinmsarmiento.com</link>
	<description>Intentional Excellence</description>
	<lastBuildDate>Mon, 13 Apr 2026 21:00:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
<site xmlns="com-wordpress:feed-additions:1">84283043</site>		<item>
		<title>Extract user&#8217;s last password set in Active Directory using PowerShell</title>
		<link>https://www.edwinmsarmiento.com/extract-users-last-password-set-in-active-directory-using-powershell/</link>
		<comments>https://www.edwinmsarmiento.com/extract-users-last-password-set-in-active-directory-using-powershell/#respond</comments>
		<pubDate>Tue, 08 Jul 2008 10:30:00 +0000</pubDate>
		<dc:creator>Edwin M Sarmiento</dc:creator>
				<category><![CDATA[Active Directory password]]></category>
		<category><![CDATA[Windows PowerShell]]></category>
		<guid isPermaLink="false">http://bassplayerdoc.wordpress.com/2008/07/08/extract-users-last-password-set-in-active-directory-using-powershell</guid>

				<description><![CDATA[Just a follow up on my previous post, here&#8217;s the script to do just that in PowerShell. It extracts the name and the last time the password was changed and displays it in the host.]]></description>
					<content:encoded><![CDATA[<p><span style="font-family:arial;">Just a follow up on my previous post, here&#8217;s the script to do just that in PowerShell. It extracts the name and the last time the password was changed and displays it in the host.</span></p>
<pre class="brush: powershell; title: ; notranslate">
$strFilter = &amp;quot;(&amp;amp;(objectCategory=User))&amp;quot;
$Dom = 'LDAP://DC=yourDomain;DC=LOCAL'

$objDomain = New-Object System.DirectoryServices.DirectoryEntry $Dom

$objSearcher = New-Object System.DirectoryServices.DirectorySearcher
$objSearcher.SearchRoot = $objDomain
$objSearcher.PageSize = 1000
$objSearcher.Filter = $strFilter
$objSearcher.SearchScope = &amp;quot;Subtree&amp;quot;

$colProplist = &amp;quot;name&amp;quot;, &amp;quot;pwdlastset&amp;quot;
foreach ($i in $colPropList)
{$objSearcher.PropertiesToLoad.Add($i)}
$colResults = $objSearcher.FindAll()
foreach ($objResult in $colResults)
{
$objItem = $objResult.Properties
$objItem.name
&#x5B;datetime]::FromFileTimeUTC($objItem.pwdlastset&#x5B;0])
}

</pre>
]]></content:encoded>
			

		<wfw:commentRss>https://www.edwinmsarmiento.com/extract-users-last-password-set-in-active-directory-using-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
				<post-id xmlns="com-wordpress:feed-additions:1">116</post-id>	</item>
	</channel>
</rss>