But, when assigning permissions to the Home Drive for that user I get errors saying it can not translate that user etc probably because the users was created about 1 second before it is trying to assign permissions.

Create a breakpoint where the directory is supposed to be created, run in Debug, and at the point where the directory "should" be created I would manually check the path that is being created via Windows explorer, or some other means that's independent of your program.

Alternatively, if you know the problem is because the directory hasn't been created then I would do something like the attached code.

Sometimes it necessary to set special permissions on user objects. For instance when using a Blackberry server, the SendAs permission needs to be set. I see many admins struggle with the setting that permission only to see it disappear within a few…

This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008.
Determine the location of the FSMO roles by lo…

This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller.
Log onto the new domain controller with a user account t…