<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.1701technology.com/index.php?action=history&amp;feed=atom&amp;title=Powershell_Import_AD_Users_from_CSV</id>
	<title>Powershell Import AD Users from CSV - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.1701technology.com/index.php?action=history&amp;feed=atom&amp;title=Powershell_Import_AD_Users_from_CSV"/>
	<link rel="alternate" type="text/html" href="https://wiki.1701technology.com/index.php?title=Powershell_Import_AD_Users_from_CSV&amp;action=history"/>
	<updated>2026-05-06T14:39:39Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.34.1</generator>
	<entry>
		<id>https://wiki.1701technology.com/index.php?title=Powershell_Import_AD_Users_from_CSV&amp;diff=478&amp;oldid=prev</id>
		<title>Michael.mast: Created page with &quot;&lt;ref&gt;https://gallery.technet.microsoft.com/scriptcenter/ed20b349-9758-4c70-adc0-19c5acfcae45&lt;/ref&gt; &lt;pre&gt; Import-Module ActiveDirectory  $Users = Import-Csv -Delimiter &quot;;&quot; -Pat...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.1701technology.com/index.php?title=Powershell_Import_AD_Users_from_CSV&amp;diff=478&amp;oldid=prev"/>
		<updated>2017-07-06T20:24:26Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;ref&amp;gt;https://gallery.technet.microsoft.com/scriptcenter/ed20b349-9758-4c70-adc0-19c5acfcae45&amp;lt;/ref&amp;gt; &amp;lt;pre&amp;gt; Import-Module ActiveDirectory  $Users = Import-Csv -Delimiter &amp;quot;;&amp;quot; -Pat...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;ref&amp;gt;https://gallery.technet.microsoft.com/scriptcenter/ed20b349-9758-4c70-adc0-19c5acfcae45&amp;lt;/ref&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Import-Module ActiveDirectory &lt;br /&gt;
$Users = Import-Csv -Delimiter &amp;quot;;&amp;quot; -Path &amp;quot;.\userslist.csv&amp;quot;  &lt;br /&gt;
foreach ($User in $Users)  &lt;br /&gt;
{  &lt;br /&gt;
    $OU = &amp;quot;OU=Employees,DC=lab-os,DC=com&amp;quot;  &lt;br /&gt;
    $Password = $User.password &lt;br /&gt;
    $Detailedname = $User.firstname + &amp;quot; &amp;quot; + $User.name &lt;br /&gt;
    $UserFirstname = $User.Firstname &lt;br /&gt;
    $FirstLetterFirstname = $UserFirstname.substring(0,1) &lt;br /&gt;
    $SAM =  $FirstLetterFirstname + $User.name &lt;br /&gt;
    New-ADUser -Name $Detailedname -SamAccountName $SAM -UserPrincipalName $SAM -DisplayName $Detailedname -GivenName $user.firstname -Surname $user.name -AccountPassword (ConvertTo-SecureString $Password -AsPlainText -Force) -Enabled $true -Path $OU  &lt;br /&gt;
} &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Michael.mast</name></author>
		
	</entry>
</feed>