header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Trouble reading csv file with new-qaduser
Last Post 05 Jan 2010 10:50 PM by Vishal Ramnani. 2 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
A.R.WintersUser is Offline
New Member
New Member
Posts:24
Avatar

--
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.WintersUser is Offline
    New Member
    New Member
    Posts:24
    Avatar

    --
    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 RamnaniUser is Offline
    New Member
    New Member
    Posts:68
    Avatar

    --
    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.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer