<?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; active directory</title>
	<atom:link href="http://blog.marioandwindy.com/tag/active-directory/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>
		<item>
		<title>VBS Scripts</title>
		<link>http://blog.marioandwindy.com/2009/03/30/vbs-scripts/</link>
		<comments>http://blog.marioandwindy.com/2009/03/30/vbs-scripts/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 19:36:27 +0000</pubDate>
		<dc:creator>mleal</dc:creator>
				<category><![CDATA[Geek Zone]]></category>
		<category><![CDATA[active directory]]></category>
		<category><![CDATA[logon scripts]]></category>
		<category><![CDATA[map network drive]]></category>
		<category><![CDATA[map printer]]></category>
		<category><![CDATA[vbs]]></category>
		<category><![CDATA[vbs scripts]]></category>

		<guid isPermaLink="false">http://blog.marioandwindy.com/?p=90</guid>
		<description><![CDATA[At my job, we are moving to all vbs scripts for our login scripts. Here are some that map network drives: &#8212;-begin script&#8212;- dim wshnetwork set wshnetwork = wscript.createobject(&#8220;wscript.network&#8221;) ON ERROR RESUME NEXT wshnetwork.removenetworkdrive &#8220;Z:&#8221; netshare = &#8220;\\servername\sharename&#8221; wshnetwork.mapnetworkdrive &#8220;Z:&#8221;,netshare &#8212;-end script&#8212;- Don&#8217;t forget &#8220;ON ERROR RESUME NEXT&#8221; because the script will die on any [...]]]></description>
			<content:encoded><![CDATA[<p>At my job, we are moving to all vbs scripts for our login scripts.</p>
<p>Here are some that map network drives:</p>
<p>&#8212;-begin script&#8212;-<br />
dim wshnetwork<br />
set wshnetwork = wscript.createobject(&#8220;wscript.network&#8221;)<br />
ON ERROR RESUME NEXT<br />
wshnetwork.removenetworkdrive &#8220;Z:&#8221;<br />
netshare = &#8220;\\servername\sharename&#8221;<br />
wshnetwork.mapnetworkdrive &#8220;Z:&#8221;,netshare<br />
&#8212;-end script&#8212;-</p>
<p>Don&#8217;t forget &#8220;ON ERROR RESUME NEXT&#8221; because the script will die on any errors&#8230;like if the user doesn&#8217;t have a drive mapped called &#8220;z.&#8221;  This would prevent it actually being mapped.</p>
<p>Here&#8217;s another script that connects a printer and sets that printer to default.</p>
<p>&#8212;-begin script&#8212;-<br />
Set objNetwork = CreateObject(&#8220;WScript.Network&#8221;)<br />
objNetwork.AddWindowsPrinterConnection &#8220;\\printerservername\printername&#8221;<br />
objNetwork.SetDefaultPrinter &#8220;\\printerservername\printername&#8221;<br />
&#8212;-end script&#8212;-</p>
<p>Enjoy!</p>
<p>Mario</p>
<h2>Related links:</h2>
<ul>
<li><a href="http://www.starcraft2source.info/starcraft-2-guide-reviews/">Starcraft 2 Guide</a></li>
<li><a href="http://videogame-tester-jobs.com">video game jobs</a></li>
<li><a href="http://retroconsoles.org.uk">SNES Console Games For Sale</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.marioandwindy.com/2009/03/30/vbs-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

