- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Use a Write-Output statement in your catch block just before invoking New-ADOrganizationalUnit. Show the output from a failed run to see what value is present. Also, remove double quotes around that variable as it's not needed.