Register
: :
Login
Home
News
Forums
Scripts
User Groups
Resources
About
Forums
Search
Members
Unanswered
Active Topics
Forums
>
Using PowerShell
>
Active Directory
Trouble reading csv file with new-qaduser
Last Post 05 Jan 2010 10:50 PM by
Vishal Ramnani
. 2 Replies.
Sort:
Oldest First
Most Recent First
Prev
Next
You are not authorized to post a reply.
Author
Messages
A.R.Winters
New Member
Posts:24
19 Aug 2009 05:37 AM
Trying to create a simple csv file for creating of bulk users in AD. If did this before but now I lost it.
This is what powershell says;
Can someone tell me how the csv file had to look? I read a lot of posts but no one shares a csv file so I have no sample. I now that I have to watch out with the property names of Quest and AD.
[PS] X:\Migratie\scripts>import-csv X:\bla.csv
FullName : Anthony Winters
displayName : Winters, A.
userPrincipalName : aws15@dommie.lan
sAMAccountName : aws15
password : Welkom1
description : blablbalba
givenName : Anthony
sn : Anthony
[PS] X:\Migratie Coevorden\scripts>import-csv X:\bla.csv | New-QADUser -ParentContainer 'dommie.lan\groups\migration'
New-QADUser : The (&(objectClass=*)(sAMAccountName=)) search filter is invalid.
At line:1 char:36
+ import-csv X:\bla.csv | New-QADUser <<<< -ParentContainer 'dommie.lan\groups\migration'
A.R.Winters
New Member
Posts:24
19 Aug 2009 05:49 AM
Aaargghhh, the syntax of the new-qaduser was wrong this is the good syntax;
new-qaduser -parentcontainer 'OU=migration,OU=Groups,DC=dommie,dc=lan'
Vishal Ramnani
New Member
Posts:68
05 Jan 2010 10:50 PM
Or use forward Slashes ("/") in OU Name :)
Vishal Ramnani
MCITP - Exchange 2007,
MCSE Messaging,
MCTS - Win 2008 Config
You are not authorized to post a reply.
Using PowerShell
--General PowerShell
--Active Directory
--Exchange Server
--Lync Server
--SharePoint
--SQL Server
--System Center
--Non-Microsoft Products
--Books, Tools, and Videos
--Working with .NET
--Peer Review
--Testing, Testing...
PowerShell Development
--Cmdlet Development
--PSDrive Provider Development
--Hosting the Shell
Looking Ahead
--Using PowerShell v2.0
--Developing for PowerShell v2.0
PowerShellCommunity.org
--Community Announcements and Assistance
--Completely Unrelated
--User Groups
--Community Business
----Suggestion Box
Forums
>
Using PowerShell
>
Active Directory
Active Forums 4.3
Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2