<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Vbscript on Evan Hoffman</title><link>https://evan.wtf/tags/vbscript/</link><description>Recent content in Vbscript on Evan Hoffman</description><generator>Hugo</generator><language>en-US</language><copyright>Evan Hoffman</copyright><lastBuildDate>Thu, 29 Apr 2010 11:44:44 +0000</lastBuildDate><atom:link href="https://evan.wtf/tags/vbscript/index.xml" rel="self" type="application/rss+xml"/><item><title>Generate a report of Exchange mailbox sizes broken out by department and location</title><link>https://evan.wtf/2010/04/29/generate-a-report-of-exchange-mailbox-sizes-broken-out-by-department-and-location/</link><pubDate>Thu, 29 Apr 2010 11:44:44 +0000</pubDate><guid>https://evan.wtf/2010/04/29/generate-a-report-of-exchange-mailbox-sizes-broken-out-by-department-and-location/</guid><description>&lt;p&gt;I found a script a few months ago that generated a CSV report of mailbox size, which included the Mailbox Name (usually the user&amp;rsquo;s name), size in Kbytes, number of items, which server it&amp;rsquo;s on, etc. This was very helpful, but I wanted to see which department within the company used the most space on the mail server, and the department wasn&amp;rsquo;t one of the pieces of data included in the report. It took a while but I figured out how to do LDAP lookups in vbscript and was able to add that info, so the report now has the user&amp;rsquo;s department, office location, and quota limit in it as well as the other fields. This makes it very easy to do a PivotChart in Excel to generate a pie chart of the size by department. The script is attached - change the extension to .vbs to run it. You&amp;rsquo;ll need to plug in your Exchange server and domain controller where the placeholders currently are.&lt;/p&gt;</description></item></channel></rss>