<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Batch Adding AD Users</title>
	<atom:link href="http://jon.netdork.net/2007/10/16/batch-adding-ad-users/feed" rel="self" type="application/rss+xml" />
	<link>http://jon.netdork.net/2007/10/16/batch-adding-ad-users?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=batch-adding-ad-users</link>
	<description>The Usual Stuff...</description>
	<lastBuildDate>Fri, 23 Jul 2010 07:30:39 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Jonathan Angliss</title>
		<link>http://jon.netdork.net/2007/10/16/batch-adding-ad-users/comment-page-1#comment-990</link>
		<dc:creator>Jonathan Angliss</dc:creator>
		<pubDate>Thu, 14 Jan 2010 14:33:26 +0000</pubDate>
		<guid isPermaLink="false">http://jon.netdork.net/2007/10/16/batch-adding-ad-users#comment-990</guid>
		<description>&lt;p&gt;Michael,
This page http://www.gregthatcher.com/Papers/VBScript/ExcelExtractScript.aspx has a perfect example of it.  I&#039;d do some tweaking, like make assumptions about the spreadsheet you&#039;re supplying instead of using some of these loops.&lt;/p&gt;

&lt;p&gt;For example, where the author loops through the worksheets, I&#039;d assume the user list is on sheet 1 (you are supplying the list after all).  So:&lt;/p&gt;

&lt;pre&gt;
Set currentWorkSheet = objExcel.ActiveWorkbook.Worksheets(1)
&lt;/pre&gt;

&lt;p&gt;Also, you know how many columns you&#039;ll be supplying, so I&#039;d skip that logic too.  I&#039;d also make the assumption that you have column headers for easier user reading, so skip the first row.&lt;/p&gt;

&lt;p&gt;The above &quot;For I = 1 to 100&quot; code would be replaced with the row loop.&lt;/p&gt;

&lt;pre&gt;
For row = 1 to (usedRowsCount - 1)
  set firstname = Cells(row,1).Value
  set lastname = Cells(row,2).Value
  set email = Cells(row,3).Value
  [.. repeat for other fields ..]
  [.. now here is the code for adding the user as above ..]
Next
&lt;/pre&gt;

&lt;p&gt;If you&#039;re not sure of all the different field name parts (&quot;cn&quot;, &quot;givenName&quot;, etc) the quick and dirty way to figure it out is grab a copy of Softerra&#039;s LDAP Browser which you can get here http://www.ldapbrowser.com, and point it to your domain controller.&lt;/p&gt;

&lt;p&gt;Good luck!&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Michael,
This page <a href="http://www.gregthatcher.com/Papers/VBScript/ExcelExtractScript.aspx" rel="nofollow">http://www.gregthatcher.com/Papers/VBScript/ExcelExtractScript.aspx</a> has a perfect example of it.  I&#8217;d do some tweaking, like make assumptions about the spreadsheet you&#8217;re supplying instead of using some of these loops.</p>

<p>For example, where the author loops through the worksheets, I&#8217;d assume the user list is on sheet 1 (you are supplying the list after all).  So:</p>

<pre>
Set currentWorkSheet = objExcel.ActiveWorkbook.Worksheets(1)
</pre>

<p>Also, you know how many columns you&#8217;ll be supplying, so I&#8217;d skip that logic too.  I&#8217;d also make the assumption that you have column headers for easier user reading, so skip the first row.</p>

<p>The above &#8220;For I = 1 to 100&#8243; code would be replaced with the row loop.</p>

<pre>
For row = 1 to (usedRowsCount - 1)
  set firstname = Cells(row,1).Value
  set lastname = Cells(row,2).Value
  set email = Cells(row,3).Value
  [.. repeat for other fields ..]
  [.. now here is the code for adding the user as above ..]
Next
</pre>

<p>If you&#8217;re not sure of all the different field name parts (&#8220;cn&#8221;, &#8220;givenName&#8221;, etc) the quick and dirty way to figure it out is grab a copy of Softerra&#8217;s LDAP Browser which you can get here <a href="http://www.ldapbrowser.com" rel="nofollow">http://www.ldapbrowser.com</a>, and point it to your domain controller.</p>

<p>Good luck!</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://jon.netdork.net/2007/10/16/batch-adding-ad-users/comment-page-1#comment-988</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Tue, 12 Jan 2010 11:11:09 +0000</pubDate>
		<guid isPermaLink="false">http://jon.netdork.net/2007/10/16/batch-adding-ad-users#comment-988</guid>
		<description>&lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;How would I get the script to read names, role, company, address, email, phone, mobile from an excel spreadsheet? Not all the cells will be populated (except name, email &amp; company are required)&lt;/p&gt;

&lt;p&gt;Thank you
Michael&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi there,</p>

<p>How would I get the script to read names, role, company, address, email, phone, mobile from an excel spreadsheet? Not all the cells will be populated (except name, email &amp; company are required)</p>

<p>Thank you
Michael</p>]]></content:encoded>
	</item>
	<item>
		<title>By: Scripting Dial-In removal &#124; The Geekery</title>
		<link>http://jon.netdork.net/2007/10/16/batch-adding-ad-users/comment-page-1#comment-364</link>
		<dc:creator>Scripting Dial-In removal &#124; The Geekery</dc:creator>
		<pubDate>Thu, 26 Jun 2008 03:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://jon.netdork.net/2007/10/16/batch-adding-ad-users#comment-364</guid>
		<description>&lt;p&gt;[...] point for a lot of common questions. So next time a task requires you to go through and modify, or add, or even delete options, sometimes a script is just as quick. something we should get around to, as [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] point for a lot of common questions. So next time a task requires you to go through and modify, or add, or even delete options, sometimes a script is just as quick. something we should get around to, as [...]</p>]]></content:encoded>
	</item>
</channel>
</rss>
