title: Creating new ADUser, but no home directory?
body: <p>Working on a script to automate the creation of new users, it works and the user shows up, but their home directory is not created.</p>
  
  <p>For example I use <code>New-ADUser</code> to create "Joe User" with a username of "joeu" and <code>HomeDirectory</code> of <code>\\\\svr-home\\home\\%username%</code></p>
  
  <p>Normally when you enter this same string directly into the AD during the creation of a new user, when the OK button is clicked the <code>%username%</code> part is automatically replaced by "joeu" and a folder is created at <code>\\\\svr-home\\home\\joeu</code> with all the appropriate permissions.</p>
  
  <p>When I check on the account in AD, the script has set the value for the 'Home Folder' field, but the AD variable is never completed and the matching folder is not created.</p>
  
  <p>If I manually edit the user in AD and click the Apply button, the home path is resolved and the folder is created. Is there a way I can force AD to execute this step?</p>
  
  <p>Or do I have to manually create the home folder and set its permission and then use the actual path information for the <code>-HomeDirectory</code> parameter to solve this?</p>