Enable-PSRemoting is not going smooth "PreviousErrCount"

OS : Windows 2012 STD Build 9200
I see this error on bunch of Windows 2012 STD.

 

Here is the powershell Version running on Windows 2012 STD.

PS C:\> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      4.0
WSManStackVersion              3.0
SerializationVersion           1.1.0.1
CLRVersion                     4.0.30319.18408
BuildVersion                   6.3.9600.16406
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0}
PSRemotingProtocolVersion      2.2

Here is the complete output of “Enable-PSRemothing”, let me know if you need any other information.

PS C:\Temp> Enable-PSRemoting

WinRM Quick Configuration
Running command "Set-WSManQuickConfig" to enable remote management of this computer by using the Windows Remote
Management (WinRM) service.
This includes:
1. Starting or restarting (if already started) the WinRM service
2. Setting the WinRM service startup type to Automatic
3. Creating a listener to accept requests on any IP address
4. Enabling Windows Firewall inbound rule exceptions for WS-Management traffic (for http only).

Do you want to continue?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A
WinRM is already set up to receive requests on this computer.
WinRM is already set up for remote management on this computer.
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Set-PSSessionConfiguration" on target "Name: microsoft.powershell SDDL:
O:NSG:BAD:P(A;;GA;;;BA)(A;;GA;;;RM)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD). This lets selected users remotely run Windows
PowerShell commands on this computer.".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Set-PSSessionConfiguration" on target "Name: microsoft.powershell.workflow SDDL:
O:NSG:BAD:P(A;;GA;;;BA)(A;;GA;;;RM)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD). This lets selected users remotely run Windows
PowerShell commands on this computer.".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Set-PSSessionConfiguration" on target "Name: microsoft.powershell32 SDDL:
O:NSG:BAD:P(A;;GA;;;BA)(A;;GA;;;RM)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD). This lets selected users remotely run Windows
PowerShell commands on this computer.".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Set-PSSessionConfiguration" on target "Name: microsoft.windows.servermanagerworkflows SDDL:
O:NSG:BAD:P(A;;GA;;;BA)(A;;GA;;;IU)S:P(AU;FA;GA;;;WD)(AU;SA;GXGW;;;WD). This lets selected users remotely run Windows
PowerShell commands on this computer.".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
PS C:\Temp>

Wow … looks messy. I always use

Enable-PSremoting -Force

Have you tried that?

Yes, but no luck. here is the output.

PS C:\Temp> Enable-PSRemoting -Force
WinRM is already set up to receive requests on this computer.
WinRM is already set up for remote management on this computer.
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...
WARNING: Waiting for service 'Windows Remote Management (WS-Management) (winrm)' to stop...

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): A

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"): Y

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):

Confirm
Are you sure you want to perform this action?
Performing the operation "Remove variable" on target "Name: PreviousErrCount".
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):
PS C:\Temp>

What if you reset it to default first?

winrm invoke restore winrm/config @{}

and/or reset plugins

winrm invoke restore winrm/config/plugin @{}

OR

winrm invoke Restore http://schemas.microsoft.com/wbem/wsman/1/config/plugin @{}

Then try to enable psremoting. If you need to run this remotely, you could use psexec. This is how I’ve done it forever.

Psexec \\computername -accepteula -s cmd /c "echo . | winrm invoke restore winrm/config @{}"

Psexec \\computername -accepteula -s cmd /c "echo . | powershell enable-psremoting -force"

Hope this helps.

Thanks for your reply. these commands didn’t work as is and still throwing an error.

I missed to update PowerShell version in my original post and now I have updated it.

these systems are using

PSVersion 4.0

Here is the output.

PS C:\> winrm invoke restore winrm/config/plugin @{}
Error: Invalid use of command line. Type "winrm -?" for help.
PS C:\> winrm invoke restore winrm/config/plugin
Restore_OUTPUT

PS C:\> winrm invoke restore winrm/config
Restore_OUTPUT

PS C:\> winrm invoke restore winrm
WSManFault
    Message = The WS-Management service cannot process the request. The resource URI (http://schemas.microsoft.com/wbem/
wsman/1) was not found in the WS-Management catalog. The catalog contains the metadata that describes resources, or logi
cal endpoints.

Error number:  -2144108485 0x8033803B
The WS-Management service cannot process the request. The resource URI is missing or it has an incorrect format. Check t
he documentation or use the following command for information on how to construct a resource URI: "winrm help uris".
PS C:\> winrm invoke restore config
WSManFault
    Message = The WS-Management service cannot process the request. The resource URI (config) was not found in the WS-Ma
nagement catalog. The catalog contains the metadata that describes resources, or logical endpoints.

Error number:  -2144108485 0x8033803B
The WS-Management service cannot process the request. The resource URI is missing or it has an incorrect format. Check t
he documentation or use the following command for information on how to construct a resource URI: "winrm help uris".
PS C:\> winrm invoke Restore http://schemas.microsoft.com/wbem/wsman/1/config/plugin @{}
Error: Invalid use of command line. Type "winrm -?" for help.
PS C:\> winrm invoke Restore http://schemas.microsoft.com/wbem/wsman/1/config/plugin
Restore_OUTPUT

Try running them in an elevated command prompt as well. Based on the errors it seems your system may be missing required files/settings. Any chance you can upgrade to WMF 5.1?

I was tried in an elevated prompt itself. upgraded to WMF 5.1 resolved. But I cannot upgrade on all the systems.

How about just running 7? It installs side by side with older versions, basically just an exe. It may just as well have the same issue. If not, would it work for your purpose? They wouldn’t be upgrading :slight_smile:

Re-installation of WMF 4.0 fixed the issue.

I’ll try your recommendation on another system and let you know the outcome.