Thursday, 28 January 2016

One Liners for PowerShell with SharePoint for Diagnostics

#ULS diagnostic configuration values of the farm
Get-SPDiagnosticConfig
#View log location
Get-SPDiagnosticConfig|select LogLocation
#View the Number of Days to keep log
Get-SPDiagnosticConfig|select DaysToKeepLogs
#View diagnostics performance counter
Get-SPDiagnosticsPerformanceCounter
#returns all the diagnostics providers in the farm
Get-SPDiagnosticsProvider
#returns the Distributed Cache client settings for DistributedLogonTokenCache.
Get-SPDistributedCacheClientSetting -ContainerType DistributedLogonTokenCache

No comments:

Post a Comment