Hello @Mariia Tiurina
Found from here:
- Firewall; enable a rule that only allows inbound WinRM connections from the specified subnet.
- Following, your initial line of thought, use the "Service" side of WSman instead of the "Client" side, i.e.
Text
Set-Item -Path WSMan:\localhost\Service\ -Name IPv4Filter -Value 10.10.10.1-10.10.10.254 - Use a Group Policy to configure the same setting Compter \ Policies \ Administrative Templates \ Windows Components \ Windows Remote Management \ WinRM Service \ Allow remote server management through WinRM: Enabled & Configure IPv4 Filter
Other reference article:Installation and configuration for Windows Remote Management
Best Regards
Karlie
----------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.