Setting up SPDiag

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

Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\Credssp\PolicyDefaults\AllowFreshCredentialsDomain -Name WSMan -Value "WSMAN/*"
Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\Credssp\PolicyDefaults\AllowFreshCredentials -Name WSMan -Value "WSMAN/*"
Set-ItemProperty HKLM:\SYSTEM\CurrentControlSet\Control\Lsa\Credssp\PolicyDefaults\AllowFreshCredentialsWhenNTLMOnly -Name WSMan -Value "WSMAN/*"

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"

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: