Thanks for waiting.
According to my test, you could have a try with the following code, make sure your path is vaild:
stsadm -o setsiteuseraccountdirectorypath -path "OU=,DC=,DC=" -url http://ServerName
Test Result in my end:
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
Would you tell me whether your issue has been resolved or have any update ?
I am looking forward to your reply.