<?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>Jigsaw Boys &#187; Exchange</title>
	<atom:link href="http://www.jigsawboys.com/category/windows/exchange/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jigsawboys.com</link>
	<description>Security, Network and Computer Tech Tip Database!</description>
	<lastBuildDate>Wed, 17 Aug 2011 22:59:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Vbscript: Output specific users mailbox sizes under Exchange 2000/2003 to csv</title>
		<link>http://www.jigsawboys.com/2010/10/07/exchange-user-mailbox-size-vb/</link>
		<comments>http://www.jigsawboys.com/2010/10/07/exchange-user-mailbox-size-vb/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 23:49:19 +0000</pubDate>
		<dc:creator>Burnsie</dc:creator>
				<category><![CDATA[Exchange]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/?p=388</guid>
		<description><![CDATA[This script generates a CSV file containing a users name, exchange server, mailbox size and total number of items.  It queries Active Directory to find out which mailbox server the user lives on, then goes and finds the total size of their mailbox.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>What does it do?<br />
This script generates a CSV file containing a users name, exchange server, mailbox size and total number of items.  It queries Active Directory to find out which mailbox server the user lives on, then goes and finds the total size of their mailbox.</p>
<p>How do I use it?<br />
1.  Edit the vbs file and change the strLDAPString to suit your environment<br />
2.  Provide a list of users (one AD user name per line) in the userlist.txt file<br />
3.  Run this script.<br />
4.  Open CSV file</p>
<p><code><br />
'This VBS script queries a list of users and outputs a CSV file containing their mailbox sizes<br />
'It is designed for Exchange 2000/2003.  2007 lets you do the same thing a lot easier with Powershell<br />
'Written 07/10/2010 by Burnsie<br />
'</p>
<p>'User Configurable settings<br />
'This string contains your base domain LDAP string<br />
strLDAPString =LDAP://dc=YOUR,dc=WINDOWS,dc=DOMAIN,dc=com</p>
<p>'Declare variables<br />
Dim oSession<br />
Dim oInfoStores<br />
Dim oInfoStore<br />
Dim StorageUsed<br />
Dim NumMessages<br />
Dim strProfileInfo<br />
Dim sMsg</p>
<p>'Input and Output files<br />
Set iFSO = CreateObject("Scripting.FilesyStemObject")<br />
Set oFSO = CreateObject("Scripting.FilesyStemObject")</p>
<p>'Input file (Change this if you change the input file name)<br />
Set ifile = iFSO.OpenTextFile("userlist.txt")</p>
<p>'Output file<br />
Set ofile = iFSO.CreateTextFile("Mailbox Details.csv")<br />
ofile.writeline "UserName,FullName,Exchange Server,Storage Used (Bytes),Total Items"</p>
<p>'Set up AD stuff<br />
Const E_ADS_PROPERTY_NOT_FOUND  = &#038;h8000500D<br />
Const ADS_SCOPE_SUBTREE = 2<br />
Set objConnection = CreateObject("ADODB.Connection")<br />
Set objCommand =   CreateObject("ADODB.Command") </p>
<p>'Loop through each user one by one.<br />
Do until ifile.AtEndOfLine<br />
	struser = ifile.ReadLine</p>
<p>	'Connect to AD and find out where the users mailbox is located.  Also grabs a lot of other details.<br />
	objConnection.Provider = "ADsDSOObject"<br />
	objConnection.Open "Active Directory Provider"<br />
	Set objCommand.ActiveConnection = objConnection<br />
	objCommand.Properties("Page Size") = 1000<br />
	objCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE<br />
	'Change this if you change the domain<br />
	objCommand.CommandText = _<br />
		"SELECT Name, adspath FROM '" &#038; strLDAPString &#038; "' WHERE objectCategory='user' " &#038; "AND sAMAccountName='" &#038; struser &#038; "'"<br />
	Set objRecordSet = objCommand.Execute<br />
	objRecordSet.MoveFirst<br />
		strpath = objRecordSet.Fields("ADsPath").Value<br />
		set objuser = GetObject(strPath) </p>
<p>	'If there is no error, then get the details.<br />
	If Err.Number = 0 then<br />
		strExchangeServer = (Mid(objuser.msExchHomeServerName,(InStrRev(objuser.msExchHomeServerName,"=")+ 1)))<br />
		strFullName = objuser.fullname<br />
	Else<br />
		wscript.echo "Error User Account May Not Exist or Corrupt AD Info For Account"<br />
	end if<br />
	objConnection.Close </p>
<p>   On Error Resume Next</p>
<p>   'Create MAPI Session object.<br />
   Set oSession = CreateObject("MAPI.Session")<br />
   if Err.Number <> 0 Then<br />
	  sMsg = "Error creating MAPI.Session."<br />
	  sMsg = sMsg &#038; "Make sure CDO 1.21 is installed. (Run it on an Exchange server is probably easiest)"<br />
	  sMsg = sMsg &#038; Err.Number &#038; " " &#038; Err.Description<br />
	  WScript.Echo sMsg<br />
   End If</p>
<p>	'Build logon string<br />
   strProfileInfo = strExchangeServer &#038; vbLf &#038; strUser</p>
<p>   'Log on to mailbox<br />
   oSession.Logon , , False, True, , True, strProfileInfo<br />
   if Err.Number <> 0 Then<br />
      Set oSession = Nothing<br />
   End If</p>
<p>   'Grab the information stores.<br />
   Set oInfoStores = oSession.InfoStores<br />
   if Err.Number <> 0 Then</p>
<p>      Set oInfoStores = Nothing<br />
      Set oSession = Nothing<br />
   End If</p>
<p>   'Loop through information stores to find the user's mailbox.<br />
   For Each oInfoStore In oInfoStores<br />
      If InStr(1, oInfoStore.Name, "Mailbox - ", 1) <> 0 Then<br />
         '&#038;HE080003 = PR_MESSAGE_SIZE<br />
         StorageUsed = oInfoStore.Fields(&#038;HE080003)<br />
         if Err.Number <> 0 Then<br />
            sMsg = "Error retrieving PR_MESSAGE_SIZE: "<br />
            sMsg = sMsg &#038; Err.Number &#038; " " &#038; Err.Description<br />
            WScript.Echo sMsg<br />
            WScript.Echo "Server: " &#038; obArgs.Item(0)<br />
            WScript.Echo "Mailbox: " &#038; obArgs.Item(1)<br />
            Set oInfoStore = Nothing<br />
            Set oInfoStores = Nothing<br />
            Set oSession = Nothing<br />
         End If</p>
<p>         '&#038;H33020003 = PR_CONTENT_COUNT<br />
         NumMessages = oInfoStore.Fields(&#038;H36020003)</p>
<p>         if Err.Number <> 0 Then</p>
<p>            sMsg = "Error Retrieving PR_CONTENT_COUNT: "<br />
            sMsg = sMsg &#038; Err.Number &#038; " " &#038; Err.Description<br />
            Set oInfoStore = Nothing<br />
            Set oInfoStores = Nothing<br />
            Set oSession = Nothing<br />
         End If</p>
<p>         strInfoStore = oInfoStore.Name<br />
         strStorageUsed = StorageUsed<br />
         strTotalItems = NumMessages<br />
      End If<br />
   Next</p>
<p>   ' Log off.<br />
   oSession.Logoff</p>
<p>   ' Clean up memory.<br />
   Set oInfoStore = Nothing<br />
   Set oInfoStores = Nothing<br />
   Set oSession = Nothing </p>
<p>   'Echo to screen for people who are impatient and like to see what is going on<br />
   wscript.echo strUser &#038;","&#038; strFullName &#038;","&#038; strExchangeServer &#038;"," &#038; strStorageUsed &#038;","&#038; strTotalItems</p>
<p>   'Write to CSV file<br />
   ofile.writeline strUser &#038;","&#038; strFullName &#038;","&#038; strExchangeServer &#038;"," &#038; strStorageUsed &#038;","&#038; strTotalItems</p>
<p>loop</p>
<p>'Clean up memory and variables<br />
ifile.close<br />
ofile.close<br />
set ifile = nothing<br />
set ofile = nothing<br />
set wsfile = nothing<br />
</code></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2010/10/07/exchange-user-mailbox-size-vb/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Exchange RPC over HTTPs GUI configuration tool</title>
		<link>http://www.jigsawboys.com/2007/02/14/exchange-rpc-over-https-gui-configuration-tool/</link>
		<comments>http://www.jigsawboys.com/2007/02/14/exchange-rpc-over-https-gui-configuration-tool/#comments</comments>
		<pubDate>Wed, 14 Feb 2007 00:22:31 +0000</pubDate>
		<dc:creator>Burnsie</dc:creator>
				<category><![CDATA[Exchange]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/2007/02/14/exchange-rpc-over-https-gui-configuration-tool/</guid>
		<description><![CDATA[This tool allows you to configure RPC over HTTPs without all that tedious mucking about in regedit Click to download: RPC over HTTPs GUI configuration tool No related posts.


No related posts.]]></description>
			<content:encoded><![CDATA[<p>This tool allows you to configure RPC over HTTPs without all that tedious mucking about in regedit</p>
<p><img src="http://www.jigsawboys.com/wp-content/uploads/2007/02/rpctool.jpg" alt="RPC front end" /></p>
<p>Click to download:  <a href="http://www.jigsawboys.com/wp-content/uploads/2007/02/rpcnofrontend.zip">RPC over HTTPs GUI configuration tool</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2007/02/14/exchange-rpc-over-https-gui-configuration-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Implementing Exchange 2003 Message Journaling</title>
		<link>http://www.jigsawboys.com/2006/11/21/implementing-exchange-2003-message-journaling/</link>
		<comments>http://www.jigsawboys.com/2006/11/21/implementing-exchange-2003-message-journaling/#comments</comments>
		<pubDate>Tue, 21 Nov 2006 10:35:18 +0000</pubDate>
		<dc:creator>Burnsie</dc:creator>
				<category><![CDATA[Exchange]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/2006/11/21/implementing-exchange-2003-message-journaling/</guid>
		<description><![CDATA[I may not agree with the practise&#8230; but message journaling allows you to archive a copy of every message sent into and out of your organisation to meet specific legal requirements. Just be aware of the performance impact it will have on your servers. An excellent article on Implementing Exchange 2003 Message Journaling can be [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>I may not agree with the practise&#8230; but message journaling allows you to archive a copy of every message sent into and out of your organisation to meet specific legal requirements.  Just be aware of the performance impact it will have on your servers.</p>
<p>An excellent article on Implementing Exchange 2003 Message Journaling can be found here:</p>
<p><a href="http://www.msexchange.org/tutorials/Implementing-Exchange-2003-Message-Journaling.html">http://www.msexchange.org/tutorials/Implementing-Exchange-2003-Message-Journaling.html</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2006/11/21/implementing-exchange-2003-message-journaling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Synchronize a Pocket PC with Exchange Server 2003 using GPRS and ActiveSync</title>
		<link>http://www.jigsawboys.com/2006/04/11/synchronize-a-pocket-pc-with-exchange-server-2003-using-gprs-and-activesync/</link>
		<comments>http://www.jigsawboys.com/2006/04/11/synchronize-a-pocket-pc-with-exchange-server-2003-using-gprs-and-activesync/#comments</comments>
		<pubDate>Tue, 11 Apr 2006 03:38:23 +0000</pubDate>
		<dc:creator>Burnsie</dc:creator>
				<category><![CDATA[Exchange]]></category>

		<guid isPermaLink="false">http://www.jigsawboys.com/2006/04/11/synchronize-a-pocket-pc-with-exchange-server-2003-using-gprs-and-activesync/</guid>
		<description><![CDATA[Take this Blackberry; With the advent of SP2 for Exchange, you can now hook up your PDA with Exchange and have it sync using GPRS from where-ever you are, much like a Blackberry. All the information you need can be found at the following link (Thanks to Daniel Petri for doing the hard work) http://www.petri.co.il/how_to_sync_ppc_with_exchange_2003.htm [...]


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Take this Blackberry;</p>
<p>With the advent of SP2 for Exchange, you can now hook up your PDA with Exchange and have it sync using GPRS from where-ever you are, much like a Blackberry.</p>
<p>All the information you need can be found at the following link (Thanks to Daniel Petri for doing the hard work)<br />
<a href="http://www.petri.co.il/how_to_sync_ppc_with_exchange_2003.htm"></p>
<p>http://www.petri.co.il/how_to_sync_ppc_with_exchange_2003.htm</a></p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://www.jigsawboys.com/2006/04/11/synchronize-a-pocket-pc-with-exchange-server-2003-using-gprs-and-activesync/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

