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

Issue with SPTraceV4 and Managed Account automatic password changes



Thank You for AutoSPInstaller - it makes deployment of SharePoint 2016 very simple.

There is an issue with how AutoSPInstaller is handling the SPTraceV4 service when provisioned. The ProcessIdentity for IsCredentialUpdateEnabled is set to False so once the password changes the service will not start, stating incorrect password. There seems to be an Event ID 5767, that happens once, in Event Viewer. Here is the event:
Level:                  Error
Source:               SharePoint Foundation
Event ID:             5767
Task Category:   Topology
General:             Error updating the account password for process identity Id (GUID), please fix manually. The type initializer for 'System.Management.Automation.SessionStateScope' threw an exception.
I have run this PowerShell script to fix the issue in my environments.
Add-PSSnapin Microsoft.SharePoint.PowerShell

$SPService = "SPTraceV4"
$SPFarm = Get-SPFarm
$SPTimerv4 = $SPFarm.Services | Where {$_.Name -eq $SPService}
$SPTimerv4.ProcessIdentity.IsCredentialUpdateEnabled = $true
If the password is now generated from SharePoint the password in Services, for SPTraceV4, will get changed and the service will start normally.

Please contact me if you would like the MS case number.

Thank you,