Tallan's Technology Blog

Tallan's Top Technologists Share Their Thoughts on Today's Technology Challenges

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

3 Comments. Leave new

Hi,

When I execute : winrm set winrm/config/client/auth ‘@{CredSSP=”true”}’
I have got this error : winrm set winrm/config/client/auth ‘@{CredSSP=”true”}’
Is it normal?

Thanks a lot,

oups sorry here is the error message :
Error: Invalid use of command line. Type “winrm -?” for help.

The single quotes around @{CredSSP=”true”} are not necessary

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>