I'm trying to write a script to help with user AD account creation. (Import-CSV and New-ADUser)
One of the CSV file headers is 'Area Number'. The column's cell contents will contain only either a 1, 2 or 3 (and unfortunately not 'Area1', 'Area2' or 'Area3'). The format of the input CSV file can't be changed.
I'm trying to set the -path parameter to place the new user in the correct OU: