WinRM Error 1359. Cannot start the WinRM service

Billy Hanifin 1 Reputation point

I am attempting to automate some setup scripts in Azure using Terraform. Most of the automation is done through WinRM which works for a while and then stops working after the machines have joined the domain. I cannot find any GPO that would be causing this to be disabled. When I try to restart the WinRM service on the workstations I get the following error.

Log Name: Microsoft-Windows-WinRM/Operational
Source: Microsoft-Windows-WinRM
Date: 9/6/2022 5:50:58 PM
Event ID: 210
Task Category: Winrm service start/stop
Level: Error
Keywords: Server
The WinRM service is unable to start because of a failure during initialization. The error code is 1359
Event Xml:
<Event xmlns="">
<Provider Name="Microsoft-Windows-WinRM" Guid="{a7975c8f-ac13-49f1-87da-5a984a4ab417}" />
<TimeCreated SystemTime="2022-09-06T17:50:58.7606418Z" />
<Correlation />
<Execution ProcessID="4136" ThreadID="4304" />
<Security UserID="S-1-5-18" />
<Data Name="errorCode">1359</Data>

I cannot find any info about this error online anywhere. Any help would be appreciated!

Windows Server Management
Windows Server Management
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Management: The act or process of organizing, handling, directing or controlling something.
420 questions
0 comments No comments
{count} votes