This project has moved and is read-only. For the latest updates, please go here.

Error trying to add local account

Aug 5, 2011 at 4:44 PM

Getting the following error when trying to run the script

- Adding Managed Accounts

- Creating local profile for mchp-main\PRDAPP_spservice...Start-Process : This command cannot be executed due to the error: The directory name is invalid.

At Z:\SP2010\AutoSPInstaller\AutoSPInstallerFunctions.ps1:1057 char:18

+ Start-Process <<<< -FilePath "$env:SYSTEMROOT\System32\cmd.exe" -ArgumentList "/C" -LoadUserProfile -NoNewWindow -Credential $credAccount+ CategoryInfo : InvalidOperation: (:) [Start-Process], InvalidOperationException+ FullyQualifiedErrorId : InvalidOperationException,Microsoft.PowerShell.Commands.StartProcessCommand.

WARNING: - Could not create local user profile for mchp-main\PRDAPP_spservice

Press any key to exit...

- Done Adding Managed Accounts


Aug 5, 2011 at 5:32 PM


Just an update I was running the scripts from a network share when I received the errors (mapped network drive not UNC). I moved the scripts to a local drive and now running with no errors.