WinRM Error 1359. Cannot start the WinRM service

Billy Hanifin 1 Reputation point
2022-09-06T17:58:40.51+00:00

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
User: SYSTEM
Computer: Win10-03.ad.windomain.local
Description:
The WinRM service is unable to start because of a failure during initialization. The error code is 1359
Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Microsoft-Windows-WinRM" Guid="{a7975c8f-ac13-49f1-87da-5a984a4ab417}" />
<EventID>210</EventID>
<Version>0</Version>
<Level>2</Level>
<Task>11</Task>
<Opcode>2</Opcode>
<Keywords>0x4000000000000004</Keywords>
<TimeCreated SystemTime="2022-09-06T17:50:58.7606418Z" />
<EventRecordID>1916</EventRecordID>
<Correlation />
<Execution ProcessID="4136" ThreadID="4304" />
<Channel>Microsoft-Windows-WinRM/Operational</Channel>
<Computer>Win10-03.ad.windomain.local</Computer>
<Security UserID="S-1-5-18" />
</System>
<EventData>
<Data Name="errorCode">1359</Data>
</EventData>
</Event>

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