in the step of adding the managed acocunts the first is created. Then it throws the following error.
Creating local profile for SNVWORLD\spservices_test...Start-Process : This command cannot be executed due to the error: The directory name is invalid.
This happens on : Start-Process -FilePath "$env:SYSTEMROOT\System32\cmd.exe" -ArgumentList "/C" -LoadUserProfile -NoNewWindow -Credential $credAccount
I run the script from a network location from a mapped drive. When I check the users directory I see a folder for spservices_test and the account spservices_test is in the Local Admin group.
WARNING: - Could not create local user profile for domain\spservices_test
I did not change the commonnames : spservice / portalapppool / mysiteapppool or searchservice name.
I found some references here : http://sharepointresource.com/2011/04/08/start-process-this-command-cannot-be-executed-due-to-the-error-the-directory/#more-86 but does not help me to understand why the profile can not be created.
Thanks for any assitance or pointers on this.