<?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>vbscriptblog.com &#187; mailboxlimits</title>
	<atom:link href="http://vbscriptblog.com/category/vbscript/active-directory/mailboxlimits/feed/" rel="self" type="application/rss+xml" />
	<link>http://vbscriptblog.com</link>
	<description>Scripting for Windows Sysadmins</description>
	<lastBuildDate>Wed, 11 Apr 2012 07:23:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Active Directory: VBscript to enumerate all individual mailbox limits in Active Directory/Exchange</title>
		<link>http://vbscriptblog.com/vbscript/active-directory/mailboxlimits/active-directory-vbscript-to-enumerate-all-individual-mailbox-limits-in-active-directoryexchange/</link>
		<comments>http://vbscriptblog.com/vbscript/active-directory/mailboxlimits/active-directory-vbscript-to-enumerate-all-individual-mailbox-limits-in-active-directoryexchange/#comments</comments>
		<pubDate>Wed, 27 Jan 2010 11:18:22 +0000</pubDate>
		<dc:creator>dirk adamsky</dc:creator>
				<category><![CDATA[mailboxlimits]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[cscript]]></category>
		<category><![CDATA[exchange]]></category>
		<category><![CDATA[limits]]></category>
		<category><![CDATA[mailbox]]></category>
		<category><![CDATA[smtp address]]></category>
		<category><![CDATA[vbscript]]></category>

		<guid isPermaLink="false">http://deludi.nl/blog/?p=127</guid>
		<description><![CDATA[This script is intended for reporting purposes. It enumerates all individual mailbox limits in Active Directory/Exchange. Follow the next steps to run the script (no admin rights needed): open your favorite text editor copy and paste the script into the editor save the script (for example c:tempmailboxlimits.vbs) open a command prompt go to &#8220;c:temp&#8221; give [...]]]></description>
			<content:encoded><![CDATA[<p>This script is intended for reporting purposes.<br />
It enumerates all individual mailbox limits in Active Directory/Exchange.</p>
<p>Follow the next steps to run the script  (no admin rights needed):</p>
<ul>
<li>open your favorite text editor</li>
<li>copy and paste the script into the editor</li>
<li>save the script (for example c:tempmailboxlimits.vbs)</li>
<li>open a command prompt</li>
<li>go to &#8220;c:temp&#8221;</li>
<li>give &#8220;cscript mailboxlimits.vbs&#8221; (without quotes) and enter</li>
</ul>
<p>The script:</p>
<pre class="brush: vb; title: ; notranslate">
' Name : mailboxlimits.vbs
' Description : script  to enumerate all individual mailbox limits in Active Directory/Exchange
' Author : dirk adamsky - deludi bv
' Version : 1.00
' Date : 27-01-2010

Set adoCommand = CreateObject(&quot;ADODB.Command&quot;)
Set adoConnection = CreateObject(&quot;ADODB.Connection&quot;)
adoConnection.Provider = &quot;ADsDSOObject&quot;
adoConnection.Open &quot;Active Directory Provider&quot;
adoCommand.ActiveConnection = adoConnection

Set objRootDSE = GetObject(&quot;LDAP://RootDSE&quot;)
strDNSDomain = objRootDSE.Get(&quot;defaultNamingContext&quot;)
strBase = &quot;&lt;LDAP://&quot; &amp; strDNSDomain &amp; &quot;&gt;&quot;
strFilter = &quot;(mDBUseDefaults=FALSE)&quot;
strAttributes = &quot;displayname, mail, mDBStorageQuota, mDBOverQuotaLimit, mDBOverHardQuotaLimit, mDBUseDefaults&quot;

strQuery = strBase &amp; &quot;;&quot; &amp; strFilter &amp; &quot;;&quot; &amp; strAttributes &amp; &quot;;subtree&quot;
adoCommand.CommandText = strQuery
adoCommand.Properties(&quot;Page Size&quot;) = 100
adoCommand.Properties(&quot;Timeout&quot;) = 30
adoCommand.Properties(&quot;Cache Results&quot;) = False

Set objRecordset = adoCommand.Execute
Wscript.echo &quot;displayname&quot; &amp; &quot; ; &quot; &amp; &quot;smtp address&quot; &amp; &quot; ; &quot; &amp; &quot;warning limit&quot; &amp;_
 &quot; ; &quot; &amp; &quot;send limit&quot; &amp; &quot; ; &quot; &amp; &quot;send en receive limit&quot;
objRecordSet.MoveFirst
Do Until objRecordSet.EOF
	Wscript.Echo objRecordSet.Fields(&quot;displayname&quot;).Value &amp; &quot; ; &quot; &amp;_
	objRecordSet.Fields(&quot;mail&quot;).Value &amp; &quot; ; &quot; &amp;_
	objRecordSet.Fields(&quot;mDBStorageQuota&quot;).Value/1024 &amp; &quot; MB &quot; &amp;_
	objRecordSet.Fields(&quot;mDBOverQuotaLimit&quot;).Value/1024 &amp; &quot; MB &quot; &amp;_
	objRecordSet.Fields(&quot;mDBOverHardQuotaLimit&quot;).Value/1024 &amp; &quot; MB &quot;
	objRecordSet.MoveNext
Loop

Set objRecordset = Nothing
Set objRootDSE = Nothing
Set adoConnection = Nothing
Set adoCommand = Nothing
</pre>
<div class="bottomcontainerBox" style="background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fvbscriptblog.com%2Fvbscript%2Factive-directory%2Fmailboxlimits%2Factive-directory-vbscript-to-enumerate-all-individual-mailbox-limits-in-active-directoryexchange%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div>
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://vbscriptblog.com/vbscript/active-directory/mailboxlimits/active-directory-vbscript-to-enumerate-all-individual-mailbox-limits-in-active-directoryexchange/"></g:plusone>
			</div>
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://vbscriptblog.com/vbscript/active-directory/mailboxlimits/active-directory-vbscript-to-enumerate-all-individual-mailbox-limits-in-active-directoryexchange/"  data-text="Active Directory: VBscript to enumerate all individual mailbox limits in Active Directory/Exchange" data-count="horizontal" data-via="dirkadamsky"></a>
			</div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://vbscriptblog.com/vbscript/active-directory/mailboxlimits/active-directory-vbscript-to-enumerate-all-individual-mailbox-limits-in-active-directoryexchange/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>]]></content:encoded>
			<wfw:commentRss>http://vbscriptblog.com/vbscript/active-directory/mailboxlimits/active-directory-vbscript-to-enumerate-all-individual-mailbox-limits-in-active-directoryexchange/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

