Hi, Can anyone please help, hoping its something simple. when i use the Script to create one user in CSV Mode it works but when i submit all it fails. i get the error in Powershell below New-ADUser : The object name has bad syntax At D:\ANUC\ANUC.ps
1:606 char:4 + New-ADUser @User -ErrorVariable ADError + ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~ + CategoryInfo : NotSpecified: (CN=Controlled U...DC=Cal,DC=l ocal:String) [New-ADUser], ADException + FullyQualifiedE rrorId : The object name has bad syntax,Microsof t.ActiveDirecto ry.Management.C ommands.NewADUs er Anyone any Ideas? Rgds Martin Hoolickin
Hi, I would like to allow the script to Set password never expires and User cannot change password. I've test adding PasswordNeverEx
pires = $true to the $User definitions but seems not working. Any idea anyone? Regards Chua
Hi, I would like to know how create users by CSV mode, because I don't know how it works or who put the var like "FirstName". When I import CSV file i have only ID .. Anyone can help me ? I'm french student. Thank You.
I'm trying use this on a new 2012r2 DC to create a few hundred users. I used your template file to create the CSV. When I import the CSV nothing populates & I get no errors(includin
g in event viewer). Am I missing something? Is it necessary to modify the options file even when running CSV mode? Mahalo, Aaron
Hi Rich First to say that you made a excellent tool. My question is there any possibility to remove the dot from the UPN and samAccount column in your script? In my world no Administrators creating a users that ends with a dot, in their login name. Like when you type a name in the First name column, the UPN and SamAccount fields ends with a dot (Before the @domain name). Could be annoying, when creating a user with the tool. Therefore I would like to ask how you can change the script so the dot can be avoid, when you type a name in the First Name column? Best regards, Thorkell
Hi Rich, I have new domain 2008 R2, and after I try run ANUC, warning window appear: "You are using an older version of the Options file. Please generate a new Options file and transfer your settings. In Use: Latest: 1.2" Could someone help me? I need to import approx 300 users form CSV file (only Name Surname) Thaks for an answer! Marian
I thought I understood the script and how to use it however every attempt leads me to the following error. PS C:\Windows\syst
em32> C:\Utilities\Sc ripts\ANUC.ps1 New-ADUser : The name provided is not a properly formed account name At C:\Utilities\Sc ripts\ANUC.ps1: 377 char:3 + New-ADUser @User -ErrorVariable ADError + ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~ + CategoryInfo : NotSpecified: (CN=inm.svc.sca c...rodehs,DC=l ocal:String) [New-ADUser], ADException + FullyQualifiedE rrorId : ActiveDirectory Server:1315,Mic rosoft.ActiveDi rectory.Managem ent.Commands.Ne wADUser please help.
my problem is because I am attempting to create service accounts that do not have a last name. how should I create a service account that does not have a last name just using the first name field as the account name.
over came the first name issue by modifying the script to allow an entry with only first name. it can be enabled as a 4th option for formatting. now I have a new error message. :) baby steps... thank you for the script.
Hi, This is amazing - thanks for that. I work at a school so each year need to setup hundreds of new users (depending on our intake) in a small period. Can you please advise; 1. What code do I need for it to create a mailbox as well (exchange 2010 and o365) 2. Is it possible to copy the group membership from an existing user? At the moment, I would have to add these users to correct groups, which takes me ages. Thanks Jeremy
try the same using this tool. http://adsysnet
.com/asn-active -directory-mana ger-bulk-object s-modification. aspx
I have been trying for a couple hours to get this to work, but have had no luck so far. I want to say first off... thank you for the hard work you put into the tool! If I can get this to work, I know it will save me a lot of time. I can enter users in the Single User Mode, and I can submit one entry at a time in CSV mode, but if I click "Submit All" I get this error. I would appreciate any help resolving this. New-ADUser : The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptio
nDetailInFaults (either from ServiceBehavior Attribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs. At C:\users\Eric\D esktop\ANUC.ps1 :606 char:4 + New-ADUser @User -ErrorVariable ADError + ~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~ ~~~~~~~~~ + CategoryInfo : NotSpecified: (CN=New Account,...worl d,DC=local':Str ing) [New-ADUser], ADException + FullyQualifiedE rrorId : ActiveDirectory Server:0,Micros oft.ActiveDirec tory.Management .Commands.NewAD User
To fix to the Office and Phone number being transposed, navigate to the $btnSubmitAll_C
lick function and transpose the $Office and $OfficePhone lines. Then renumber them as shown here: $Office = $_.Subitems. Text $Title = $_.Subitems. Text $Description = $_.Subitems. Text $Department = $_.Subitems. Text $Company = $_.Subitems. Text $OfficePhone = $_.Subitems .Text