# Get the tracing service.$farm = Get-SPFarm$tracingService = $farm.Services | where {$_.Name -eq "SPTraceV4"}# Get the "svc_sp_services" managed account.$managedAccount = Get-SPManagedAccount "CONTOSO\cuenta de usuario"# Set the tracing service to run under the managed account.$tracingService.ProcessIdentity.CurrentIdentityType = "SpecificUser"$tracingService.ProcessIdentity.ManagedAccount = $managedAccount$tracingService.ProcessIdentity.Update()# This actually changes the "Run As" account of the Windows service.$tracingService.ProcessIdentity.Deploy()