Monday, November 22, 2010

Sharepoint 2010 update tracing service in Health Analyser

Make sure you have registered the account with Sharepoint first then run this powershell script.

$farm = Get-SPFarm
$tracingService = $farm.Services | where {$_.Name -eq "SPTraceV4"}
$managedAccount = Get-SPManagedAccount "\SPtrace"
$tracingService.ProcessIdentity.CurrentIdentityType = "SpecificUser"
$tracingService.ProcessIdentity.ManagedAccount = $managedAccount
$tracingService.ProcessIdentity.Update()
$tracingService.ProcessIdentity.Deploy()

No comments:

Post a Comment