<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: VBScript - Export a list of all Mailboxes with their home Server, Storage Group and Database.</title>
	<link>http://benchristian.com</link>
	<description>Observations and thoughts from an IT guy...</description>
	<pubDate>Thu, 20 Nov 2008 12:54:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>

	<item>
		<title>By: benoit</title>
		<link>http://benchristian.com/vbscript-export-a-list-of-all-mailboxes-with-their-home-server-storage-group-and-database/#comment-790</link>
		<author>benoit</author>
		<pubDate>Tue, 01 May 2007 17:10:45 +0000</pubDate>
		<guid>http://benchristian.com/vbscript-export-a-list-of-all-mailboxes-with-their-home-server-storage-group-and-database/#comment-790</guid>
					<description>Thanks</description>
		<content:encoded><![CDATA[<p>Thanks</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Luka</title>
		<link>http://benchristian.com/vbscript-export-a-list-of-all-mailboxes-with-their-home-server-storage-group-and-database/#comment-2031</link>
		<author>Luka</author>
		<pubDate>Tue, 11 Dec 2007 11:07:53 +0000</pubDate>
		<guid>http://benchristian.com/vbscript-export-a-list-of-all-mailboxes-with-their-home-server-storage-group-and-database/#comment-2031</guid>
					<description>Thanks a lot ;)</description>
		<content:encoded><![CDATA[<p>Thanks a lot <img src='http://benchristian.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /></p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Bobjan</title>
		<link>http://benchristian.com/vbscript-export-a-list-of-all-mailboxes-with-their-home-server-storage-group-and-database/#comment-2362</link>
		<author>Bobjan</author>
		<pubDate>Wed, 13 Feb 2008 16:55:14 +0000</pubDate>
		<guid>http://benchristian.com/vbscript-export-a-list-of-all-mailboxes-with-their-home-server-storage-group-and-database/#comment-2362</guid>
					<description>This Script is Good.

can you help in extending the same to display Entire forest, it's showing only Id's in Domain.

Thanks,
Bobjan</description>
		<content:encoded><![CDATA[<p>This Script is Good.</p>
<p>can you help in extending the same to display Entire forest, it&#8217;s showing only Id&#8217;s in Domain.</p>
<p>Thanks,<br />
Bobjan</p>
]]></content:encoded>
				</item>
	<item>
		<title>By: Ben Christian</title>
		<link>http://benchristian.com/vbscript-export-a-list-of-all-mailboxes-with-their-home-server-storage-group-and-database/#comment-2365</link>
		<author>Ben Christian</author>
		<pubDate>Thu, 14 Feb 2008 11:00:44 +0000</pubDate>
		<guid>http://benchristian.com/vbscript-export-a-list-of-all-mailboxes-with-their-home-server-storage-group-and-database/#comment-2365</guid>
					<description>Cheers Bobjan.  Because the users reside in specific domains, you need to query each domain to return the information for them.  The easiest way to do what you want would be to run the script for each domain and then combine the results (it's possible to have the script iterate through a list of domains and output the results from each but I don't have time to test that for you at the moment!)

This partilcar script uses the RootDSE object to get the current domain (i.e the domain that the user running the script is logged into).  I tend to use this method to avoid hard-coding domain names, but in your case you will want to specify each domain in your forest.

All you need to do is change the code slightly, and then run the script for each of your domains.  

Remove the following lines of code:


Set rootDSE = GetObject("LDAP://RootDSE")
DomainContainer = rootDSE.Get("defaultNamingContext")

And replace them with:

DomainContainer = "dc=yourdomain,dc=com"

Basically, if one of your domains is called yourdomain.com then the above code will work, you could go ahead and run that script and then change it again for your other domain(s).  For example, If another on of your domains was called yourotherdomain.com.au then you would use:

DomainContainer = "dc=yourotherdomain,dc=com,dc=au"

And then run the script again.

Let me know how you go with that..

Cheers, Ben.</description>
		<content:encoded><![CDATA[<p>Cheers Bobjan.  Because the users reside in specific domains, you need to query each domain to return the information for them.  The easiest way to do what you want would be to run the script for each domain and then combine the results (it&#8217;s possible to have the script iterate through a list of domains and output the results from each but I don&#8217;t have time to test that for you at the moment!)</p>
<p>This partilcar script uses the RootDSE object to get the current domain (i.e the domain that the user running the script is logged into).  I tend to use this method to avoid hard-coding domain names, but in your case you will want to specify each domain in your forest.</p>
<p>All you need to do is change the code slightly, and then run the script for each of your domains.  </p>
<p>Remove the following lines of code:</p>
<p>Set rootDSE = GetObject(&#8221;LDAP://RootDSE&#8221;)<br />
DomainContainer = rootDSE.Get(&#8221;defaultNamingContext&#8221;)</p>
<p>And replace them with:</p>
<p>DomainContainer = &#8220;dc=yourdomain,dc=com&#8221;</p>
<p>Basically, if one of your domains is called yourdomain.com then the above code will work, you could go ahead and run that script and then change it again for your other domain(s).  For example, If another on of your domains was called yourotherdomain.com.au then you would use:</p>
<p>DomainContainer = &#8220;dc=yourotherdomain,dc=com,dc=au&#8221;</p>
<p>And then run the script again.</p>
<p>Let me know how you go with that..</p>
<p>Cheers, Ben.</p>
]]></content:encoded>
				</item>
</channel>
</rss>
