brianlala / AutoSPInstaller

Automated SharePoint 2010/2013/2016/2019/SE PowerShell-based installation script.
https://autospinstaller.com
MIT License
172 stars 81 forks source link

System.Management.Automation.RuntimeException: - Failed to create managed account #50

Closed farid-ics closed 4 years ago

farid-ics commented 4 years ago

Hello,

When i use AutoSpInstaller to install SharePoint 2016 i have this ISSUE.

i use : Windows serveur 2019 and Powerhsell 5.1.17763.592

im executing script as administrateur.

i dowland last version of AutoSpInstaller.

Need help please.

- Registering managed account `test\s-SPservices...`
New-SPManagedAccount : Account test\s-SPservices has already been registered.
At E:\SP\Automation\AutoSPInstallerModule.psm1:2296 char:17
+                 New-SPManagedAccount -Credential $credAccount | Out-N ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (Microsoft.Share...wManagedAccount:SPCmdletNewManagedAccount) [New-SPManage
   dAccount], InvalidOperationException
    + 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, E:\SP\Automation\AutoSPInstallerModule.psm1: line 2297
                        at Set-FarmConfig, E:\SP\Automation\AutoSPInstallerMain.ps1: line 223
                        at <ScriptBlock>, E:\SP\Automation\AutoSPInstallerMain.ps1: line 438
                        at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo : {}
PSMessageDetails      :
Ratatosk42 commented 4 years ago

Seems to be the same issue than #23

farid-ics commented 4 years ago

I finaly find solution, i have point in name of my domain like this "vd.test\sp-service" i change name of my domaine to "VDTEST\sp-service" and know it's work correctly.