yehuda mazal
yehuda mazal

Reputation: 39

running winrm set winrm/config/Service '@{AllowUnencrypted="true"}' give Error number: -2147024894 0x80070002

running the command: winrm set winrm/config/Service '@{AllowUnencrypted="true"}' on Windows server 2019, give the fallowing error:

WSManFault
Message
    ProviderFault
        WSManFault
            Message = The system cannot find the file specified.

Error number:  -2147024894 0x80070002
The system cannot find the file specified.

We are trying to figure this out, 2 people, searching the internet, not finding nothing...

OPlease, if anyone have any idea, at least to point us in the proper search direction, it would be very very appreciated...

Thank you so much !!!

Upvotes: 0

Views: 1721

Answers (2)

user19486989
user19486989

Reputation: 1

Try with

stop-service "Windows Firewall"
 winrm set winrm/config/Service '@{AllowUnencrypted="true"}'
start-service "Windows Firewall"

Upvotes: 0

BenJ
BenJ

Reputation: 11

I resolved this by opening advance windows firewall, clicked exported rules (just in case), and then click restore to default. (Note this will enable the firewall profiles and could block RDP access or interfere with your applications). Afterwards the errors stopped. Hope that does the trick.

Upvotes: 1

Related Questions