<?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>Indented! &#187; information stores</title>
	<atom:link href="http://www.indented.co.uk/index.php/tag/information-stores/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.indented.co.uk</link>
	<description></description>
	<lastBuildDate>Fri, 02 Jul 2010 10:45:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Exchange 2003: Returning mailbox sizes</title>
		<link>http://www.indented.co.uk/index.php/2008/10/28/exchange-2003-returning-mailbox-sizes/</link>
		<comments>http://www.indented.co.uk/index.php/2008/10/28/exchange-2003-returning-mailbox-sizes/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 12:13:20 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[VbScript]]></category>
		<category><![CDATA[information stores]]></category>
		<category><![CDATA[vbs]]></category>

		<guid isPermaLink="false">http://www.highorbit.co.uk/?p=604</guid>
		<description><![CDATA[This script uses WMI and Active Directory queries to return information about mailbox sizes from Exchange and the limits set in Active Directory. Download GetMailboxStatistics.vbs A number of people have been looking for Get-MailboxStatistics for Exchange 2003. I have a PowerShell version of this script for exactly that reason here. This script is only intended [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>This script uses WMI and Active Directory queries to return information about mailbox sizes from Exchange and the limits set in Active Directory.</p>
<p><a href='http://www.indented.co.uk/wp-content/uploads/2010/06/GetMailboxStatistics.txt'>Download GetMailboxStatistics.vbs</a></p>
<p>A number of people have been looking for Get-MailboxStatistics for Exchange 2003. I have a PowerShell version of this script for exactly that reason <a href="http://www.highorbit.co.uk/?p=871">here</a>.<br />
<span id="more-604"></span><br />
This script is only intended for use with Exchange 2003. Exchange 2000 must use MAPI, Exchange 2007 has a PowerShell cmdlet, Get-MailboxStatistics, which can much more easily return this information.</p>
<p>It requires access to WMI on each Exchange Server, but does not require any of the Exchange System Tools. legacyExchangeDN is used to match accounts between AD and Exchange.</p>
<p>The script performs a number of searches in Active Directory. The largest number if multiple Admin Groups are selected (/a:&#8221;Admin Group*&#8221;). It can be instructed to use a single DC by specifying a name with the /dc switch. For forest-wide searches that must be a Global Catalog. If no DC is specified the script executes a DNS query for Global Catalog service records on the current forest name to attempt to find a (responding) GC in the current site, failing back to any GC in the forest otherwise.</p>
<h4>Usage</h4>
<pre class="brush: plain;">
cscript GetMailboxStatistics.vbs [/o] [/s:&lt;exchangeServer&gt;]
        [/a:&quot;&lt;administrative Group Name&gt;&quot;] [/d:&lt;domainName&gt;]
        [/dc:&lt;domainControllerName&gt;] [/f:&lt;fileName&gt;]

One of the following parameters must be specified:

/o      Get statistics from all Exchange Servers in the organisation
        This option overrides all others
/s      Get statistics for this Exchange Server only
        This option overrides all except /o
/a      Get statistics from all Exchange Servers in the specified Administrative Group
/d      Get statistics from all Exchange Servers in the specified Domain

The following parameters are optional:

/dc     A Domain Controller to use for this process. Must be a Global Catalog
        for reporting that covers a Forest. The script will attempt to find a
        GC in the current site if not specified.
/f      File Name for the output. Default file name is MailboxReport.csv
</pre>
<p>The following details are returned by this script:</p>
<ul>
<li>Name</li>
<li>DN</li>
<li>AccountStatus (Enabled / Disabled)</li>
<li>UseDefaultQuotas (True / False)</li>
<li>Warn (in Mb, Warning Limit if specified on User Account)</li>
<li>ProhibitSend  (in Mb, if specified on User Account)</li>
<li>ProhibitSendAndReceive (in Mb, if specified on User Account)</li>
<li>Size (in Mb)</li>
<li>TotalItems</li>
<li>MailboxStatus (BelowLimit, IssueWarning, ProhibitSend, NoChecking, MailboxDisabled)</li>
<li>AssocContentCount (Total Number of messages associated with the mailbox folders)</li>
<li>DeletedMessageSize (in Mb)</li>
<li>LastLoggedOnUser</li>
<li>LastLogon</li>
<li>LastLogoff</li>
<li>DateDeleted (for mailboxes which have been disconnected, waiting to be purged)</li>
<li>MailboxDisplayName</li>
<li>MailboxGuid</li>
<li>ServerName (Exchange Server)</li>
<li>StorageGroup</li>
<li>Store</li>
<li>legacyExchangeDN</li>
</ul>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.indented.co.uk/index.php/2008/10/28/exchange-2003-returning-mailbox-sizes/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>VbScript: GetStores</title>
		<link>http://www.indented.co.uk/index.php/2008/10/06/getstores/</link>
		<comments>http://www.indented.co.uk/index.php/2008/10/06/getstores/#comments</comments>
		<pubDate>Mon, 06 Oct 2008 18:50:02 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Active Directory]]></category>
		<category><![CDATA[Exchange]]></category>
		<category><![CDATA[VbScript]]></category>
		<category><![CDATA[information stores]]></category>
		<category><![CDATA[vbs]]></category>

		<guid isPermaLink="false">http://www.highorbit.co.uk/?p=113</guid>
		<description><![CDATA[A VbScript function to retrieve all Exchange Information Stores from Active Directory, returning the results as a Dictionary object containing the store name and store distinguishedName. Function GetStores ' Return Type: Scripting.Dictionary ' ' Finds all Private Information Stores in AD Const ADS_SCOPE_SUBTREE = 2 Dim objConnection : Set objConnection = CreateObject(&#34;ADODB.Connection&#34;) objConnection.Provider = &#34;ADsDSOObject&#34; [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>A VbScript function to retrieve all Exchange Information Stores from Active Directory, returning the results as a Dictionary object containing the store name and store distinguishedName.<br />
<span id="more-113"></span></p>
<pre class="brush: vb;">
Function GetStores
  ' Return Type: Scripting.Dictionary
  '
  ' Finds all Private Information Stores in AD

  Const ADS_SCOPE_SUBTREE = 2

  Dim objConnection : Set objConnection = CreateObject(&quot;ADODB.Connection&quot;)
  objConnection.Provider = &quot;ADsDSOObject&quot;
  objConnection.Open &quot;Active Directory Provider&quot;

  Dim objCommand : Set objCommand = CreateObject(&quot;ADODB.Command&quot;)
  objCommand.ActiveConnection = objConnection

  Dim objRootDSE : Set objRootDSE = GetObject(&quot;LDAP://RootDSE&quot;)
  objCommand.CommandText = &quot;SELECT name, distinguishedName &quot; &amp; _
    &quot;FROM 'LDAP://&quot; &amp; objRootDSE.Get(&quot;configurationNamingContext&quot;) &amp; _
    &quot;' WHERE objectClass='msExchPrivateMDB'&quot;

  objCommand.Properties(&quot;Page Size&quot;) = 1000
  objCommand.Properties(&quot;Timeout&quot;) = 600
  objCommand.Properties(&quot;Searchscope&quot;) = ADS_SCOPE_SUBTREE
  objCommand.Properties(&quot;Cache Results&quot;) = False

  Dim objRecordSet : Set objRecordSet = objCommand.Execute

  Dim objStores : Set objStores = CreateObject(&quot;Scripting.Dictionary&quot;)

  While Not objRecordSet.EOF
    Dim strDN : strDN = objRecordSet.Fields(&quot;distinguishedName&quot;).Value
    Dim strName : strName = objRecordSet.Fields(&quot;name&quot;).Value
    objStores.Add strDN, strName

    objRecordSet.MoveNext
  WEnd

  Set GetStores = objStores
End Function
</pre>
<h3>Usage example</h3>
<pre class="brush: vb;">
Set objStores = GetStores

For Each strDN in objStores
  WScript.Echo &quot;DN: &quot; &amp; strDN &amp; vbCrLf &amp; &quot;Name: &quot; &amp; objStores(strDN)
Next
</pre>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.indented.co.uk/index.php/2008/10/06/getstores/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
