SharePoint [Study Notes]-changes the SharePoint System Log ULS to null

Source: Internet
Author: User

Solution:

1. Save as changeaccounts_sptracev4.ps1 and run

 # Get the Tracing Service. $ farm = Get-spfarm $ tracingservice = $ farm. Services | where {$ _. Name-EQ  "  Sptracev4  "  } # Get  "  Svc_sp_services  "  Managed account. $ managedaccount = Get-spmanagedaccount  "  * *** \ Defaservice Service  " # Set the Tracing Service to run under the managed account. $ tracingservice. processidentity. currentidentitytype =  "  Specificuser  "  $ Tracingservice. processidentity. managedaccount = $ managedaccount $ tracingservice. processidentity. Update () # This actually changes  "  Run  "  Account of the Windows service. $ tracingservice. processidentity. Deploy () 

 

2. Add "**** \ defaultservice" to the performance log users of the Local Group.

3. Restart the sptracev4 service.

Reference: http://blog.octavie.nl/index.php/2010/11/12/using-a-domain-account-for-sptracev4-service/

Solution:

1. Save as changeaccounts_sptracev4.ps1 and run

 # Get the Tracing Service. $ farm = Get-spfarm $ tracingservice = $ farm. Services | where {$ _. Name-EQ  "  Sptracev4  "  } # Get  "  Svc_sp_services  "  Managed account. $ managedaccount = Get-spmanagedaccount  "  * *** \ Defaservice Service "  # Set the Tracing Service to run under the managed account. $ tracingservice. processidentity. currentidentitytype =  "  Specificuser  "  $ Tracingservice. processidentity. managedaccount = $ managedaccount $ tracingservice. processidentity. Update () # This actually changes  "  Run  "  Account of the Windows service. $ tracingservice. processidentity. Deploy () 

 

2. Add "**** \ defaultservice" to the performance log users of the Local Group.

3. Restart the sptracev4 service.

Reference: http://blog.octavie.nl/index.php/2010/11/12/using-a-domain-account-for-sptracev4-service/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.