Workaround For Enable-WSManCredSSP:This command cannot be executes because the setting cannot be enabled.

Overview

I came across an infuriating issue today after trying to re-enable WSManCredSSP after disabling it to get screenshots for my last blog post on setting up PSRemoting. (you’re welcome!)

When attempting to execute Enable-WSManCredSSP I got the following error:

Enable-WSManCredSSP : This command cannot be executed because the setting cannot be enabled. This can happen if no network connection is present.
At line:1 char:20
+ Enable-WSManCredSSP <<<<  -Role Client -DelegateComputer "leg-dev-shpt-01.legis.local"
    + CategoryInfo          : InvalidOperation: (System.String[]:String[]) [Enable-WSManCredSSP], InvalidOperationException
    + FullyQualifiedErrorId : WsManError,Microsoft.WSMan.Management.EnableWSManCredSSPCommand

I double-checked my security policy and ensured that PSRemoting was enabled on the server, but I was still unable to get it to execute.  I even bounced the server and still had no luck, and running the PowerShell session in both Administrative and non-admin modes had no effect.

Workaround

I came across a windows server forum thread on Enabling and Using CredSSP that had the answer.  You can turn on Cred SSP using a Non-PowerShell command.  Execute the following at a command prompt:

winrm set winrm/config/client/auth ‘@{CredSSP="true"}’ 

You can verify your winrm settings using the following command:

winrm get winrm/config

This entry was posted in FAST Search for SharePoint 2010, SharePoint 2010, SharePoint 2010 Administration, Tips and Tricks and tagged , . Bookmark the permalink. Post a comment or leave a trackback: Trackback URL.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*