Set-WSManQuickConfig : Cannot complete the request due to a conflicting Group Policy setting.

Jack Ring 20 Reputation points
2024-04-16T14:20:56.37+00:00

Getting this error when trying to run Enable-PSRemoting -Force.

Set-WSManQuickConfig : Cannot complete the request due to a conflicting Group Policy setting. Modify the GP setting

"Allow remote server management through WinRM" to either "Not Configured" or "Enabled".

I have tried everything that is on suggestions but no help.

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,376 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,811 Reputation points Microsoft Vendor
    2024-04-17T01:13:00.43+00:00

    Hi Jack Ring,

    I think the error message is self-explanatory. The domain administrator has already blocked WinRM through a group policy. Are you trying to bypass the group policy setting on a domain computer? There's no way to achieve that so you have to contact your domain administrator.

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.