I am trying to create a AD user in my OU called public that has a username of numbers is enabled and a password set that is password1. When I run the command I get the error A positional Parameter cannot be found that accepts argument '$null'.
Any help would be appreciated
Here is what I put into powershell
`New-ADUser -Name "BoB Glen" -GivenName "BoB"-Surname "Glen" -DisplayName "2003487" $secpasswd = ConvertTo-SecureString -String "pa$$word1" -AsPlainText -Force -AccountPassword $secpsswd -Enabled $true -Path "OU=Public,DC=Company,DC=epl,DC=local"` Here is the entire error
New-ADUser : A positional parameter cannot be found that accepts argument '$null'. At line:1 char:1 + New-ADUser -Name "Adam Bandola" -GivenName "Adam" -Surname "Bandola" ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [New-ADUser], ParameterBindingException + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.ActiveDirectory.Management.Commands.NewADUser