Tuesday, August 5, 2014

AutoSpInstaller Notes

Scenario
  • Using AutoSpInstaller to run a multi-server farm install.
Issues
  • When provisiong the User Profile Service the second window pops up and immediately closes, then the main window eventually hits a Timed Out error
    • This was caused by the Farm account being unable to run PowerShell commands on the app server despite being configured correctly as local admin and having the log on locally permission
      • When running any command  as the farm account, the following error is displayed: "The term 'Get-ChildItem' is not recognized as the name of a cmdlet, function, script, ...."
        • 'Get-ChildItem' here could be any PowerShell command
    • This anomaly only occurred on the app server in the farm and only with the farm account, but unfortunately, the User Profile Service must be configured as the farm account.
    • The solution ended up being that the PSModulePath environment variable had been removed for the farm account.  We re-added and it ran fine.