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