Module 2 Lab Please help me see uploaded picture

What is wrong with my code that its saying everything isnt a command. I’ve been trying to solve this forever. Please help me

1 Like

I prefer to splat these days. Check out the code below:

$UserObj = @{
    firstName= "Joe"
    lastName = "Friday"
    displayName    = "Joe Friday"
    title = "Helpdesk"
    department = "IT"
    anyOtherValidAttribute = "Any value"
}

New-ADUser @UserObj

There might be a typo in the code @cameron3703. Can you paste the code here to debug?