Hello there,
To enable or disable WinRM (Windows Remote Management) via Group Policy, you can follow these steps:
Open the Group Policy Management Console (GPMC): On a domain controller or a computer with the GPMC installed, open the Group Policy Management tool.
Create a new Group Policy Object (GPO) or edit an existing one: Right-click on the desired domain or organizational unit (OU) and select "Create a GPO in this domain, and Link it here" or "Edit" if you already have a GPO in place.
Configure the WinRM settings:
For enabling WinRM: In the Group Policy Editor, navigate to "Computer Configuration" > "Policies" > "Administrative Templates" > "Windows Components" > "Windows Remote Management (WinRM)".
Double-click on the "Allow remote server management through WinRM" policy setting.
Select the "Enabled" option and click "OK".
For disabling WinRM: In the Group Policy Editor, navigate to "Computer Configuration" > "Policies" > "Administrative Templates" > "Windows Components" > "Windows Remote Management (WinRM)".
Double-click on the "Disallow remote server management through WinRM" policy setting.
Select the "Enabled" option and click "OK".
Apply the Group Policy Object: Link the GPO to the appropriate domain, site, or OU where you want to enable or disable WinRM.
I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–