PowerShell To Change SharePoint Diagnostic Log File Location

The following PowerShell cmdlet will get all the diagnostic configuration values

Get-SPDiagnosticConfig

clip_image001

If you want to change the location of your diagnostic configuration log use the following PowerShell cmdlet

Set-SPDiagnosticConfig -LogLocation D:\SharePointLogs\

Related posts:

  1. PowerShell To List Site Template
  2. SharePoint Error 6482 – Related to Hosts File
  3. PowerShell To Delete Site Collection
  4. PowerShell: Free Bumper Sticker
Tagged with:
Posted in Scripts, SharePoint, SharePoint 2010
0 comments on “PowerShell To Change SharePoint Diagnostic Log File Location
2 Pings/Trackbacks for "PowerShell To Change SharePoint Diagnostic Log File Location"
  1. [...] PowerShell To Change SharePoint Diagnostic Log File Location [...]