Today I faced an issue, when I tried to install SharePoint 2016 on Windows Server 2016 with AutoInstaller scripts.
Error says:
Registering managed account "DOMAIN\Service Account""1... New-SPManagedAccount : The given key was not present in the dictionary. At D:\AutoSPInstaller\AutoSPInstallerModule.psm1:2258 char:17 + New-SPManagedAccount -Credential $credAccount | Out-N ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidData: (Microsoft.Share...wManagedAccount:SPCmdletNewManagedAccount) [New-SPManage dAccount], KeyNotFoundException + FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewManagedAccount
- Script halted!
Exception : System.Management.Automation.RuntimeException: - Failed to create managed account TargetObject : - Failed to create managed account CategoryInfo : OperationStopped: ( - Failed to create managed account:String) [], RuntimeException FullyQualifiedErrorId : - Failed to create managed account ErrorDetails : InvocationInfo : System.Management.Automation.InvocationInfo ScriptStackTrace : at AddManagedAccounts, D:\AutoSPInstaller\AutoSPInstallerModule.psm1: line 2259 at Set-FarmConfig, D:\AutoSPInstaller\AutoSPInstallerMain.ps1: line 214 at , D:\AutoSPInstaller\AutoSPInstallerMain.ps1: line 429 at , : line 1 PipelineIterationInfo : {}