(at this point I am content with just adding a user through powershell, first and last name, then his domain login as first.lastname and same for pre-win2000 - BUT PLEASE READ ON
Hi,
We are doing a migration of domain users to a new domain, out of state. I am working with Windows 2008 powershell. Just to start off, I can't access the old domain controller. Long story. Anyway,
I have a list of user and their info.
I am able to create a txt file with user information. I need these users to go into the "Users" field in a certain OU. The problem I have is when I run my command(import-csv file.txt | New-ADUser), it puts the user in the default domain controller
user group Company.com\user instead of Company.com\NC\City\User.... etc
AD Structure Example
------------------------
-DC CompanyXYX.com
-Locations
-TX
-NC
City
-Groups
-Users
so forth. I need the user to go into the NC\City\User location. I can't get the test user there. Testing before doing bulk(wise choice I am glad I decided on). I am a newbie with using power shell but I honestly don't want to add 300 users manually one at a
time. Someone help! I hope I got that structure right. If not, I am sure you PRO's will understand what I am talking about and trying to do.
In the text file which is comma delimited, I use the Location column title. That didn't work so I tried OU but that didn't work either. I also don't think I am including the correct "location" information for the user. I tried just "NC"
then I tried "NC\City". Do I need to include a fully qualified path?? I am missing something obvious or just doing it backwards.
Also, on a side note. When exporting users from old DC, are you able to get all info associated with users or just their name and department info?? I was sent a export list and it did not include phone numbers, office info or Manager fields etc.
Thank you IT guru's fr your help!
in case this helps. my text files is a little something like
Name,First Name,Last Name,Type,Description,Department,Location
Bob Richards,Bob,Richards,User,Maintenance Technician,Health,NC\<city name>