<?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>JasonSamuel.com &#187; adsutil.vbs</title>
	<atom:link href="http://www.jasonsamuel.com/tag/adsutil-vbs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jasonsamuel.com</link>
	<description>Cool stuff I see in the IT world</description>
	<lastBuildDate>Wed, 25 Jan 2012 21:05:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>How to get the IUSR and IWAM user account passwords on an IIS server</title>
		<link>http://www.jasonsamuel.com/2010/04/28/how-to-get-the-iusr-and-iwam-user-account-passwords-on-an-iis-server/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-get-the-iusr-and-iwam-user-account-passwords-on-an-iis-server</link>
		<comments>http://www.jasonsamuel.com/2010/04/28/how-to-get-the-iusr-and-iwam-user-account-passwords-on-an-iis-server/#comments</comments>
		<pubDate>Wed, 28 Apr 2010 19:19:12 +0000</pubDate>
		<dc:creator>Jason Samuel</dc:creator>
				<category><![CDATA[IIS]]></category>
		<category><![CDATA[adsutil.vbs]]></category>
		<category><![CDATA[IUSR password reset]]></category>

		<guid isPermaLink="false">http://www.jasonsamuel.com/?p=377</guid>
		<description><![CDATA[IIS uses the IUSR_servername guest account to allow anonymous access to websites hosted on the server.  You can always change this to a different account or even change the password for this account yourself.  But sometimes you might be in a situation where you can&#8217;t or don&#8217;t want to change the password but need to [...]<p><a href="http://www.jasonsamuel.com/2010/04/28/how-to-get-the-iusr-and-iwam-user-account-passwords-on-an-iis-server/">How to get the IUSR and IWAM user account passwords on an IIS server</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>

More of my posts you might like:<ol>
<li><a href='http://www.jasonsamuel.com/2009/12/02/how-to-reset-the-root-user-account-for-a-mysql-database/' rel='bookmark' title='How to reset the root user account for a MySQL database'>How to reset the root user account for a MySQL database</a></li>
<li><a href='http://www.jasonsamuel.com/2009/02/09/how-to-remove-a-hidden-user-from-a-bes-server/' rel='bookmark' title='How to remove a hidden user from a BES server'>How to remove a hidden user from a BES server</a></li>
<li><a href='http://www.jasonsamuel.com/2009/06/10/how-to-tell-which-w3wp-exe-worker-process-belongs-to-what-iis-application-pool/' rel='bookmark' title='How to tell which w3wp.exe worker process belongs to what IIS application pool'>How to tell which w3wp.exe worker process belongs to what IIS application pool</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>IIS uses the IUSR_servername guest account to allow anonymous access to websites hosted on the server.  You can always change this to a different account or even change the password for this account yourself.  But sometimes you might be in a situation where you can&#8217;t or don&#8217;t want to change the password but need to know what password Windows has set for it when you installed IIS.</p>
<p>Here&#8217;s how the IUSR account works by the way:</p>
<p>1. User types in http://www.yoursite.com</p>
<p>2. IIS gets the page request, imitates the IUSR_servername account, then executes/accesses the webpage located in your home directory using this account.  It checks NTFS permissions and such during this time as well.  Please note that the IUSR account has the &#8220;Log on Locally&#8221; permission by default to accomplish all this.</p>
<p>3. If everything goes well, authentication is completed and the requested page is sent back to the user&#8217;s browser.  If something doesn&#8217;t go well, such as anonymous access is disabled or NTFS permissions to your root directory don&#8217;t included the IUSR account, the user will typically get an &#8220;HTTP 403 Access Denied&#8221; error message.</p>
<p>Anyhow, you can find the IUSR account password without having to reset it by using the Adsutil.vbs tool.  Open up command prompt and navigate to C:\Inetpub\AdminScripts.  Then type:</p>
<blockquote><p>cscript.exe adsutil.vbs get w3svc/anonymoususerpass</p></blockquote>
<p>or</p>
<blockquote><p>cscript.exe adsutil.vbs get w3svc/wamuserpass</p></blockquote>
<p>to display the IUSR and IWAM account passwords respectively.  You will notice that the passwords are just a bunch of asterisks.  To make them cleartext, navigate to C:\Inetpub\AdminScripts and edit Adsutil.vbs in Notepad.  Find this line:</p>
<blockquote><p>IsSecureProperty = True</p></blockquote>
<p>and change it to:</p>
<blockquote><p>IsSecureProperty = False</p></blockquote>
<p>Now run the script commands above again and you will see the passwords in clear text.  Make sure to put Adsutil.vbs back to the way it was because it&#8217;s not best practice in my opinion to leave your tool with clear text enabled.</p>
<p>Please note that with IIS 7, this has all changed:</p>
<p>1. The IUSR built-in account replaces the IUSR_Servername and IWAM_Servername accounts.  It also no longer has a password since it is a local service account and not a user account so this blog post does not apply to IIS 7 at all.</p>
<p>2. The IIS_IUSRS built-in group replaces the IIS_WPG group (worker process group)</p>
<p><a href="http://www.jasonsamuel.com/2010/04/28/how-to-get-the-iusr-and-iwam-user-account-passwords-on-an-iis-server/">How to get the IUSR and IWAM user account passwords on an IIS server</a> is a post from: <a href="http://www.jasonsamuel.com">JasonSamuel.com</a></p>
<p>More of my posts you might like:<ol>
<li><a href='http://www.jasonsamuel.com/2009/12/02/how-to-reset-the-root-user-account-for-a-mysql-database/' rel='bookmark' title='How to reset the root user account for a MySQL database'>How to reset the root user account for a MySQL database</a></li>
<li><a href='http://www.jasonsamuel.com/2009/02/09/how-to-remove-a-hidden-user-from-a-bes-server/' rel='bookmark' title='How to remove a hidden user from a BES server'>How to remove a hidden user from a BES server</a></li>
<li><a href='http://www.jasonsamuel.com/2009/06/10/how-to-tell-which-w3wp-exe-worker-process-belongs-to-what-iis-application-pool/' rel='bookmark' title='How to tell which w3wp.exe worker process belongs to what IIS application pool'>How to tell which w3wp.exe worker process belongs to what IIS application pool</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.jasonsamuel.com/2010/04/28/how-to-get-the-iusr-and-iwam-user-account-passwords-on-an-iis-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: www.jasonsamuel.com @ 2012-02-09 18:10:55 -->
