When I install SharePoint 2016 on Windows Server 2016 with AutoInstaller, error while register managed account
-
27-01-2021 - |
문제
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 : {}
PSMessageDetails :
해결책
Most probably you have a problem with reading the account. Try this process to resolve it:
- Go into Active Directory Users and Computers snap-in
- Click View…Advanced Features on the menu
- Find my service account in the directory
- Right-click on it and select Properties from the menu
- Click on the Security tab
- Click on Authenticated Users in the top part of the dialog
- Check the Read box in the Allow column
- Click the OK button to save the changes