ULS 日志为空
解決方案:
1.保存為ChangeAccounts_SPTraceV4.ps1,運(yùn)行
# Get the tracing service.
$farm = Get-SPFarm
$tracingService = $farm.Services | where {$_.Name -eq "SPTraceV4"}
# Get the "svc_sp_services" managed account.
$managedAccount = Get-SPManagedAccount "****\defaultService"
# 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()
2.將"****\defaultService“加入到本地組 Performance Log Users 中
3.重啟SPTraceV4服務(wù)
參考:http://blog.octavie.nl/index.php/2010/11/12/using-a-domain-account-for-sptracev4-service/
轉(zhuǎn)載于:https://www.cnblogs.com/ruijian/archive/2012/04/16/2451822.html
總結(jié)
- 上一篇: aliyun折腾记录
- 下一篇: Cortex-M3 动态加载一(地址无关