<?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>The Leal Family Blog &#187; Exchange 2007</title>
	<atom:link href="http://blog.marioandwindy.com/tag/exchange-2007/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.marioandwindy.com</link>
	<description>A look into the minds that make up the Leal Family</description>
	<lastBuildDate>Wed, 04 Jan 2012 20:58:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Bulk import Active Directory Users and Create Email address</title>
		<link>http://blog.marioandwindy.com/2009/07/01/bulk-import-active-directory-users-and-create-email-address/</link>
		<comments>http://blog.marioandwindy.com/2009/07/01/bulk-import-active-directory-users-and-create-email-address/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 15:18:18 +0000</pubDate>
		<dc:creator>mleal</dc:creator>
				<category><![CDATA[Geek Zone]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[Bulk Email Creation]]></category>
		<category><![CDATA[Bulk User Creation]]></category>
		<category><![CDATA[CSV]]></category>
		<category><![CDATA[Exchange 2007]]></category>
		<category><![CDATA[Exchange 2007 Management Console]]></category>
		<category><![CDATA[Powersheel]]></category>

		<guid isPermaLink="false">http://blog.marioandwindy.com/?p=102</guid>
		<description><![CDATA[I was tasked at work to come up with a way to import new Active Directory accounts and Exchange 2007 email boxes.  I decided to use the Exchange 2007 Management Console which uses lots of powershell. Here is what I came up with: This command is used to import users from a CSV file into [...]]]></description>
			<content:encoded><![CDATA[<p>I was tasked at work to come up with a way to import new Active Directory accounts and Exchange 2007 email boxes.  I decided to use the Exchange 2007 Management Console which uses lots of powershell.</p>
<p>Here is what I came up with:</p>
<p>This command is used to import users from a CSV file into Exchange 2007 creating email boxes and user accounts.  User accounts are set to change password upon first log in.</p>
<p><em>Created 20090630, By Mario Leal</em></p>
<p><strong>NOTES:</strong></p>
<ul>
<li>Command must be copied and pasted into the Exchange Management Console.</li>
<li>You must edit &#8220;C:\CSV\users.csv&#8221; to be the the location of your CSV file.</li>
<li>The CSV file must not have an empty line at the end of the file.</li>
<li>Duplicates will error, you must watch screen to catch them.</li>
<li>Empty middle initial in CSV needs one &#8221; to represent blank.</li>
<li>Output file (output.txt) will give a list of successful imports.</li>
</ul>
<p><strong>Schema (first Line) used for CSV file with an example (second line):</strong><br />
alias,Name,UPN,password,givenName,surname,middleI<br />
maleal,&#8221;Mario Leal&#8221;,email@address.whatever,somepassword,Mario,Leal,A</p>
<p><strong>Reference URLs</strong>:</p>
<p><a href="http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/2582c672-cddb-4446-9329-889139ebb346" target="_blank">http://social.technet.microsoft.com/Forums/en-US/exchangesvradmin/thread/2582c672-cddb-4446-9329-889139ebb346</a><br />
<a href="http://www.exchangepedia.com/blog/2006/11/exchange-server-2007-bulk-creation-of.html" target="_blank">http://www.exchangepedia.com/blog/2006/11/exchange-server-2007-bulk-creation-of.html</a><br />
<a href="http://exchangepedia.com/blog/2006/12/bulk-mailbox-enabling-users-exchange-shell.html" target="_blank">http://exchangepedia.com/blog/2006/12/bulk-mailbox-enabling-users-exchange-shell.html</a></p>
<p><em>&#8212;commandstart&#8212;</em><br />
Import-CSV c:\CSV\users.csv | foreach {</p>
<p>$secureString = ConvertTo-SecureString -string $_.password -AsPlainText –Force</p>
<p>new-mailbox -alias $_.alias -name $_.name -userPrincipalName $_.UPN -FirstName $_.givenName -LastName $_.surname -Initials $_.middleI -database &#8220;Students&#8221; -org TEST -Password $securestring -ResetPasswordOnNextLogon $true</p>
<p>} | out-file -filepath &#8220;c:\CSV\Output.txt&#8221;<br />
<em>&#8212;commandend&#8212;</em></p>
<h2>Related Links:</h2>
<ul>
<li><a href="http://videogame-tester-jobs.com">video games tester job</a></li>
<li><a href="http://retroconsoles.org.uk">SNES Console Games For Sale</a></li>
<li><a href="http://www.bridalflowerssite.com">Bridal Flowers</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.marioandwindy.com/2009/07/01/bulk-import-active-directory-users-and-create-email-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

