Setting up SPDiag
June 19, 2012 Leave a comment
Setting up SharePoint Diagnostic Studio 2010 (SPDiag 3.0) (SharePoint Server 2010) requires running scripts on the client machine:
Enable-PSRemoting -force
Enable-WSManCredSSP -role Client -DelegateComputer “<target_computer>” -force
However, Enable-WSManCredSSP would always result in Enable-WSManCredSSP : This command cannot be executed because the setting cannot be enabled. This can happen if no network connection is present.
After executing the following instead, I was able to create the project in SPDiag. (Create project also required listing the server as severname.domain.ds.xx.gov.)
Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\Credssp\PolicyDefaults\AllowFreshCredentialsDomain -Name WSMan -Value "WSMAN/*.domain.ds.xx.gov" Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\Credssp\PolicyDefaults\AllowFreshCredentials -Name WSMan -Value "WSMAN/*.domain.ds.xx.gov" Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\Credssp\PolicyDefaults\AllowFreshCredentialsWhenNTLMOnly -Name WSMan -Value "WSMAN/*.domain.ds.xx.gov"
On the server, in addition to running:
Enable-PSRemoting -force Enable-WSManCredSSP -role Server -force Set-Item WSMan:\localhost\Shell\MaxMemoryPerShellMB 1000 Set-ExecutionPolicy RemoteSigned get-item wsman:\localhost\Service\RootSDDL
I ran:
Add-SPDiagnosticsPerformanceCounter -Category "Network Interface" -Counter "Bytes Sent/sec" -WebFrontEnd Add-SPDiagnosticsPerformanceCounter -Category "Network Interface" -Counter "Bytes Received/sec" -WebFrontEnd Add-SPDiagnosticsPerformanceCounter -Category "Network Interface" -Counter "Bytes Total/sec" -WebFrontEnd Add-SPDiagnosticsPerformanceCounter -Category "PhysicalDisk" -Counter "Current Disk Queue Length" -Instance "*" -WebFrontEnd Add-SPDiagnosticsPerformanceCounter -Category "PhysicalDisk" -Counter "% Disk Time" -Instance "*" -WebFrontEnd Add-SPDiagnosticsPerformanceCounter -Category "PhysicalDisk" -Counter "Avg. Disk Queue Length" -Instance "*" -WebFrontEnd Add-SPDiagnosticsPerformanceCounter –category SQLServer:Locks –counter "Average Wait Time (ms)" –allinstances -databaseserver Add-SPDiagnosticsPerformanceCounter –category LogicalDisk –counter "Disk Reads/sec" –allinstance -databaseserver Add-SPDiagnosticsPerformanceCounter –category LogicalDisk –counter "Disk Writes/sec" –allinstance –databaseserver get-sptimerjob job-usage-log-file-import | Set-SPTimerJob -Schedule "Every 5 minutes between 0 and 59"