Jump to content

RoyHobbs

Members
  • Posts

    3
  • Joined

  • Last visited

Reputation

0 Neutral

About RoyHobbs

  1. Doh! Changing the CSV column headers was it. I was mixed up about where the variables had to be placed in the script. Thanks!
  2. Thanks! Just ran across the forums today when I was researching this issue. I can see myself frequenting the site! I actually used the script that you linked. I just didn't include the Import-Module ActiveDirectory statement in the post. I'm no PowerShell expert by any means (mostly do SQL stuff for my district) but this one is stumping me.
  3. Here is what I have so far: Sample of CSV User,ID jsmith,1234 jdoe,5678 PowerShell Script Import-CSV "C:\Scripts\Users.csv" | % { $User = $_.UserName $ID = $_.EmployeeID Set-ADUser $User -EmployeeID $ID } Here is the error that I am running into Set-ADUser : Cannot validate argument on parameter 'Identity'. The argument is null. Provide a valid value for theargument, and then try running the command again. At line:4 char:12 + Set-ADUser $User -EmployeeID $ID + ~~~~~ + CategoryInfo : InvalidData: ( [set-ADUser], ParameterBindingValidationException + FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.ActiveDirectory.Management.Commands.SetADUser Any ideas? Thanks!
×
×
  • Create New...