I am building up a script to create Mass AD-USers with a csv file.
I am using Powershell for this.
Here is the error message that I get for this command :
$UserLogin = ($UserFirstName).Substring(0,1).ToLower + "." + $UserName.ToLower()
Error message Cannot call a method inside a null expression. To Character Line:10:1
$UserLogin = ($UserFirstName).Substring(0,1).ToLower + "." ...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
CategoryInfo: InvalidOperation: (:) [], RuntimeException
FullyQualifiedErrorId: InvokeMethodOnNull
Also when I run my script, it does not put the datas of my csv in Active Directory
Could anyone help me and explain to me how to fix the message error and how to have my csv datas transferred in my Active Directory ?