One of the options I wish that could be configured during the installation of SharePoint 2010 is the location to store log files. Since it is not, you can set the location after the fact using PowerShell.

To change the log location, simply open up the SharePoint 2010 Administrative Shell (PowerShell) and enter the following:

[powershell]Set-SPDiagnosticConfig -LogLocation LogFileLocation[/powershell]

For example:

[powershell]Set-SPDiagnosticConfig -LogLocation D:\LogsSharePoint[/powershell]

To view your current settings, simply enter:


More information on using the Set-DiagnosticConfig cmdlet, see the TechNet Article (

Pin It on Pinterest

Share This
%d bloggers like this: