I am trying to enable remote commands via Powershell on a Windows 11 Enterprise N in Azure.I have a script which if I run locally works well but if from a pipeline in Azure Devops I got:
Machine="localhost"><f:Message><f:ProviderFault provider="Config provider"
Code="2150859113" Machine="3waegf4b2x"><f:Message>WinRM firewall exception will not work since one of the network
connection types on this machine is set to Public. Change the network connection type to either Domain or Private and
try again. </f:Message></f:WSManFault></f:ProviderFault></f:Message></f:WSManFault>
At line:116 char:17
Tried all of the command which I can found on the net to fix it but nothing seems to help: