<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Christopher Smith</title>
    <description>The latest articles on DEV Community by Christopher Smith (@et-ducky).</description>
    <link>https://dev.to/et-ducky</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4138586%2F0f9ef5ba-394d-43c0-9770-70cfc3e50ec6.png</url>
      <title>DEV Community: Christopher Smith</title>
      <link>https://dev.to/et-ducky</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/et-ducky"/>
    <language>en</language>
    <item>
      <title>Event ID 19 WindowsUpdateClient Shows the Same Update Installing Every Day</title>
      <dc:creator>Christopher Smith</dc:creator>
      <pubDate>Fri, 27 Nov 2026 13:48:47 +0000</pubDate>
      <link>https://dev.to/et-ducky/event-id-19-windowsupdateclient-shows-the-same-update-installing-every-day-3604</link>
      <guid>https://dev.to/et-ducky/event-id-19-windowsupdateclient-shows-the-same-update-installing-every-day-3604</guid>
      <description>&lt;p&gt;This post first appeared on the ET Ducky blog. I build ET Ducky, an RMM that reads ETW on Windows and eBPF on Linux.&lt;/p&gt;

&lt;p&gt;Event ID 19 from the Microsoft-Windows-WindowsUpdateClient source records an update that Windows Update installed. Microsoft lists its message as follows, where %1 is the update name.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Installation successful: Windows successfully installed the following update: %1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Microsoft's guidance for the event on its own is "This is a normal condition. No further action is required."&lt;/p&gt;

&lt;h2&gt;
  
  
  What it means
&lt;/h2&gt;

&lt;p&gt;One event 19 per update is expected. When the same update name shows up in event 19 on several days and the PC asks for a restart after each one, Windows Update is offering that update again after every install. On Intune-managed PCs, check whether the repeating update is a driver. Intune manages driver updates through driver update policies.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to find the cause
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;List the successful installs with the time of each and compare the update names across days.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FilterHashtable&lt;/span&gt; @&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;ProviderName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'Microsoft-Windows-WindowsUpdateClient'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="no"&gt;ID&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;19&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MaxEvents&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;TimeCreated&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Message&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Run the same query on a second PC in another update ring and check whether the same name repeats there too.&lt;/li&gt;
&lt;li&gt;Check the update ring for the PCs in Intune. Update ring policies and settings catalog policies can include settings that block Windows driver updates. A driver update policy needs the update ring's "Windows driver" setting at "Allow".&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Fixes
&lt;/h2&gt;

&lt;p&gt;Create a driver update policy for the affected devices with manual approval when the repeating update is a driver. In the Intune admin center, go to "Devices" &amp;gt; "Windows updates", open the "Driver updates" tab, select "Create profile", and choose "Manually approve and deploy driver updates" on the "Settings" page. With manual approval, each new driver lands in the policy as "Needs review". Only approved drivers install. Pick the approval type with care, because it can't be changed after the policy is created.&lt;/p&gt;

&lt;p&gt;Decline the repeating driver in that policy while it is still "Needs review", or pause it if it was already approved. Microsoft states that "After an update is Approved, it can never be Declined, but you can Pause it indefinitely." A paused driver isn't deployed to any more devices through the policy. Pausing doesn't roll back an installation that already finished.&lt;/p&gt;

&lt;p&gt;Approve a fixed version of the driver once the vendor publishes one. Windows Update installs only the latest approved version that is newer than the installed driver.&lt;/p&gt;

&lt;p&gt;Assign each device to one driver update policy only, so a driver declined in one policy isn't approved in another.&lt;/p&gt;

&lt;p&gt;Check the prerequisites Microsoft lists before you rely on the policy.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Microsoft Intune Plan 1 and a Windows license that includes the Windows Autopatch entitlement.&lt;/li&gt;
&lt;li&gt;Windows Pro, Pro Education, Enterprise, or Education. LTSC isn't supported.&lt;/li&gt;
&lt;li&gt;Devices that are Microsoft Entra joined or Microsoft Entra hybrid joined.&lt;/li&gt;
&lt;li&gt;Windows diagnostic data set to "Required" or higher.&lt;/li&gt;
&lt;li&gt;The Microsoft Account Sign-In Assistant service (&lt;code&gt;wlidsvc&lt;/code&gt;) enabled and running.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Related events
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://etducky.com/blog/windows-windowsupdateclient-event-id-20-installation-failure" rel="noopener noreferrer"&gt;Event ID 20, WindowsUpdateClient installation failure&lt;/a&gt; is the reference page for a failed install.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where ET Ducky shows it
&lt;/h2&gt;

&lt;p&gt;I build ET Ducky. Its patch management has rollout rings with tags, soak hours, and auto-promote, and a patch is marked successful only when the kernel event stream shows services back up with no crash loops, no baseline deviation, and no behavioral detections. You'd tag a few machines as your first ring and schedule updates to that tag before the rest. A regressed result pauses the deployment before the next ring.&lt;/p&gt;

&lt;p&gt;One Windows or Linux server costs $5 a month with no query subscription. Pricing is at &lt;a href="https://etducky.com/pricing" rel="noopener noreferrer"&gt;https://etducky.com/pricing&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/dd349772(v=ws.10)" rel="noopener noreferrer"&gt;Microsoft Learn, Event ID 19: WUA Update Installation&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/intune/intune-service/protect/windows-driver-updates-overview" rel="noopener noreferrer"&gt;Microsoft Learn, Manage Windows driver updates&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/intune/intune-service/protect/windows-driver-updates-policy" rel="noopener noreferrer"&gt;Microsoft Learn, Configure Windows driver update policies&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.diagnostics/get-winevent" rel="noopener noreferrer"&gt;Microsoft Learn, Get-WinEvent&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>windows</category>
      <category>sysadmin</category>
      <category>intune</category>
      <category>troubleshooting</category>
    </item>
    <item>
      <title>Event ID 10036 DCOM Server-Side Authentication Level Policy Does Not Allow the User</title>
      <dc:creator>Christopher Smith</dc:creator>
      <pubDate>Fri, 27 Nov 2026 13:48:00 +0000</pubDate>
      <link>https://dev.to/et-ducky/event-id-10036-dcom-server-side-authentication-level-policy-does-not-allow-the-user-2b2i</link>
      <guid>https://dev.to/et-ducky/event-id-10036-dcom-server-side-authentication-level-policy-does-not-allow-the-user-2b2i</guid>
      <description>&lt;p&gt;This post first appeared on the ET Ducky blog. I build ET Ducky, an RMM that reads ETW on Windows and eBPF on Linux.&lt;/p&gt;

&lt;p&gt;Event ID 10036 is a DCOM error that Windows writes to the System log of the server when a client tries to activate a DCOM server below the authentication level the server now requires. The message reads as follows.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;The server-side authentication level policy does not allow the user %1\%2 SID (%3) from address %4 to activate DCOM server. Please raise the activation authentication level at least to RPC_C_AUTHN_LEVEL_PKT_INTEGRITY in client application.
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;In the logged event, %1 is the domain, %2 is the user name, %3 is the user's SID, and %4 is the IP address of the client.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it means
&lt;/h2&gt;

&lt;p&gt;The server refused a DCOM activation because the client asked for an authentication level lower than &lt;code&gt;RPC_C_AUTHN_LEVEL_PKT_INTEGRITY&lt;/code&gt;. Microsoft added this check to fix CVE-2021-26414 and released it in three phases. The final phase, released March 14, 2023, keeps the hardening on with no ability to disable it.&lt;/p&gt;

&lt;p&gt;The 10036 message includes the account and the IP address of the client. The application that made the call appears only on the client, in event 10037 or 10038 in its System log. Anonymous activation at &lt;code&gt;RPC_C_AUTHN_LEVEL_NONE&lt;/code&gt; isn't affected by the hardening, so a DCOM server that allows anonymous activation still allows it.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to find the cause
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;List the refusals on the server with the time and message of each.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FilterHashtable&lt;/span&gt; @&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;LogName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'System'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="no"&gt;ID&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10036&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MaxEvents&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;TimeCreated&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Message&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Note the address in each message, then sign in to that client and list its DCOM client events.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FilterHashtable&lt;/span&gt; @&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;LogName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'System'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="no"&gt;ID&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10037&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;10038&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MaxEvents&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;TimeCreated&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Message&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;Read the application path, PID, CLSID, and authentication level in each client event. Event 10037 means the application set the authentication level explicitly. Event 10038 means it used the default activation authentication level.&lt;/li&gt;
&lt;li&gt;Check the date of the newest cumulative update on the client. Microsoft states that clients with the cumulative security updates from January 2023 or later have the auto-elevate patch fully enabled, which raises non-anonymous activation requests from Windows DCOM clients to &lt;code&gt;RPC_C_AUTHN_LEVEL_PKT_INTEGRITY&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;When the DCOM server is a certificate authority, reproduce the call from the client and check for a new 10036 on the CA at the same minute.
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;certutil&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;config&lt;/span&gt; &lt;span class="s2"&gt;"CAserver\CA Name"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;ping&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;KB5004442 lists the Windows versions that write these events, from Windows Server 2012 R2 and Windows 8.1 through Windows Server 2022 and Windows 11 22H2.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fixes
&lt;/h2&gt;

&lt;p&gt;Install the current cumulative update on any Windows client that logged event 10038 and is behind January 2023. The auto-elevate patch is included in every later cumulative update.&lt;/p&gt;

&lt;p&gt;Contact the vendor of any application that logged event 10037 or 10038 on an up-to-date client, and ask for a version that requests &lt;code&gt;RPC_C_AUTHN_LEVEL_PKT_INTEGRITY&lt;/code&gt; or higher. The event text itself says "To raise the activation authentication level, please contact the application vendor."&lt;/p&gt;

&lt;p&gt;Don't plan on the registry value &lt;code&gt;RequireIntegrityActivationAuthenticationLevel&lt;/code&gt; under &lt;code&gt;HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Ole\AppCompat&lt;/code&gt;. Microsoft documents it for the phases when the hardening could be turned on or off. The final phase removed the ability to disable it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Related events
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Event 10037 is the client-side event for an application that explicitly set an authentication level below the required level.&lt;/li&gt;
&lt;li&gt;Event 10038 is the client-side event for an application that used the default activation authentication level below the required level.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where ET Ducky shows it
&lt;/h2&gt;

&lt;p&gt;I build ET Ducky. Beyond the fifteen built-in behavioral rules, you can create custom rules using a rule builder to monitor for events that are unique in your environment. Automations can be configured around alerts. A Live Session on a managed Windows server runs an AI-driven investigation where the AI picks the ETW providers to capture in each round, and only counts-only summaries leave the host.&lt;/p&gt;

&lt;p&gt;One Windows or Linux server costs $5 a month with no query subscription. Pricing is at &lt;a href="https://etducky.com/pricing" rel="noopener noreferrer"&gt;https://etducky.com/pricing&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;&lt;a href="https://support.microsoft.com/en-us/topic/kb5004442-manage-changes-for-windows-dcom-server-security-feature-bypass-cve-2021-26414-f1400b52-c141-43d2-941e-37ed901c769c" rel="noopener noreferrer"&gt;Microsoft Support, KB5004442: Manage changes for Windows DCOM Server Security Feature Bypass (CVE-2021-26414)&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/certutil" rel="noopener noreferrer"&gt;Microsoft Learn, certutil&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.diagnostics/get-winevent" rel="noopener noreferrer"&gt;Microsoft Learn, Get-WinEvent&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>windows</category>
      <category>sysadmin</category>
      <category>security</category>
      <category>troubleshooting</category>
    </item>
    <item>
      <title>Finding Why a Hyper-V VM Won't Start When the Host Has Free Memory</title>
      <dc:creator>Christopher Smith</dc:creator>
      <pubDate>Wed, 25 Nov 2026 15:48:30 +0000</pubDate>
      <link>https://dev.to/et-ducky/finding-why-a-hyper-v-vm-wont-start-when-the-host-has-free-memory-3k75</link>
      <guid>https://dev.to/et-ducky/finding-why-a-hyper-v-vm-wont-start-when-the-host-has-free-memory-3k75</guid>
      <description>&lt;p&gt;This post first appeared on the ET Ducky blog. I build ET Ducky, an RMM that reads ETW on Windows and eBPF on Linux.&lt;/p&gt;

&lt;p&gt;A Hyper-V host can refuse to start a virtual machine with a memory error while Task Manager shows plenty of memory free. Microsoft documents two reasons for this. The host reserves memory for itself that Task Manager still counts as available. A host with NUMA spanning turned off also has to fit each virtual NUMA node of the VM inside one physical NUMA node. This post covers how to read the error in the Hyper-V logs, how to check the memory Hyper-V can actually give a new VM, and how to fix each cause.&lt;/p&gt;

&lt;p&gt;A recent &lt;a href="https://www.reddit.com/r/homelab/comments/1y0on98/" rel="noopener noreferrer"&gt;r/homelab thread&lt;/a&gt; describes a host with 256 GB of memory where whichever VM starts last fails with an out-of-memory error. The VMs together need far less than the installed memory. A last-started VM failing while the others run most likely fits NUMA spanning being off.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the start failure in the Hyper-V logs
&lt;/h2&gt;

&lt;p&gt;The Hyper-V Manager error says the VM could not initialize, followed by "Not enough memory in the system to start the virtual machine". The logs hold more detail than the dialog. The exact Hyper-V log names on a host can be listed with &lt;code&gt;Get-WinEvent&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ListLog&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="nc"&gt;Hyper&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="no"&gt;V&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Where&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;RecordCount&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;gt&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;LogName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;RecordCount&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pull the start failures from the Virtual Machine Management Service admin log.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FilterHashtable&lt;/span&gt; @&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nc"&gt;LogName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'Microsoft-Windows-Hyper-V-VMMS-Admin'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nc"&gt;Id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;19544&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MaxEvents&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;TimeCreated&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Message&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Event 19544 reads "Failed to start the virtual machine" with the VM name, the memory it required in MB, and the memory that was available in the system. When the available figure is lower than what Task Manager showed at the same time, the host reservation or another process on the host holds the difference.&lt;/p&gt;

&lt;p&gt;A NUMA placement failure has its own message. A &lt;a href="https://techcommunity.microsoft.com/discussions/windowsserver/numa-problems-after-in-place-upgrade-2022-to-2025/4396714" rel="noopener noreferrer"&gt;Windows Server 2025 report&lt;/a&gt; shows it as event 10002 in the Hyper-V Compute admin log.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FilterHashtable&lt;/span&gt; @&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nc"&gt;LogName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'Microsoft-Windows-Hyper-V-Compute-Admin'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nc"&gt;Id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;10002&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MaxEvents&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;TimeCreated&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Message&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Event 10002 says "The virtual machine NUMA topology requirements cannot be satisfied by the server NUMA topology." and suggests enabling NUMA spanning.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check the memory Hyper-V can give a new VM
&lt;/h2&gt;

&lt;p&gt;Microsoft's &lt;a href="https://learn.microsoft.com/en-us/troubleshoot/windows-server/virtualization/error-not-enough-memory-system-start-virtual-machine" rel="noopener noreferrer"&gt;article on this error&lt;/a&gt; says the memory available to start a VM differs from the available memory in Task Manager. It points to the "Available Memory" counter of the "Hyper-V Dynamic Memory Balancer" object, instance "System Balancer".&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Counter&lt;/span&gt; &lt;span class="s1"&gt;'\Hyper-V Dynamic Memory Balancer(System Balancer)\Available Memory'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The counter value depends on the memory used by applications on the host and by each VM worker process (vmwp.exe). Compare it with the startup memory of the VM that fails.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cause one: NUMA spanning is off
&lt;/h2&gt;

&lt;p&gt;Check the spanning setting and the free memory on each physical NUMA node.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;VMHost&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;NumaSpanningEnabled&lt;/span&gt;
&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;VMHostNumaNode&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;NodeId&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;MemoryAvailable&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;MemoryTotal&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;MemoryAvailable and MemoryTotal are in MB. NUMA spanning is on by default. Microsoft's &lt;a href="https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/dn282282(v=ws.11)" rel="noopener noreferrer"&gt;Hyper-V Virtual NUMA overview&lt;/a&gt; says that with spanning off, a VM fails to start if any of its virtual NUMA nodes can't be placed entirely within one physical NUMA node. A VM with Dynamic Memory also can't use more memory than one physical node has. The VMs that start first can fill one node, so the last VM to start fails even though another node has free memory.&lt;/p&gt;

&lt;p&gt;I'd turn spanning back on unless a workload on the host was set up to need it off. Enable "Allow virtual machines to span physical NUMA nodes" under "NUMA Spanning" in Hyper-V Settings, or set it from PowerShell.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Set&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;VMHost&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;NumaSpanningEnabled&lt;/span&gt; &lt;span class="nv"&gt;$true&lt;/span&gt;
&lt;span class="nc"&gt;Restart&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Service&lt;/span&gt; &lt;span class="n"&gt;vmms&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Restarting the Virtual Machine Management Service applies the change. Running VMs keep running through the service restart. Start the failed VM again and run the &lt;code&gt;Get-VMHostNumaNode&lt;/code&gt; check to see which node it took memory from.&lt;/p&gt;

&lt;p&gt;Spanning lets a virtual NUMA node use memory on a remote physical node, which has a performance cost for the VM. When spanning has to stay off, resize the VM so each of its virtual NUMA nodes fits in the free memory of one physical node, or move a VM off the full node.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cause two: the host or a host application holds the memory
&lt;/h2&gt;

&lt;p&gt;When spanning is on and event 19544 still reports less available memory than Task Manager, the difference is on the host. Microsoft's article says the host reserves the minimum memory needed for the host OS and its applications when it starts. Its workaround is to free memory on the host or resize the VM to what the "System Balancer" counter shows.&lt;/p&gt;

&lt;p&gt;List the host processes with the most committed memory.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="k"&gt;Process&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Sort&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;PagedMemorySize64&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Descending&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;First&lt;/span&gt; &lt;span class="mi"&gt;10&lt;/span&gt; &lt;span class="nc"&gt;Name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;@&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'CommitMB'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nv"&gt;$_&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nc"&gt;PagedMemorySize64&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="mi"&gt;1MB&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="sb"&gt;```

One [Microsoft Q&amp;amp;A thread](https://learn.microsoft.com/en-us/answers/questions/2186799/server-2022-hyper-v-unable-to-boot-vm-due-to-insuf) traced the error to a database server on the host that reserved up to half of physical memory for its cache by default. Capping that cache in the application's own settings let the VM start. Move a memory-heavy application like that database server into a VM, or cap its memory use in its own configuration.

## Confirm the VMs start in any order

Stop one VM and start the one that failed, then start the rest. Run the `&lt;/span&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Counter&lt;/span&gt;&lt;span class="sb"&gt;` and `&lt;/span&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;VMHostNumaNode&lt;/span&gt;&lt;span class="sb"&gt;` checks again with every VM running. Each node should still show free memory. No new 19544 or 10002 events should appear.

## Where ET Ducky shows it

I build ET Ducky. You can open a Live Session shell to the Hyper-V host from the browser without the need for a VPN and run the `&lt;/span&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt;&lt;span class="sb"&gt;`, `&lt;/span&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Counter&lt;/span&gt;&lt;span class="sb"&gt;`, and `&lt;/span&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;VMHostNumaNode&lt;/span&gt;&lt;span class="sb"&gt;` checks there.

One Windows or Linux server costs $5 a month with no query subscription. Pricing is at https://etducky.com/pricing.
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

</description>
      <category>windows</category>
      <category>sysadmin</category>
      <category>hyperv</category>
      <category>troubleshooting</category>
    </item>
    <item>
      <title>Finding Which Process Caused a CPU Spike on a Linux Server</title>
      <dc:creator>Christopher Smith</dc:creator>
      <pubDate>Wed, 25 Nov 2026 08:01:50 +0000</pubDate>
      <link>https://dev.to/et-ducky/finding-which-process-caused-a-cpu-spike-on-a-linux-server-2514</link>
      <guid>https://dev.to/et-ducky/finding-which-process-caused-a-cpu-spike-on-a-linux-server-2514</guid>
      <description>&lt;p&gt;This post first appeared on the ET Ducky blog. I build ET Ducky, an RMM that reads ETW on Windows and eBPF on Linux.&lt;/p&gt;

&lt;p&gt;A CPU alert on a Linux server usually arrives after the spike is over. By the time you sign in, &lt;code&gt;top&lt;/code&gt; shows an idle machine and nothing points at the process that held the CPU. Most monitoring tools record that the host crossed a threshold and nothing about which process did it. This post covers how to keep enough history on the server to name the process the next time it happens, with tools from the distribution's own repositories.&lt;/p&gt;

&lt;h2&gt;
  
  
  Confirm the spike in the system history
&lt;/h2&gt;

&lt;p&gt;I'd check whether sysstat is already collecting before installing anything. Run &lt;code&gt;sar -u&lt;/code&gt; with the alert's time window to read CPU use from today's data file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sar -u -s 03:00:00 -e 03:30:00
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For an earlier day, add &lt;code&gt;-f&lt;/code&gt; with the data file for that day. The files are in &lt;code&gt;/var/log/sysstat&lt;/code&gt; on Debian and Ubuntu and in &lt;code&gt;/var/log/sa&lt;/code&gt; on RHEL and Fedora.&lt;/p&gt;

&lt;p&gt;The &lt;code&gt;%user&lt;/code&gt;, &lt;code&gt;%system&lt;/code&gt;, and &lt;code&gt;%iowait&lt;/code&gt; columns show what kind of work held the CPU. High &lt;code&gt;%iowait&lt;/code&gt; with low &lt;code&gt;%user&lt;/code&gt; points at storage before it points at a busy process. Run &lt;code&gt;sar -q&lt;/code&gt; for the same window to see the run queue and the load average. sar records totals for the whole system, so it confirms the spike and its size but can't name the process.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep a per-process history with atop
&lt;/h2&gt;

&lt;p&gt;Install atop from the distribution's repositories. Its logging service writes a sample of every process to &lt;code&gt;/var/log/atop/atop_YYYYMMDD&lt;/code&gt; every 600 seconds by default. A spike that lasts two minutes gets averaged into a ten minute sample and can disappear from it, so shorten the interval. On Debian and Ubuntu the setting is &lt;code&gt;LOGINTERVAL&lt;/code&gt; in &lt;code&gt;/etc/default/atop&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo apt install atop
sudo sed -i &lt;span class="s1"&gt;'s/^LOGINTERVAL=.*/LOGINTERVAL=60/'&lt;/span&gt; /etc/default/atop
sudo systemctl restart atop
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A 60 second interval makes each daily log larger. Check the size of &lt;code&gt;/var/log/atop&lt;/code&gt; after the first full day on a server with a small disk.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the log at the time of the alert
&lt;/h2&gt;

&lt;p&gt;After the next alert, open that day's log at the alert time with &lt;code&gt;-r&lt;/code&gt; for the file and &lt;code&gt;-b&lt;/code&gt; for the start time.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;atop -r /var/log/atop/atop_20261005 -b 03:10
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Press &lt;code&gt;C&lt;/code&gt; to sort the process list by CPU, then press &lt;code&gt;t&lt;/code&gt; to step forward one sample and &lt;code&gt;T&lt;/code&gt; to step back. Press &lt;code&gt;c&lt;/code&gt; to show the full command line of each process. The process at the top of the CPU column in the sample that covers the alert time is most likely the cause. The command line usually names the job, the library, or the backup set it was working on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Match the time to scheduled work
&lt;/h2&gt;

&lt;p&gt;A spike at the same minute every day or every week usually comes from scheduled work. Run &lt;code&gt;systemctl list-timers --all&lt;/code&gt; and compare the LAST column with the alert time. Next, check &lt;code&gt;/etc/crontab&lt;/code&gt;, the files in &lt;code&gt;/etc/cron.d&lt;/code&gt;, and each user's crontab with &lt;code&gt;crontab -l -u&lt;/code&gt; followed by the user name.&lt;/p&gt;

&lt;p&gt;Read the journal for the same window to see which units started and stopped.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;journalctl --since &lt;span class="s2"&gt;"2026-10-05 03:05"&lt;/span&gt; --until &lt;span class="s2"&gt;"2026-10-05 03:20"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When a service or session scope stops, systemd writes a line with the unit name followed by "Consumed" and the CPU time it used. Filter the window for those lines to rank the units that finished during the spike.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;journalctl --since &lt;span class="s2"&gt;"2026-10-05 03:05"&lt;/span&gt; --until &lt;span class="s2"&gt;"2026-10-05 03:20"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; grep &lt;span class="s2"&gt;"CPU time"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For a unit that is still running, &lt;code&gt;systemctl status&lt;/code&gt; followed by the unit name shows a CPU line with the total CPU time it has used since it started.&lt;/p&gt;

&lt;h2&gt;
  
  
  Watch the next one live
&lt;/h2&gt;

&lt;p&gt;When the spike repeats on a schedule, watch it as it happens. Run &lt;code&gt;systemd-cgtop -d 5&lt;/code&gt; a minute before the expected time and note which service or scope stays at the top. Package managers and snap refreshes run as their own units, so &lt;code&gt;snapd.service&lt;/code&gt; or a &lt;code&gt;snap.*&lt;/code&gt; scope at the top points at a snap refresh. Run &lt;code&gt;snap changes&lt;/code&gt; to find a change that stays in the Doing status.&lt;/p&gt;

&lt;p&gt;A process that starts and exits between two samples doesn't appear in atop or systemd-cgtop. Record every process start during the window with execsnoop from the BCC tools. It's in the &lt;code&gt;bpfcc-tools&lt;/code&gt; package on Debian and Ubuntu as &lt;code&gt;execsnoop-bpfcc&lt;/code&gt;, and in the &lt;code&gt;bcc-tools&lt;/code&gt; package on RHEL and Fedora under &lt;code&gt;/usr/share/bcc/tools/execsnoop&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo execsnoop-bpfcc -T
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;-T&lt;/code&gt; option adds a time column. A script that starts hundreds of short processes in the alert minute shows up as a run of lines with the same parent process ID.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where ET Ducky shows it
&lt;/h2&gt;

&lt;p&gt;I build ET Ducky, and its Linux agent reads process exec and exit, file open and close, and network connect and accept events from eBPF tracepoints. A process that starts and exits between two samples is still in that event record. Every alert gets an automatic root-cause analysis (cause, impact, mitigation, prevention, and confidence) backed by the kernel events that triggered it.&lt;/p&gt;

&lt;p&gt;When several servers spike at the same time, you'd start a Multi-Agent Session across them, and it correlates the events from each host to find a shared cause or an outlier. You can also open a Live Session shell from the browser without the need for a VPN and run the atop and journalctl commands above on the host. If the process at the top is one you don't recognize, the built-in crypto-miner-heuristic rule evaluates the same kernel event stream on every managed agent.&lt;/p&gt;

&lt;p&gt;One Windows or Linux server on the Free query tier with your own AI key costs $5 a month. Pricing is at &lt;a href="https://etducky.com/pricing" rel="noopener noreferrer"&gt;https://etducky.com/pricing&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>sysadmin</category>
      <category>devops</category>
      <category>performance</category>
    </item>
    <item>
      <title>Finding Why a Windows Server In-Place Upgrade Rolls Back</title>
      <dc:creator>Christopher Smith</dc:creator>
      <pubDate>Wed, 25 Nov 2026 07:57:50 +0000</pubDate>
      <link>https://dev.to/et-ducky/finding-why-a-windows-server-in-place-upgrade-rolls-back-5704</link>
      <guid>https://dev.to/et-ducky/finding-why-a-windows-server-in-place-upgrade-rolls-back-5704</guid>
      <description>&lt;p&gt;This post first appeared on the ET Ducky blog. I build ET Ducky, an RMM that reads ETW on Windows and eBPF on Linux.&lt;/p&gt;

&lt;p&gt;A Windows Server in-place upgrade that reaches a late percentage, restarts, and comes back on the old version has rolled back. Setup records why in its own logs, and it keeps those logs after the rollback. This post covers how to read the error code, open the log that matches it, and fix the cause before the next attempt.&lt;/p&gt;

&lt;p&gt;A recent &lt;a href="https://www.reddit.com/r/sysadmin/comments/1xb135k/" rel="noopener noreferrer"&gt;r/sysadmin thread&lt;/a&gt; had a Windows Server 2016 to 2022 upgrade that stalled at 88% and rolled back. SetupDiag reported 0xC1900101-0x4000D against the x86 copy of ntprint.inf, and SFC and DISM had already been run. The steps below follow a result like that back to the driver or file that stopped the upgrade.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the error code
&lt;/h2&gt;

&lt;p&gt;A Windows Setup error has a result code and an extend code. Result code 0xC1900101 is the generic rollback code, and Microsoft's documentation says the cause is usually an incompatible driver. The extend code after the dash says where setup was when it failed. Its first digit is the phase and its last two digits are the operation.&lt;/p&gt;

&lt;p&gt;Phase 1 is the down-level phase, while the old operating system is still running. Phase 2 is the Safe OS phase, 3 is the first boot into the new system, and 4 is the boot after that. Operation 0D is data migration, 17 is boot, and 18 is sysprep. So 0x4000D is a failure while setup migrated data after the second restart, and 0x30018 is a failure during the sysprep operation.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the SetupDiag result
&lt;/h2&gt;

&lt;p&gt;SetupDiag reads the setup logs and reports the rule that matched the failure. Windows Setup extracts it to C:\$Windows.~BT\Sources and runs it on its own after a failed upgrade. It writes the result to %WinDir%\Logs\SetupDiag\SetupDiagResults.xml and to the registry under HKLM\SYSTEM\Setup\SetupDiag\Results.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Content&lt;/span&gt; &lt;span class="s2"&gt;"$env:windir\Logs\SetupDiag\SetupDiagResults.xml"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When that file isn't there, download the current SetupDiag from Microsoft and run it from an elevated prompt on the server that failed. It needs .NET Framework 4.7.2 or later, and it finds the logs on that server without any arguments.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;SetupDiag.exe /Output:C:\SetupDiag\Results.log
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The result names the failure and often the file or driver package involved. In the thread above it named the x86 printer driver package. When SetupDiag reports no match, read the logs directly.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open the log for the phase
&lt;/h2&gt;

&lt;p&gt;Setup writes setupact.log for actions and setuperr.log for errors in a different folder for each phase. Both files are in the same folder.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;C:\$Windows.~BT\Sources\Panther holds the down-level phase and is the starting point for rollback investigations.&lt;/li&gt;
&lt;li&gt;C:\$Windows.~BT\Sources\Rollback holds the rollback itself and is the one Microsoft lists for generic 0xC1900101 rollbacks.&lt;/li&gt;
&lt;li&gt;C:\$Windows.~BT\Sources\Panther\UnattendGC holds the OOBE phase.&lt;/li&gt;
&lt;li&gt;C:\Windows\Panther holds the logs after an upgrade that finished.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Search for the two strings Microsoft documents for a failed apply, and keep the last matches.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="kt"&gt;String&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Path&lt;/span&gt; &lt;span class="s1"&gt;'C:\$Windows.~BT\Sources\Panther\setupact.log'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'C:\$Windows.~BT\Sources\Rollback\setupact.log'&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Pattern&lt;/span&gt; &lt;span class="s1"&gt;'Shell application requested abort'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'Abandoning apply due to error for object'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Last&lt;/span&gt; &lt;span class="mi"&gt;5&lt;/span&gt; &lt;span class="nc"&gt;Filename&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;LineNumber&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Line&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open the log at that line number and read the lines above it. The SP, MIG, and CONX entries come from the setup platform, the migration engine, and the compatibility checks, and they name the object setup was working on. Write down the timestamp, then find the same time in setuperr.log. Decode any Win32 error code you find there with certutil.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;certutil -error 0x570
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Microsoft's own example of this search ends at error 0x570, ERROR_FILE_CORRUPT, on a machine key file under C:\ProgramData\Microsoft\Crypto\RSA\S-1-5-18. Deleting that file resolved the upgrade in their example. The file or driver in your log is the one to fix.&lt;/p&gt;

&lt;h2&gt;
  
  
  When the rollback followed a crash
&lt;/h2&gt;

&lt;p&gt;A 0x4000D rollback often follows a stop error during the second boot. The rollback folder keeps a minidump as setupmem.dmp, the event logs from the attempt as .evtx files, and the device install log at setupapi\setupapi.dev.log. Open setupmem.dmp in WinDbg, run !analyze -v, and read the MODULE_NAME and IMAGE_NAME lines. Update or remove the driver the dump names. For a 0x30018 rollback, read setupapi.dev.log for the device whose install ends in a failure status.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fix the cause
&lt;/h2&gt;

&lt;p&gt;For an x86 printer driver like the one in the thread, list the 32-bit drivers and remove each one from the driver store.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;PrinterDriver&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Where&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;PrinterEnvironment&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;eq&lt;/span&gt; &lt;span class="s1"&gt;'Windows NT x86'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;Name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;PrinterEnvironment&lt;/span&gt;
&lt;span class="nc"&gt;Remove&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;PrinterDriver&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Name&lt;/span&gt; &lt;span class="s2"&gt;"&amp;lt;name&amp;gt;"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;PrinterEnvironment&lt;/span&gt; &lt;span class="s1"&gt;'Windows NT x86'&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;RemoveFromDriverStore&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A driver still assigned to a shared printer won't remove. Set that printer to its x64 driver only under Sharing, then Additional Drivers in Print Management, and remove the x86 driver after that.&lt;/p&gt;

&lt;p&gt;For other drivers, update the driver or remove the device software that installed it. Microsoft lists antivirus filter and encryption drivers as a cause of 0x40017 rollbacks after the second restart, so uninstall third-party antivirus and do a clean boot before the next attempt. Check that the system drive has at least 20 GB free, the minimum Microsoft lists for a 64-bit upgrade.&lt;/p&gt;

&lt;h2&gt;
  
  
  Before the next attempt
&lt;/h2&gt;

&lt;p&gt;Microsoft's in-place upgrade guide asks for a full backup with a tested restore, and it rules out two kinds of server. Don't run an in-place upgrade on a domain controller. Build a new one and demote the old one instead. A clustered server takes Cluster-Aware Updating or a cluster operating system rolling upgrade instead.&lt;/p&gt;

&lt;p&gt;I'd run the next attempt on a restored copy of the server first. When it finishes there, the same fix is ready for the live server, and the copy gives you the time each phase takes for the maintenance window.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where ET Ducky shows it
&lt;/h2&gt;

&lt;p&gt;I build ET Ducky, and its Windows agent reads process creation and file events from the kernel through ETW on every managed server. You can open a Live Session shell from the browser without the need for a VPN and run the Select-String and SetupDiag commands above on the server that rolled back.&lt;/p&gt;

&lt;p&gt;You'd start a Multi-Agent Session across a server that upgraded and the one that rolled back. It compares the kernel events from both to find the outlier. Only counts-only summaries leave each host, and the raw kernel events stay on it.&lt;/p&gt;

&lt;p&gt;One Windows or Linux server on the Free query tier with your own AI key costs $5 a month. Pricing is at &lt;a href="https://etducky.com/pricing" rel="noopener noreferrer"&gt;https://etducky.com/pricing&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>windows</category>
      <category>windowsserver</category>
      <category>sysadmin</category>
      <category>troubleshooting</category>
    </item>
    <item>
      <title>Finding Why a Windows Domain Trust Relationship Keeps Failing</title>
      <dc:creator>Christopher Smith</dc:creator>
      <pubDate>Wed, 25 Nov 2026 07:50:31 +0000</pubDate>
      <link>https://dev.to/et-ducky/finding-why-a-windows-domain-trust-relationship-keeps-failing-n3j</link>
      <guid>https://dev.to/et-ducky/finding-why-a-windows-domain-trust-relationship-keeps-failing-n3j</guid>
      <description>&lt;p&gt;This post first appeared on the ET Ducky blog. I build ET Ducky, an RMM that reads ETW on Windows and eBPF on Linux.&lt;/p&gt;

&lt;p&gt;A domain-joined Windows 11 machine that loses its secure channel shows the sign-in message "The trust relationship between this workstation and the primary domain failed." Cached credentials often still work, so the problem shows up first as users who can't sign in after a restart or a password change. Since the September 8, 2026 security update, this has a known cause on some machines, and it can also come back after the known fix is applied. This post covers how to find which of those you have with tools that ship with Windows and Active Directory.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check the known issue first
&lt;/h2&gt;

&lt;p&gt;Microsoft lists this as a known issue for Windows 11 versions 24H2, 25H2, 26H1, and 26H2 on the Windows release health page (&lt;a href="https://learn.microsoft.com/en-us/windows/release-health/status-windows-11-24h2" rel="noopener noreferrer"&gt;Windows 11, version 24H2 known issues&lt;/a&gt;), and marks it resolved by the September 22, 2026 update (KB5124010). KB5124008 and the updates before KB5124010 cause Windows to honor existing Machine Identity Isolation settings, and Microsoft says that feature is supported only with domain controllers at a Windows Server 2025 domain functional level. Machines on those updates with Credential Guard protected machine accounts and older domain controllers can lose their secure channel. KB5124010 and later updates turn off Machine Identity Isolation enforcement regardless of its settings.&lt;/p&gt;

&lt;p&gt;On an affected machine that doesn't have KB5124010 yet, read the two registry values from an elevated PowerShell prompt.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ItemProperty&lt;/span&gt; &lt;span class="s1"&gt;'HKLM:\SYSTEM\CurrentControlSet\Control\Lsa'&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Name&lt;/span&gt; &lt;span class="nc"&gt;MachineIdentityIsolation&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ErrorAction&lt;/span&gt; &lt;span class="nc"&gt;SilentlyContinue&lt;/span&gt;
&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ItemProperty&lt;/span&gt; &lt;span class="s1"&gt;'HKLM:\SOFTWARE\Policies\Microsoft\Windows\DeviceGuard'&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Name&lt;/span&gt; &lt;span class="nc"&gt;MachineIdentityIsolation&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ErrorAction&lt;/span&gt; &lt;span class="nc"&gt;SilentlyContinue&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A value of 2 is enforcement mode. Disable the setting with the same method that enabled it. For Group Policy that is "Turn On Virtualization Based Security" under Computer Configuration\Administrative Templates\System\Device Guard. Run &lt;code&gt;gpresult /h gp.html&lt;/code&gt; to find which GPO sets it. For Intune it is the DeviceGuard MachineIdentityIsolation policy. Set the value to 0, restart, and repair the channel.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Test&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ComputerSecureChannel&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Repair&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Credential&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Credential&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If both values are 0 or absent and the machine still fails, the cause is somewhere else. The rest of this post assumes that case.&lt;/p&gt;

&lt;h2&gt;
  
  
  Log which domain controller each result comes from
&lt;/h2&gt;

&lt;p&gt;A secure channel that passes one minute and fails the next can depend on which domain controller the client is talking to at that moment. Test-ComputerSecureChannel accepts a -Server parameter, so you can test the channel against each domain controller by name and record the result. List your domain controllers with &lt;code&gt;nltest /dclist:YOURDOMAIN&lt;/code&gt;, put their names in the script below, and run it in an elevated PowerShell window on an affected machine.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$dcs&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'DC-NAME-1'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'DC-NAME-2'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'DC-NAME-3'&lt;/span&gt;
&lt;span class="k"&gt;while&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$true&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="k"&gt;foreach&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$dc&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nv"&gt;$dcs&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
        &lt;span class="nv"&gt;$ok&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nc"&gt;Test&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ComputerSecureChannel&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Server&lt;/span&gt; &lt;span class="nv"&gt;$dc&lt;/span&gt;
        &lt;span class="s2"&gt;"{0:u} {1} {2}"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;f&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$dc&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nv"&gt;$ok&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Add&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Content&lt;/span&gt; &lt;span class="no"&gt;C&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;\&lt;span class="nc"&gt;Temp&lt;/span&gt;\&lt;span class="n"&gt;securechannel&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;log&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="nc"&gt;Start&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Sleep&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Seconds&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Also run &lt;code&gt;nltest /sc_query:YOURDOMAIN&lt;/code&gt; when a user reports a failed sign-in. The "Trusted DC Name" line gives the domain controller the Netlogon service is using right now, and "Trusted DC Connection Status" gives the result of the last use of the channel.&lt;/p&gt;

&lt;p&gt;After an hour, open securechannel.log. When every False result comes from one or two domain controllers, it's likely that those domain controllers hold a different machine account password than the client. When False results come from every domain controller at the same times, look at the client itself.&lt;/p&gt;

&lt;h2&gt;
  
  
  Compare the computer account on every domain controller
&lt;/h2&gt;

&lt;p&gt;Get the distinguished name of the affected computer account, then show its replication metadata on every domain controller.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ADComputer&lt;/span&gt; &lt;span class="no"&gt;AFFECTED&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="no"&gt;PC&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;DistinguishedName&lt;/span&gt;
&lt;span class="n"&gt;repadmin&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;showobjmeta&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="s2"&gt;"CN=AFFECTED-PC,OU=Workstations,DC=yourdomain,DC=local"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Find the pwdLastSet and unicodePwd rows in each domain controller's output. Each row gives the version number, the originating domain controller, and the time of the last change. A domain controller that shows a lower version than the others has not received the latest password change. Run &lt;code&gt;repadmin /showrepl&lt;/code&gt; on that domain controller and fix the replication error it reports before you repair any more clients.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the Netlogon events on both sides
&lt;/h2&gt;

&lt;p&gt;On the client, filter the System log for Netlogon event 5719.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FilterHashtable&lt;/span&gt; @&lt;span class="p"&gt;{&lt;/span&gt;    &lt;span class="nc"&gt;LogName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'System'&lt;/span&gt;
    &lt;span class="nc"&gt;ProviderName&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'NETLOGON'&lt;/span&gt;
    &lt;span class="nc"&gt;Id&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="mi"&gt;5719&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MaxEvents&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Format&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;List&lt;/span&gt; &lt;span class="nc"&gt;TimeCreated&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nc"&gt;Message&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The message reads "This computer was not able to set up a secure session with a domain controller in domain" followed by the domain name and the error. Match the times against the False results in securechannel.log.&lt;/p&gt;

&lt;p&gt;On the domain controllers that returned False, filter the System log for Netlogon event 5722. The message reads "The session setup from the computer" followed by the computer name, then "failed to authenticate" and the error. Microsoft documents that 5722 is also logged when a computer updates its own password, and in that case the channel is still valid. Count only the 5722 events whose times match a False result from that domain controller (&lt;a href="https://learn.microsoft.com/en-us/troubleshoot/windows-server/active-directory/event-id-5722-logged-on-domain-controller" rel="noopener noreferrer"&gt;Event ID 5722 is logged on a domain controller&lt;/a&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  Turn on Netlogon debug logging
&lt;/h2&gt;

&lt;p&gt;When the events don't explain the failures, turn on Netlogon debug logging on the client from an administrative command prompt.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nltest /dbflag:0x2080ffff
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The log is written to &lt;code&gt;C:\Windows\debug\netlogon.log&lt;/code&gt;. Wait for the next False result in securechannel.log, then read the netlogon.log lines with the same timestamp. Each session setup attempt names the domain controller it tried and the status it got back. Turn the logging off when you have the lines you need.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;nltest /dbflag:0x0
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Repair the channel once the cause is fixed
&lt;/h2&gt;

&lt;p&gt;When the failures come from one domain controller, fix that domain controller's replication first. Next, run &lt;code&gt;Test-ComputerSecureChannel -Repair -Credential (Get-Credential)&lt;/code&gt; on each affected client and let the logging script run for another hour. A full hour of True results from every domain controller means the channel is stable. When the failures come from every domain controller, check the Machine Identity Isolation values again, because a GPO or Intune policy that still sets them will set them back to 2 at the next refresh.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where ET Ducky fits
&lt;/h2&gt;

&lt;p&gt;I build ET Ducky. You'd start a Multi-Agent Session across the affected clients and the domain controllers they authenticate against. Multi-Agent Sessions ingest the sequence of events that occur as each agent in the session attempts the process, then correlate the results that are reported from each to determine what systemic issue may be occurring. The &lt;a href="https://etducky.com/blog/multi-agent-automated-troubleshooting" rel="noopener noreferrer"&gt;multi-agent troubleshooting post&lt;/a&gt; walks through a session across four machines.&lt;/p&gt;

&lt;p&gt;One Windows or Linux server on the Free query tier with your own AI key costs $5 a month. Pricing is at &lt;a href="https://etducky.com/pricing" rel="noopener noreferrer"&gt;https://etducky.com/pricing&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>windows</category>
      <category>activedirectory</category>
      <category>sysadmin</category>
      <category>troubleshooting</category>
    </item>
    <item>
      <title>Print Jobs Stuck Until You Restart the Print Spooler</title>
      <dc:creator>Christopher Smith</dc:creator>
      <pubDate>Tue, 24 Nov 2026 14:24:24 +0000</pubDate>
      <link>https://dev.to/et-ducky/print-jobs-stuck-until-you-restart-the-print-spooler-5b5</link>
      <guid>https://dev.to/et-ducky/print-jobs-stuck-until-you-restart-the-print-spooler-5b5</guid>
      <description>&lt;p&gt;This post first appeared on the ET Ducky blog. I build ET Ducky, an RMM that reads ETW on Windows and eBPF on Linux.&lt;/p&gt;

&lt;p&gt;Print jobs that sit at Ready in the queue until the Print Spooler service is restarted, and that print again for a while after a reboot, often point at the connection between the PC and the printer and not at the document. This post covers how to tell a spooler crash apart from a spooler that is running but can't reach the printer, how to check the printer port, and how to move the printer to a port that points at a fixed address.&lt;/p&gt;

&lt;p&gt;A recent &lt;a href="https://www.elevenforum.com/t/need-to-restart-print-spooler-to-print-every-time.50215/" rel="noopener noreferrer"&gt;ElevenForum thread&lt;/a&gt; had this on a Windows 11 PC with a wireless printer. Every job stayed at Ready until the spooler was restarted, a reboot fixed it for a few days, and other devices printed to the same printer through the same router without a problem.&lt;/p&gt;

&lt;h2&gt;
  
  
  Find out whether the spooler is crashing
&lt;/h2&gt;

&lt;p&gt;Check the service state first, while a job is stuck.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Service&lt;/span&gt; &lt;span class="nc"&gt;Spooler&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;Status&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;StartType&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A status of Running with a stuck job means the spooler is up and the job isn't leaving the PC. A status of Stopped means the spooler stopped on its own, and the System log records it. List the Service Control Manager entries that name the spooler.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FilterHashtable&lt;/span&gt; @&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nc"&gt;LogName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'System'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nc"&gt;ProviderName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'Service Control Manager'&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MaxEvents&lt;/span&gt; &lt;span class="mi"&gt;300&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Where&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;Message&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;like&lt;/span&gt; &lt;span class="s1"&gt;'*Print Spooler*'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;TimeCreated&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Message&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Entries that say the Print Spooler service terminated unexpectedly mean the process crashed. Look in the Application log for an Application Error entry at the same minute that names &lt;code&gt;spoolsv.exe&lt;/code&gt;, and note the faulting module it lists.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FilterHashtable&lt;/span&gt; @&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nc"&gt;LogName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'Application'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nc"&gt;ProviderName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'Application Error'&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MaxEvents&lt;/span&gt; &lt;span class="mi"&gt;100&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Where&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;Message&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="n"&gt;like&lt;/span&gt; &lt;span class="s1"&gt;'*spoolsv.exe*'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;TimeCreated&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Message&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A faulting module that belongs to a printer vendor points at the driver. Update the driver from the printer maker, or switch the printer to a Windows in-box driver if the current one is already the latest. Microsoft's &lt;a href="https://learn.microsoft.com/en-us/troubleshoot/windows-server/printing/troubleshoot-printing-scenarios" rel="noopener noreferrer"&gt;printing troubleshooting guide&lt;/a&gt; also covers old files in &lt;code&gt;C:\Windows\System32\spool\PRINTERS&lt;/code&gt; and extra service dependencies, which can both cause spooler crashes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check the job and the port when the spooler is running
&lt;/h2&gt;

&lt;p&gt;List the jobs in the queue with their status.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;PrintJob&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;PrinterName&lt;/span&gt; &lt;span class="s2"&gt;"Your Printer Name"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;Id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;DocumentName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;JobStatus&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;SubmittedTime&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace &lt;code&gt;Your Printer Name&lt;/code&gt; with the name shown in Settings &amp;gt; Bluetooth &amp;amp; devices &amp;gt; Printers &amp;amp; scanners. Next, list each printer with the port and driver it uses.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Printer&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;Name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;PortName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;DriverName&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A port name that starts with &lt;code&gt;WSD&lt;/code&gt; means the printer was added through network discovery. Windows reaches a WSD printer through Web Services for Devices and identifies it by its device ID rather than by a fixed address. The WSD port monitor listens for events from the printer and updates the printer status from them (&lt;a href="https://learn.microsoft.com/en-us/windows-hardware/drivers/print/wsdmon-port-monitor" rel="noopener noreferrer"&gt;WSDMON port monitor&lt;/a&gt;). A port named after an IP address is a Standard TCP/IP port, which sends every job to that one address.&lt;/p&gt;

&lt;p&gt;When the printer uses a WSD port, it's likely that the PC loses track of the printer after sleep or after the printer gets a new address from the router.&lt;/p&gt;

&lt;h2&gt;
  
  
  Turn on the print log while you test
&lt;/h2&gt;

&lt;p&gt;The PrintService Operational log records what the spooler does with each job. Microsoft's guidance is to turn it on only while troubleshooting, because it writes many events on a busy print server. Turn it on from an elevated prompt.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;wevtutil&lt;/span&gt; &lt;span class="n"&gt;sl&lt;/span&gt; &lt;span class="nc"&gt;Microsoft&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Windows&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;PrintService&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nc"&gt;Operational&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Send one test print right after the PC wakes from sleep, and one after restarting the spooler. Open Event Viewer and go to &lt;code&gt;Applications and Services Logs &amp;gt; Microsoft &amp;gt; Windows &amp;gt; PrintService &amp;gt; Operational&lt;/code&gt;. Compare the entries for the job that printed with the entries for the job that stayed at Ready. The step where the stuck job stops is where the problem is. Also check the Admin log in the same folder for errors at the same time. Turn the Operational log off when you're done.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;wevtutil&lt;/span&gt; &lt;span class="n"&gt;sl&lt;/span&gt; &lt;span class="nc"&gt;Microsoft&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Windows&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;PrintService&lt;/span&gt;&lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="nc"&gt;Operational&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;&lt;span class="kc"&gt;false&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Move the printer to a TCP/IP port
&lt;/h2&gt;

&lt;p&gt;Reserve an IP address for the printer in the router's DHCP settings first, so the address doesn't change. Print a configuration page from the printer's own menu to read its current address.&lt;/p&gt;

&lt;p&gt;Add the printer again by its address in Settings &amp;gt; Bluetooth &amp;amp; devices &amp;gt; Printers &amp;amp; scanners &amp;gt; Add device &amp;gt; Add manually &amp;gt; Add a printer using an IP address or hostname. Choose TCP/IP Device and enter the reserved address. The same steps in PowerShell create the port and a printer that uses the driver already installed.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Add&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;PrinterPort&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Name&lt;/span&gt; &lt;span class="s2"&gt;"192.168.1.50"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;PrinterHostAddress&lt;/span&gt; &lt;span class="s2"&gt;"192.168.1.50"&lt;/span&gt;
&lt;span class="nc"&gt;Add&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Printer&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Name&lt;/span&gt; &lt;span class="s2"&gt;"Office Printer (IP)"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;DriverName&lt;/span&gt; &lt;span class="s2"&gt;"Driver Name From Get-Printer"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;PortName&lt;/span&gt; &lt;span class="s2"&gt;"192.168.1.50"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Replace the address with the one you reserved, and the driver name with the DriverName value from &lt;code&gt;Get-Printer&lt;/code&gt;. When the wizard shows a port name with &lt;code&gt;_1&lt;/code&gt; on the end, a port with that address already exists on the PC, and the wizard made a second one.&lt;/p&gt;

&lt;p&gt;Adding the printer this way creates a second printer next to the WSD one. Print a test page to the new printer, then remove the WSD printer so nothing keeps sending jobs to it.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Remove&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Printer&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Name&lt;/span&gt; &lt;span class="s2"&gt;"Name Of The WSD Printer"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Set the new printer as the default, put the PC to sleep, wake it, and print again. A job that prints without a spooler restart after a few sleep cycles confirms the port was the cause.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where ET Ducky shows it
&lt;/h2&gt;

&lt;p&gt;I build ET Ducky, and its Windows agent reads the kernel event stream through ETW. It attributes every outbound connection to the process that opened it, so you can see whether &lt;code&gt;spoolsv.exe&lt;/code&gt; connects to the printer's address when a job is sent.&lt;/p&gt;

&lt;p&gt;You'd start a Live Session on the PC right after it wakes and send a test print. The AI picks the ETW providers for each round of the investigation, and only counts-only summaries leave the PC while the raw kernel events stay on it. When several PCs in an office have the same problem, a Multi-Agent Session across a PC that prints and one that doesn't compares the kernel events from both to find the outlier. You can also open a Live Session shell from the browser without the need for a VPN and run the PowerShell commands above on each PC.&lt;/p&gt;

&lt;p&gt;One Windows or Linux server on the Free query tier with your own AI key costs $5 a month. Pricing is at &lt;a href="https://etducky.com/pricing" rel="noopener noreferrer"&gt;https://etducky.com/pricing&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>windows</category>
      <category>printing</category>
      <category>powershell</category>
      <category>sysadmin</category>
    </item>
    <item>
      <title>Finding Why a Linux Service Stopped After an Update</title>
      <dc:creator>Christopher Smith</dc:creator>
      <pubDate>Tue, 24 Nov 2026 14:22:45 +0000</pubDate>
      <link>https://dev.to/et-ducky/finding-why-a-linux-service-stopped-after-an-update-2ji6</link>
      <guid>https://dev.to/et-ducky/finding-why-a-linux-service-stopped-after-an-update-2ji6</guid>
      <description>&lt;p&gt;This post first appeared on the ET Ducky blog. I build ET Ducky, an RMM that reads ETW on Windows and eBPF on Linux.&lt;/p&gt;

&lt;p&gt;A service on an Ubuntu or Debian server shows as inactive the morning after a round of updates, and its own log has no error in it. Restarting it fixes the symptom, but the next update can stop it again. This post covers how to tell a crash from a stop request, how to find what asked systemd to stop the service, and how to check every service after an update so the next one is caught in minutes.&lt;/p&gt;

&lt;h2&gt;
  
  
  Find out whether it crashed or was stopped
&lt;/h2&gt;

&lt;p&gt;I'd start with the unit's status. Replace &lt;code&gt;haproxy.service&lt;/code&gt; with your own unit in every command below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;systemctl status haproxy.service --no-pager
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A unit that shows &lt;code&gt;inactive (dead)&lt;/code&gt; was stopped cleanly. A unit that crashed or failed to start shows &lt;code&gt;failed&lt;/code&gt; with a result such as &lt;code&gt;exit-code&lt;/code&gt; or &lt;code&gt;signal&lt;/code&gt;. When the log lines under the status show "Stopping haproxy.service" and a process that exited with code 143, that process received SIGTERM (128 plus signal 15). systemd sends SIGTERM when something asks it to stop the unit.&lt;/p&gt;

&lt;p&gt;Read the unit's own journal for the day to get the exact second of the stop.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;journalctl -u haproxy.service --since today -o short-iso --no-pager &lt;span class="o"&gt;|&lt;/span&gt; tail -n 20
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A restart that fails leaves a different trail. The journal shows "Stopping", then "Starting", then an error from the service's own start command, such as a configuration test that failed. That points at the service's configuration or at something it depends on being unavailable at that second.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check what apt ran at that minute
&lt;/h2&gt;

&lt;p&gt;Every apt and unattended-upgrades run writes a block to &lt;code&gt;/var/log/apt/history.log&lt;/code&gt; with a Start-Date, the command line, the packages it changed, and an End-Date. Older months are rotated into compressed files, so search them with zgrep.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;zgrep -h -A4 &lt;span class="s2"&gt;"Start-Date: 2026-10-10"&lt;/span&gt; /var/log/apt/history.log*
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When the Commandline line shows &lt;code&gt;/usr/bin/unattended-upgrade&lt;/code&gt;, the automatic updates ran it. Compare its Start-Date and End-Date with the time of the stop. Next, check whether the service's own package was in that run.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;zgrep -h &lt;span class="s2"&gt;" upgrade haproxy"&lt;/span&gt; /var/log/dpkg.log*
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A package upgrade usually restarts its own service from the package scripts. The unattended-upgrades runs also write the full dpkg output, including any service restarts, to &lt;code&gt;/var/log/unattended-upgrades/unattended-upgrades-dpkg.log&lt;/code&gt;. Search that file for the unit name.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo grep -n &lt;span class="s2"&gt;"haproxy"&lt;/span&gt; /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run &lt;code&gt;systemctl list-timers apt-daily-upgrade.timer&lt;/code&gt; to see when the automatic upgrade last ran and when it runs next. The timer runs at a set time with a random delay, so the stop time can move from day to day.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check needrestart on Ubuntu 24.04 and later
&lt;/h2&gt;

&lt;p&gt;A library upgrade can restart a service whose own package didn't change. On Ubuntu 24.04 needrestart restarts the affected services directly after apt finishes, in unattended-upgrades runs too. Ubuntu documented the change in &lt;a href="https://discourse.ubuntu.com/t/needrestart-changes-in-ubuntu-24-04-service-restarts/44671" rel="noopener noreferrer"&gt;needrestart changes in Ubuntu 24.04&lt;/a&gt;. A glibc update, for example, restarts most long-running services in one &lt;code&gt;systemctl restart&lt;/code&gt; call. That call is in &lt;code&gt;unattended-upgrades-dpkg.log&lt;/code&gt; with the full list of units it restarted.&lt;/p&gt;

&lt;p&gt;A service that starts before something it needs at that second, such as name resolution, fails its start and stays down. When a service has to stay out of those restarts, add it to &lt;code&gt;$nrconf{override_rc}&lt;/code&gt; in a file under &lt;code&gt;/etc/needrestart/conf.d/&lt;/code&gt; and restart it yourself in a maintenance window.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;$nrconf&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;override_rc&lt;span class="o"&gt;}&lt;/span&gt;&lt;span class="o"&gt;{&lt;/span&gt;qr&lt;span class="o"&gt;(&lt;/span&gt;^haproxy\.service$&lt;span class="o"&gt;)&lt;/span&gt;&lt;span class="o"&gt;}&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; 0&lt;span class="o"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Read everything logged in the minute before the stop
&lt;/h2&gt;

&lt;p&gt;When apt didn't run at that time, read every unit's journal lines from the minute before the stop. The &lt;code&gt;-o cat&lt;/code&gt; output leaves out the hostname, which is useful if you post it on a forum.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo journalctl --since &lt;span class="s2"&gt;"2026-10-10 10:04:30"&lt;/span&gt; --until &lt;span class="s2"&gt;"2026-10-10 10:05:38"&lt;/span&gt; -o cat
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A stop that someone ran by hand with sudo shows up as a sudo line with the command it ran. Search for it directly.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sudo journalctl -t sudo --since &lt;span class="s2"&gt;"2026-10-10 10:00"&lt;/span&gt; --until &lt;span class="s2"&gt;"2026-10-10 10:10"&lt;/span&gt; -o cat &lt;span class="o"&gt;|&lt;/span&gt; grep systemctl
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check the timers that fired in that minute with &lt;code&gt;systemctl list-timers --all&lt;/code&gt;, and check crontab and &lt;code&gt;/etc/cron.d&lt;/code&gt; for a script that stops services before a backup or a certificate renewal. A configuration management run from Ansible or Puppet also shows up as its own lines in the journal for that minute.&lt;/p&gt;

&lt;h2&gt;
  
  
  Prevent the next one
&lt;/h2&gt;

&lt;p&gt;Adding &lt;code&gt;Restart=on-failure&lt;/code&gt; to the unit doesn't help with this. systemd doesn't restart a service when its death is the result of a stop or restart that systemd performed. The fix depends on what asked for the stop.&lt;/p&gt;

&lt;p&gt;When the stop came from unattended-upgrades, exclude that package with &lt;code&gt;Unattended-Upgrade::Package-Blacklist&lt;/code&gt; in &lt;code&gt;/etc/apt/apt.conf.d/50unattended-upgrades&lt;/code&gt; and upgrade it by hand. When it came from needrestart, use &lt;code&gt;override_rc&lt;/code&gt; as above. When it came from a script or a person, fix the script or the runbook.&lt;/p&gt;

&lt;p&gt;Also check every service after each update. Save the list of running services before the update and compare it after.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;systemctl list-units --type=service --state=running --no-legend &lt;span class="o"&gt;|&lt;/span&gt; awk &lt;span class="s1"&gt;'{print $1}'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; sort &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; /tmp/running-before.txt
sudo apt upgrade
systemctl list-units --type=service --state=running --no-legend &lt;span class="o"&gt;|&lt;/span&gt; awk &lt;span class="s1"&gt;'{print $1}'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; sort &lt;span class="o"&gt;|&lt;/span&gt; comm -23 /tmp/running-before.txt -
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Any unit the last command prints was running before the update and isn't running now. Run &lt;code&gt;systemctl --failed&lt;/code&gt; as well to list units that failed to start.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where ET Ducky shows it
&lt;/h2&gt;

&lt;p&gt;I build ET Ducky, and its Linux agent reads process exec and exit events from eBPF tracepoints. The &lt;code&gt;systemctl&lt;/code&gt;, needrestart, or package script process that ran in the minute before the stop is in that event record, along with the service's own processes exiting.&lt;/p&gt;

&lt;p&gt;For patching, ET Ducky runs apt updates in rollout rings. You'd tag a few servers as your first ring and schedule updates to that tag before the rest. A patch is marked successful only when the kernel event stream shows services back up with no crash loops. If the first ring regresses, the deployment pauses before the next ring. You can also open a Live Session shell from the browser without the need for a VPN and run the journalctl and zgrep commands above on the host.&lt;/p&gt;

&lt;p&gt;One Windows or Linux server on the Free query tier with your own AI key costs $5 a month. Pricing is at &lt;a href="https://etducky.com/pricing" rel="noopener noreferrer"&gt;https://etducky.com/pricing&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>linux</category>
      <category>ubuntu</category>
      <category>debian</category>
      <category>systemd</category>
    </item>
    <item>
      <title>Finding Why SYSVOL on FRS Blocks a New Domain Controller</title>
      <dc:creator>Christopher Smith</dc:creator>
      <pubDate>Tue, 24 Nov 2026 14:10:24 +0000</pubDate>
      <link>https://dev.to/et-ducky/finding-why-sysvol-on-frs-blocks-a-new-domain-controller-hfc</link>
      <guid>https://dev.to/et-ducky/finding-why-sysvol-on-frs-blocks-a-new-domain-controller-hfc</guid>
      <description>&lt;p&gt;This post first appeared on the ET Ducky blog. I build ET Ducky, an RMM that reads ETW on Windows and eBPF on Linux.&lt;/p&gt;

&lt;p&gt;A new Windows Server 2019 or later server can't be promoted to a domain controller in a domain that still replicates SYSVOL with the File Replication Service (FRS). Promotion stops at the prerequisite check with "The specified domain contoso.com is still using the File Replication Service (FRS) to replicate the SYSVOL share." The message also says "You MUST migrate the specified domain to use DFS Replication using the DFSRMIG command before continuing." This post covers how to confirm which service replicates SYSVOL, check replication health, move the domain through the dfsrmig states, and clear the two blockers Microsoft documents for the migration.&lt;/p&gt;

&lt;p&gt;A recent &lt;a href="https://www.reddit.com/r/sysadmin/comments/1xv8j5z/" rel="noopener noreferrer"&gt;r/sysadmin thread&lt;/a&gt; describes a plan to replace Windows Server 2016 domain controllers with new Windows Server 2022 VMs. Microsoft's documentation says a domain at a functional level older than Windows Server 2008 uses FRS for SYSVOL. A domain that started at that level keeps FRS until someone runs the migration.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check which service replicates SYSVOL
&lt;/h2&gt;

&lt;p&gt;Find the PDC emulator and the domain functional level from an elevated PowerShell window on any domain controller.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ADDomain&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;PDCEmulator&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;DomainMode&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The migration needs a DomainMode of Windows2008Domain or higher. Microsoft says to run &lt;code&gt;dfsrmig /getglobalstate&lt;/code&gt; only on the PDC emulator.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dfsrmig /getglobalstate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A domain that never started the migration returns "DFSR migration has not yet initialized". A domain that finished it returns "Current DFSR global state: 'Eliminated'". A "Prepared" or "Redirected" state means a migration is in progress or was left partway.&lt;/p&gt;

&lt;p&gt;Check the share on each domain controller as well.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;net share SYSVOL
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The "Path" line reads &lt;code&gt;C:\Windows\SYSVOL\sysvol&lt;/code&gt; while FRS serves the share. It reads &lt;code&gt;C:\Windows\SYSVOL_DFSR\sysvol&lt;/code&gt; once DFS Replication serves it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check replication before you change anything
&lt;/h2&gt;

&lt;p&gt;Microsoft's migration guide asks for a healthy SYSVOL, a backup of the SYSVOL folder, and the DFS Replication service running with a "Start Type" of "Automatic" on the PDC emulator. I'd check Active Directory replication on every domain controller first.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="n"&gt;repadmin&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;replsummary&lt;/span&gt;
&lt;span class="n"&gt;dcdiag&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt;&lt;span class="n"&gt;q&lt;/span&gt;
&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Service&lt;/span&gt; &lt;span class="no"&gt;DFSR&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;Status&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;StartType&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Fix every failure repadmin or dcdiag reports before you set the first state. Back up the SYSVOL folder on the PDC emulator.&lt;/p&gt;

&lt;h2&gt;
  
  
  Move the domain through the states
&lt;/h2&gt;

&lt;p&gt;The dfsrmig tool has four global states. They are Start (0), Prepared (1), Redirected (2), and Eliminated (3). In Prepared, DFS Replication replicates a copy of the SYSVOL folder while FRS keeps replicating the original. In Redirected, the DFS Replication copy serves SYSVOL requests. In Eliminated, Windows deletes the original SYSVOL folder and FRS stops replicating SYSVOL. Microsoft documents that the migration can be rolled back any time before Eliminated. Eliminated can't be rolled back.&lt;/p&gt;

&lt;p&gt;Set each state on the PDC emulator and wait for every domain controller to reach it before you set the next one.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dfsrmig /setglobalstate 1
dfsrmig /getmigrationstate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run &lt;code&gt;dfsrmig /getmigrationstate&lt;/code&gt; until it returns "Migration has reached a consistent state on all Domain Controllers." Any domain controller listed under "The following Domain Controllers are not in sync with Global state" hasn't reached the state yet. Microsoft says the wait depends on Active Directory replication latency and the amount of data in SYSVOL.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dfsrmig /setglobalstate 2
dfsrmig /getmigrationstate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Once every domain controller reports Redirected, run &lt;code&gt;gpupdate /force&lt;/code&gt; on a client in each site and confirm Group Policy applies without errors. Set Eliminated only after Group Policy applies without errors in every site.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;dfsrmig /setglobalstate 3
dfsrmig /getmigrationstate
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;After every domain controller reports Eliminated, run &lt;code&gt;net share&lt;/code&gt; on each one and confirm the SYSVOL path is under &lt;code&gt;C:\Windows\SYSVOL_DFSR&lt;/code&gt;. Stop and disable FRS on each domain controller unless FRS replicates something other than SYSVOL.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;sc.exe \\&amp;lt;servername&amp;gt; stop ntfrs
sc.exe \\&amp;lt;servername&amp;gt; config ntfrs start= disabled
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  When a domain controller never reaches the new state
&lt;/h2&gt;

&lt;p&gt;Read the DFS Replication log on each domain controller that hasn't reached the state.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FilterHashtable&lt;/span&gt; @&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nc"&gt;LogName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'DFS Replication'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="nc"&gt;Id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;8013&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;8028&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MaxEvents&lt;/span&gt; &lt;span class="mi"&gt;20&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;TimeCreated&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Message&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Event 8028 says "DFSR Migration was unable to transition to the 'PREPARED' state" for that domain controller. Event 8013 says DFSR "was unable to copy the contents of the SYSVOL share" to the SYSVOL_DFSR folder. Both events include an error code.&lt;/p&gt;

&lt;p&gt;When both events show error 367 ("The process creation has been blocked."), the domain controller matches a case &lt;a href="https://learn.microsoft.com/en-us/troubleshoot/windows-server/networking/sysvol-dfsr-migration-fails-after-in-place-upgrade" rel="noopener noreferrer"&gt;Microsoft documents&lt;/a&gt; for domain controllers upgraded in place to Windows Server 2019 while the domain used FRS. Those domain controllers stay in the Start state and stop sharing SYSVOL and NETLOGON. Microsoft's workaround is to set the global state back to 0 and confirm SYSVOL is shared again on those domain controllers. It then has you demote the upgraded domain controllers to member servers, finish the migration on the remaining older domain controllers, and promote the upgraded servers again. The article gives a separate procedure for domain controllers that already reached Eliminated.&lt;/p&gt;

&lt;p&gt;A domain that uses Microsoft Entra Kerberos for passwordless sign-in has a computer object named AzureADKerberos in the Domain Controllers OU. The output of &lt;code&gt;dfsrmig /getmigrationstate&lt;/code&gt; then includes "AzureADKerberos ('Start') - Writable DC". The migration never reaches Eliminated because the object doesn't replicate SYSVOL. Microsoft's storage team &lt;a href="https://techcommunity.microsoft.com/t5/storage-at-microsoft/completing-a-dfsr-sysvol-migration-of-a-domain-using-entra-id/ba-p/4138977" rel="noopener noreferrer"&gt;documents the fix&lt;/a&gt;. Open ADSI Edit on a domain controller, create an object of class msDFSR-LocalSettings named DFSR-LocalSettings under the AzureADKerberos object, and set its msDFSR-Flags attribute to 48. Wait for Active Directory replication and run &lt;code&gt;dfsrmig /getmigrationstate&lt;/code&gt; again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Retry the promotion
&lt;/h2&gt;

&lt;p&gt;Promote the new server again once every domain controller reports Eliminated. Run &lt;code&gt;dcdiag /q&lt;/code&gt; on the new domain controller after the reboot, and run &lt;code&gt;net share&lt;/code&gt; to confirm it shares SYSVOL and NETLOGON.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where ET Ducky shows it
&lt;/h2&gt;

&lt;p&gt;I build ET Ducky. You can open a Live Session shell to each domain controller from the browser without the need for a VPN and run &lt;code&gt;dfsrmig /getmigrationstate&lt;/code&gt;, &lt;code&gt;net share&lt;/code&gt;, and the Get-WinEvent query there. Its Windows agent reads process creation and file events from the kernel through ETW. File activity in the SYSVOL and SYSVOL_DFSR folders shows up in the ETW event stream with the process that made it.&lt;/p&gt;

&lt;p&gt;You'd start a Multi-Agent Session across a domain controller that reached the new state and one that didn't. It compares the kernel events from both to find the outlier. The raw events stay on the hosts.&lt;/p&gt;

&lt;p&gt;One Windows or Linux server costs $5 a month with no query subscription. Pricing is at &lt;a href="https://etducky.com/pricing" rel="noopener noreferrer"&gt;https://etducky.com/pricing&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>windows</category>
      <category>activedirectory</category>
      <category>powershell</category>
      <category>sysadmin</category>
    </item>
    <item>
      <title>Event ID 3076 App Control Audit Block and How to Allow the File</title>
      <dc:creator>Christopher Smith</dc:creator>
      <pubDate>Tue, 24 Nov 2026 14:05:10 +0000</pubDate>
      <link>https://dev.to/et-ducky/event-id-3076-app-control-audit-block-and-how-to-allow-the-file-2ag1</link>
      <guid>https://dev.to/et-ducky/event-id-3076-app-control-audit-block-and-how-to-allow-the-file-2ag1</guid>
      <description>&lt;p&gt;This post first appeared on the ET Ducky blog. I build ET Ducky, an RMM that reads ETW on Windows and eBPF on Linux.&lt;/p&gt;

&lt;p&gt;Event ID 3076 is written to the Code Integrity operational log when an App Control for Business policy in audit mode finds a file it would have blocked. Microsoft's event reference describes it as "the main App Control block event for audit mode policies. It indicates that the file would have been blocked if the policy was enforced." In Event Viewer the log is under "Applications and Services Logs" &amp;gt; "Microsoft" &amp;gt; "Windows" &amp;gt; "CodeIntegrity" &amp;gt; "Operational". Scripts and MSI installers are logged under "AppLocker" &amp;gt; "MSI and Script" as event 8028 instead.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it means
&lt;/h2&gt;

&lt;p&gt;The file still ran, because the policy is in audit mode. Once audit mode is removed from the policy, the same file is blocked and the log shows event 3077. A separate 3076 event is written for each active policy that would block the file.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to find the cause
&lt;/h2&gt;

&lt;p&gt;List the latest audit block events with the time and message of each.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FilterHashtable&lt;/span&gt; @&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;LogName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'Microsoft-Windows-CodeIntegrity/Operational'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nc"&gt;Id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;3076&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MaxEvents&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;TimeCreated&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Message&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Read these fields in each event's details.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;"File Name" is the path of the file the policy would have blocked.&lt;/li&gt;
&lt;li&gt;"Process Name" is the parent process that tried to run it.&lt;/li&gt;
&lt;li&gt;"Requested Signing Level" and "Validated Signing Level" show the level the file needed and the level Windows gave it.&lt;/li&gt;
&lt;li&gt;"PolicyName" and "PolicyId" identify the policy that would have blocked it.&lt;/li&gt;
&lt;li&gt;"OriginalFileName" is the name from the file's resource header, which file rules at the FileName level use.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Find the signature details in event 3089. Windows writes one 3089 event for each signature on the file, and an unsigned file gets a single 3089 with "TotalSignatureCount" of 0. Match a 3089 to its 3076 by the "Correlation ActivityID" in the "System" section of both events. The "VerificationError" field gives the reason a signature failed the policy.&lt;/p&gt;

&lt;p&gt;List the policies active on the machine on Windows 11 22H2 and later or Windows Server 2025.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;citool.exe -lp -json
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look up a status code from an event with &lt;code&gt;certutil.exe -error &amp;lt;status&amp;gt;&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fixes
&lt;/h2&gt;

&lt;p&gt;Build rules from the audit events on a machine where the files still exist. This example uses the FilePublisher level with a hash fallback and writes warnings to a text file.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;New&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;CIPolicy&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FilePath&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;\&lt;span class="nc"&gt;EventsPolicy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;xml&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Audit&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Level&lt;/span&gt; &lt;span class="nc"&gt;FilePublisher&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Fallback&lt;/span&gt; &lt;span class="nc"&gt;SignedVersion&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;FilePublisher&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Hash&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;UserPEs&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MultiplePolicyFormat&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;\&lt;span class="nc"&gt;EventsPolicyWarnings&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;txt&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Review &lt;code&gt;EventsPolicy.xml&lt;/code&gt; and remove any rule for a file you don't want to allow. &lt;code&gt;EventsPolicyWarnings.txt&lt;/code&gt; lists each file that couldn't get a rule at the level or fallback you chose. &lt;code&gt;New-CIPolicy&lt;/code&gt; only creates rules for files still on disk, so add rules by hand for a file that's gone.&lt;/p&gt;

&lt;p&gt;Merge the new rules into your base policy, or deploy them as a supplemental policy.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Merge&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;CIPolicy&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;PolicyPaths&lt;/span&gt; &lt;span class="s1"&gt;'.\BasePolicy.xml'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="s1"&gt;'.\EventsPolicy.xml'&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;OutputFilePath&lt;/span&gt; &lt;span class="s1"&gt;'.\MergedPolicy.xml'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Convert the merged policy to a binary named after its &lt;code&gt;PolicyId&lt;/code&gt;, copy it to &lt;code&gt;C:\Windows\System32\CodeIntegrity\CIPolicies\Active\&lt;/code&gt;, and activate it. Use &lt;code&gt;CiTool --update-policy&lt;/code&gt; on Windows 11 22H2 and later and Windows Server 2025. Use the App Control policy refresh tool (&lt;code&gt;RefreshPolicy.exe&lt;/code&gt;) on Windows 10 version 1903 and later and Windows Server 2022.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;ConvertFrom&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;CIPolicy&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;\&lt;span class="nc"&gt;MergedPolicy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;xml&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;\&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nc"&gt;PolicyId&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;cip&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remove audit mode once the 3076 events show no file you still need to allow, then convert and deploy the policy again.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Set&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;RuleOption&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FilePath&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;\&lt;span class="nc"&gt;MergedPolicy&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="kt"&gt;xml&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Option&lt;/span&gt; &lt;span class="mi"&gt;3&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Delete&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For the first ring of an enforced policy, Microsoft recommends adding option 9, which lets a user turn off enforcement for one boot from a pre-boot menu, and option 10, which switches the policy to audit if a boot critical driver is blocked.&lt;/p&gt;

&lt;h2&gt;
  
  
  Related events
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Event ID 3077, the block event for an enforced policy.&lt;/li&gt;
&lt;li&gt;Event ID 3089, the signature details for a blocked or audit blocked file.&lt;/li&gt;
&lt;li&gt;Event ID 3033, which often means a revoked signature or an expired signature with the Lifetime Signing EKU, and 3034, its audit mode equivalent.&lt;/li&gt;
&lt;li&gt;Event IDs 8028 and 8029, the audit and enforced events for scripts and MSI files.&lt;/li&gt;
&lt;li&gt;Event ID 3099, written when a policy is loaded.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where ET Ducky shows it
&lt;/h2&gt;

&lt;p&gt;I build ET Ducky. It keeps a per-organization list of approved applications and lists the software detected across your fleet that isn't on it, with a count of how many agents have each app. The approved-app-hash-mismatch rule runs cloud-side, is off by default until your organization enables it, and flags an approved application whose main binary hash differs from your organization's reference hash.&lt;/p&gt;

&lt;p&gt;The Approved Applications docs are at &lt;a href="https://etducky.com/documentation/approved-applications" rel="noopener noreferrer"&gt;https://etducky.com/documentation/approved-applications&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://learn.microsoft.com/en-us/windows/security/application-security/application-control/app-control-for-business/operations/event-id-explanations" rel="noopener noreferrer"&gt;Microsoft Learn, Understanding App Control events&lt;/a&gt;, read 2026-11-18.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://learn.microsoft.com/en-us/windows/security/application-security/application-control/app-control-for-business/operations/appcontrol-debugging-and-troubleshooting" rel="noopener noreferrer"&gt;Microsoft Learn, App Control debugging and troubleshooting&lt;/a&gt;, read 2026-11-18.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://learn.microsoft.com/en-gb/windows/security/application-security/application-control/app-control-for-business/deployment/audit-appcontrol-policies" rel="noopener noreferrer"&gt;Microsoft Learn, Use audit events to create App Control policy rules&lt;/a&gt;, read 2026-11-18.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://learn.microsoft.com/en-us/powershell/module/configci/merge-cipolicy" rel="noopener noreferrer"&gt;Microsoft Learn, Merge-CIPolicy&lt;/a&gt;, read 2026-11-18.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://learn.microsoft.com/en-gb/windows/security/application-security/application-control/app-control-for-business/deployment/deploy-appcontrol-policies-with-script" rel="noopener noreferrer"&gt;Microsoft Learn, Deploy App Control policies using script&lt;/a&gt;, read 2026-11-18.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://learn.microsoft.com/en-us/windows/security/application-security/application-control/app-control-for-business/deployment/enforce-appcontrol-policies" rel="noopener noreferrer"&gt;Microsoft Learn, Enforce App Control for Business policies&lt;/a&gt;, read 2026-11-18.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.diagnostics/get-winevent" rel="noopener noreferrer"&gt;Microsoft Learn, Get-WinEvent&lt;/a&gt;, read 2026-11-18.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>windows</category>
      <category>security</category>
      <category>powershell</category>
      <category>sysadmin</category>
    </item>
    <item>
      <title>Event ID 3065 and 3066 CodeIntegrity Audit Before Turning On LSA Protection</title>
      <dc:creator>Christopher Smith</dc:creator>
      <pubDate>Tue, 24 Nov 2026 13:55:17 +0000</pubDate>
      <link>https://dev.to/et-ducky/event-id-3065-and-3066-codeintegrity-audit-before-turning-on-lsa-protection-58d0</link>
      <guid>https://dev.to/et-ducky/event-id-3065-and-3066-codeintegrity-audit-before-turning-on-lsa-protection-58d0</guid>
      <description>&lt;p&gt;This post first appeared on the ET Ducky blog. I build ET Ducky, an RMM that reads ETW on Windows and eBPF on Linux.&lt;/p&gt;

&lt;p&gt;Event IDs 3065 and 3066 are written to the Code Integrity operational log when LSASS.exe loads a module that would fail to load with added LSA protection turned on. In Event Viewer the log is under "Applications and Services Logs" &amp;gt; "Microsoft" &amp;gt; "Windows" &amp;gt; "CodeIntegrity" &amp;gt; "Operational". Microsoft describes the two events this way.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;3065: "Event 3065 occurs when a code integrity check determines that a process, usually LSASS.exe, attempts to load a driver that doesn't meet the security requirements for shared sections. However, due to the system policy currently set, the image is allowed to load."&lt;/li&gt;
&lt;li&gt;3066: "Event 3066 occurs when a code integrity check determines that a process, usually LSASS.exe, attempts to load a driver that doesn't meet the Microsoft signing level requirements. However, due to the system policy currently set, the image is allowed to load."&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What it means
&lt;/h2&gt;

&lt;p&gt;LSASS is running in audit mode, so the module still loaded. Once LSA protection (&lt;code&gt;RunAsPPL&lt;/code&gt;) is turned on, LSASS runs as a protected process and refuses that module. Protected mode requires every plug-in loaded into LSA to be signed with a Microsoft signature. Event 3066 means the module doesn't meet that signing level. Event 3065 means the module contains shared sections, and a module with shared sections logs 3066 together with 3065.&lt;/p&gt;

&lt;h2&gt;
  
  
  How to find the cause
&lt;/h2&gt;

&lt;p&gt;Turn on audit mode on each server or domain controller before you turn on LSA protection. Create the DWORD value &lt;code&gt;AuditLevel&lt;/code&gt; with the value &lt;code&gt;8&lt;/code&gt; under &lt;code&gt;HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\LSASS.exe&lt;/code&gt;, then restart. Microsoft documents audit mode as on by default on Windows 11 version 22H2 and later.&lt;/p&gt;

&lt;p&gt;Confirm the name of the Code Integrity log on the machine.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ListLog&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="nc"&gt;CodeIntegrity&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;LogName&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;List the audit events with the time, ID, and message of each.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FilterHashtable&lt;/span&gt; @&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;LogName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'Microsoft-Windows-CodeIntegrity/Operational'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nc"&gt;Id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;3065&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;3066&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;TimeCreated&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Message&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Collect the same events from every server you plan to protect. &lt;code&gt;-ComputerName&lt;/code&gt; takes one computer name per call, so loop over a text file with one server name per line.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="k"&gt;foreach&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nv"&gt;$s&lt;/span&gt; &lt;span class="k"&gt;in&lt;/span&gt; &lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Content&lt;/span&gt; &lt;span class="p"&gt;.&lt;/span&gt;\&lt;span class="n"&gt;servers&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;txt&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ComputerName&lt;/span&gt; &lt;span class="nv"&gt;$s&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FilterHashtable&lt;/span&gt; @&lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;LogName&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'Microsoft-Windows-CodeIntegrity/Operational'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="nc"&gt;Id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="mi"&gt;3065&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="mi"&gt;3066&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; @&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s1"&gt;'Server'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="nv"&gt;$s&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;TimeCreated&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Message&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check the signature of each file the messages name.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;AuthenticodeSignature&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;FilePath&lt;/span&gt; &lt;span class="s1"&gt;'C:\Path\To\module.dll'&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Format&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;List&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Microsoft's recommended practice is to identify every LSA plug-in and driver before broad deployment, including smart card, cryptographic, and password filter software, and to test that each one loads and works. Audit events aren't written while Smart App Control is on or while a kernel debugger is attached and enabled.&lt;/p&gt;

&lt;h2&gt;
  
  
  Fixes
&lt;/h2&gt;

&lt;p&gt;Update each module that logged 3066 to a version its vendor has signed with a Microsoft signature. LSA plug-ins that are drivers, such as smart card drivers, need Windows Hardware Quality Labs (WHQL) certification. Other plug-ins are signed through the file signing service for LSA.&lt;/p&gt;

&lt;p&gt;Get a version without shared sections for each module that logged 3065. Removing the shared sections stops both events unless the module also fails the signing level check.&lt;/p&gt;

&lt;p&gt;Turn on LSA protection once no new 3065 or 3066 events appear. Set the DWORD &lt;code&gt;RunAsPPL&lt;/code&gt; under &lt;code&gt;HKLM\SYSTEM\CurrentControlSet\Control\Lsa&lt;/code&gt; to &lt;code&gt;1&lt;/code&gt; to store the setting in a UEFI variable, or to &lt;code&gt;2&lt;/code&gt; to enable it without the UEFI variable. The value &lt;code&gt;2&lt;/code&gt; is only enforced on Windows 11 22H2 and later. On Windows 11 22H2 and later you can use the Group Policy setting "Configures LSASS to run as a protected process" under "Computer Configuration" &amp;gt; "Administrative Templates" &amp;gt; "System" &amp;gt; "Local Security Authority" instead.&lt;/p&gt;

&lt;p&gt;After the restart, check the System log for WinInit event 12, which reads "LSASS.exe was started as a protected process with level: 4".&lt;/p&gt;

&lt;p&gt;Plan the rollback before you set &lt;code&gt;1&lt;/code&gt;. With the UEFI lock, setting &lt;code&gt;RunAsPPL&lt;/code&gt; back to &lt;code&gt;0&lt;/code&gt; has no effect. Remove the UEFI variable with Microsoft's Local Security Authority (LSA) Protected Process Opt-out tool. The tool is an EFI application (&lt;code&gt;LsaPplConfig.efi&lt;/code&gt;), so plan console access for each server. When the Group Policy setting was used, set it to "Disabled". "Not Configured" leaves the earlier setting in force.&lt;/p&gt;

&lt;h2&gt;
  
  
  Related events
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Event ID 3066's enforced counterpart is 3033, written when LSASS fails to load a module that doesn't meet the Microsoft signing level.&lt;/li&gt;
&lt;li&gt;Event ID 3065's enforced counterpart is 3063, written when LSASS fails to load a module with shared sections.&lt;/li&gt;
&lt;li&gt;WinInit event 12 in the System log confirms LSASS started as a protected process.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where ET Ducky shows it
&lt;/h2&gt;

&lt;p&gt;I build ET Ducky. A Live Session on a managed Windows server runs an AI-driven investigation where the AI picks the ETW providers to capture in each round, and only counts-only summaries leave the host. Beyond the fifteen built-in behavioral rules, you can create custom rules using a rule builder to monitor for events that are unique in your environment.&lt;/p&gt;

&lt;p&gt;The Live Sessions docs are at &lt;a href="https://etducky.com/documentation/live-sessions" rel="noopener noreferrer"&gt;https://etducky.com/documentation/live-sessions&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Sources
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;a href="https://learn.microsoft.com/en-us/windows-server/security/credentials-protection-and-management/configuring-additional-lsa-protection" rel="noopener noreferrer"&gt;Microsoft Learn, Configure added LSA protection&lt;/a&gt;, read 2026-11-18.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://learn.microsoft.com/en-us/windows-hardware/drivers/install/code-integrity-event-log-messages" rel="noopener noreferrer"&gt;Microsoft Learn, Code Integrity Event Log Messages&lt;/a&gt;, read 2026-11-18.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.diagnostics/get-winevent" rel="noopener noreferrer"&gt;Microsoft Learn, Get-WinEvent&lt;/a&gt;, read 2026-11-18.&lt;/li&gt;
&lt;li&gt;
&lt;a href="https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.security/get-authenticodesignature" rel="noopener noreferrer"&gt;Microsoft Learn, Get-AuthenticodeSignature&lt;/a&gt;, read 2026-11-18.&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>windows</category>
      <category>security</category>
      <category>powershell</category>
      <category>sysadmin</category>
    </item>
    <item>
      <title>Finding Why BitLocker Protection Stays Suspended on Windows</title>
      <dc:creator>Christopher Smith</dc:creator>
      <pubDate>Sat, 21 Nov 2026 16:01:37 +0000</pubDate>
      <link>https://dev.to/et-ducky/finding-why-bitlocker-protection-stays-suspended-on-windows-451f</link>
      <guid>https://dev.to/et-ducky/finding-why-bitlocker-protection-stays-suspended-on-windows-451f</guid>
      <description>&lt;p&gt;This post first appeared on the ET Ducky blog. I build ET Ducky, an RMM that reads ETW on Windows and eBPF on Linux.&lt;/p&gt;

&lt;p&gt;A BitLocker drive can stay fully encrypted while its protection is off. BitLocker is suspended before TPM firmware, UEFI, and Secure Boot changes so the PC can restart without a recovery prompt. Suspension keeps the data encrypted but protects the volume master key with a clear key stored unencrypted on the disk. Protection is meant to come back after a set number of restarts or a manual resume. This post covers how to find suspended drives, the three documented reasons protection stays off, and how to resume it.&lt;/p&gt;

&lt;p&gt;A recent &lt;a href="https://www.reddit.com/r/sysadmin/comments/1xxpge3/" rel="noopener noreferrer"&gt;r/sysadmin thread&lt;/a&gt; describes PCs that stayed suspended after a suspend, with &lt;code&gt;Resume-BitLocker&lt;/code&gt; failing with error 0x8031005F. The checks below start with that case and cover the other two causes Microsoft documents.&lt;/p&gt;

&lt;h2&gt;
  
  
  Find drives with protection off
&lt;/h2&gt;

&lt;p&gt;Check the operating system drive from an elevated PowerShell window.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;BitLockerVolume&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MountPoint&lt;/span&gt; &lt;span class="no"&gt;C&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;MountPoint&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;VolumeStatus&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;ProtectionStatus&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;KeyProtector&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A suspended drive has a VolumeStatus of FullyEncrypted and a ProtectionStatus of Off. The KeyProtector column holds the protectors the drive has now, for example Tpm and RecoveryPassword.&lt;/p&gt;

&lt;p&gt;The number of restarts left before protection resumes can be read from the Win32_EncryptableVolume class.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;CimInstance&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Namespace&lt;/span&gt; &lt;span class="s2"&gt;"ROOT/CIMV2/Security/MicrosoftVolumeEncryption"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ClassName&lt;/span&gt; &lt;span class="nc"&gt;Win32_EncryptableVolume&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="k"&gt;Filter&lt;/span&gt; &lt;span class="s2"&gt;"DriveLetter='C:'"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Invoke&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;CimMethod&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MethodName&lt;/span&gt; &lt;span class="nc"&gt;GetSuspendCount&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;Suspend-BitLocker&lt;/code&gt; takes a &lt;code&gt;-RebootCount&lt;/code&gt; from 0 to 15 and uses 1 when none is given. A count of 0 suspends protection until someone runs &lt;code&gt;Resume-BitLocker&lt;/code&gt;. A script or vendor update tool that suspends with a count of 0 and never resumes leaves the drive suspended.&lt;/p&gt;

&lt;h2&gt;
  
  
  Read the BitLocker event logs
&lt;/h2&gt;

&lt;p&gt;Microsoft's &lt;a href="https://learn.microsoft.com/troubleshoot/windows-client/windows-security/bitlocker-issues-troubleshooting" rel="noopener noreferrer"&gt;BitLocker troubleshooting guide&lt;/a&gt; points to the logs under "Applications and Services Logs", "Microsoft", "Windows", "BitLocker-API" in Event Viewer. The exact log names on a PC can be found with &lt;code&gt;Get-WinEvent&lt;/code&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;ListLog&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt;&lt;span class="nc"&gt;BitLocker&lt;/span&gt;&lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;LogName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;RecordCount&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Pull the newest events from the management log around the time of the last suspend or restart.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Get&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;WinEvent&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;LogName&lt;/span&gt; &lt;span class="s2"&gt;"Microsoft-Windows-BitLocker/BitLocker Management"&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MaxEvents&lt;/span&gt; &lt;span class="mi"&gt;50&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; &lt;span class="nc"&gt;Select&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Object&lt;/span&gt; &lt;span class="nc"&gt;TimeCreated&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Id&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;LevelDisplayName&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;&lt;span class="nc"&gt;Message&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look for warnings and errors near the restart that should have resumed protection. The same guide also says to check the System log for events from the TPM and TPM-WMI sources.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cause one: Group Policy requires a recovery key
&lt;/h2&gt;

&lt;p&gt;Error 0x8031005F is FVE_E_POLICY_RECOVERY_KEY_REQUIRED, "Group Policy settings require the creation of a recovery key." A recovery key here is the 256-bit key saved as a file, which is a different protector from the 48-digit recovery password. When policy requires the key file and the drive only has Tpm and RecoveryPassword protectors, &lt;code&gt;Resume-BitLocker&lt;/code&gt; fails with this error and protection stays off.&lt;/p&gt;

&lt;p&gt;Find the GPO that sets the requirement on an affected PC.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;gpresult /h C:\Temp\gp.html
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Open the report and search for "Choose how BitLocker-protected operating system drives can be recovered". The setting lives under Computer Configuration, Administrative Templates, Windows Components, BitLocker Drive Encryption, Operating System Drives. The report shows which GPO set it and how the 256-bit recovery key option is configured.&lt;/p&gt;

&lt;p&gt;I'd change that option from required to allowed when nobody manages key files for these PCs. Run &lt;code&gt;gpupdate /force&lt;/code&gt; on the PC and resume protection.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Resume&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;BitLocker&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MountPoint&lt;/span&gt; &lt;span class="no"&gt;C&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If the requirement has to stay, add the key file protector first and resume after it. Write the key to a folder off the encrypted drive, such as a removable drive or a secured share.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight powershell"&gt;&lt;code&gt;&lt;span class="nc"&gt;Add&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;BitLockerKeyProtector&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;MountPoint&lt;/span&gt; &lt;span class="no"&gt;C&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;RecoveryKeyPath&lt;/span&gt; &lt;span class="s2"&gt;"E:\Recovery\" -RecoveryKeyProtector
Resume-BitLocker -MountPoint C:
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The related error 0x8031005E, FVE_E_POLICY_RECOVERY_KEY_NOT_ALLOWED, is the reverse case. It means policy forbids the key file that a script tried to add.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cause two: the recovery key backup failed
&lt;/h2&gt;

&lt;p&gt;Microsoft's &lt;a href="https://learn.microsoft.com/windows/security/operating-system-security/data-protection/bitlocker/faq" rel="noopener noreferrer"&gt;BitLocker FAQ&lt;/a&gt; covers devices joined to Microsoft Entra ID. When BitLocker is suspended automatically or without &lt;code&gt;-RebootCount&lt;/code&gt;, Windows tries to resume protection at the next restart. If a policy requires the recovery key to be backed up, Windows waits up to 60 seconds for a network connection. Protection won't resume when the backup can't be made.&lt;/p&gt;

&lt;p&gt;Connect the PC to the network, confirm it can reach Entra ID, and resume protection by hand. The FAQ also says an event recording the success or failure of the backup is written on the client, so the management log above should hold the failed attempt.&lt;/p&gt;

&lt;h2&gt;
  
  
  Cause three: setup never finished
&lt;/h2&gt;

&lt;p&gt;Microsoft's &lt;a href="https://learn.microsoft.com/en-us/windows/security/operating-system-security/data-protection/bitlocker/operations-guide" rel="noopener noreferrer"&gt;operations guide&lt;/a&gt; says resuming protection only works on devices that have accepted the Windows license terms. A &lt;a href="https://techcommunity.microsoft.com/blog/coreinfrastructureandsecurityblog/bitlocker-is-not-resuming-after-reboot-count-has-been-reached/3794509" rel="noopener noreferrer"&gt;Microsoft Core Infrastructure and Security post&lt;/a&gt; describes the case in a Configuration Manager task sequence. BitLocker is suspended with a reboot count of 1 before a driver or BIOS update. The PC then restarts before the out-of-box experience is complete. Protection stays off after that restart even though the count was reached.&lt;/p&gt;

&lt;p&gt;Resume protection manually at the end of the task sequence or after the first sign-in.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;manage-bde -resume C:
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Confirm protection is back
&lt;/h2&gt;

&lt;p&gt;Run the first check again. ProtectionStatus should read On. The KeyProtector column should list every protector your policy requires. Restart the PC once and check again.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where ET Ducky shows it
&lt;/h2&gt;

&lt;p&gt;I build ET Ducky. You can open a Live Session shell to each affected PC from the browser without the need for a VPN and run the &lt;code&gt;Get-BitLockerVolume&lt;/code&gt;, &lt;code&gt;gpresult&lt;/code&gt;, and &lt;code&gt;Get-WinEvent&lt;/code&gt; checks there.&lt;/p&gt;

&lt;p&gt;When some PCs resume and others don't, you'd start a Multi-Agent Session across one PC that resumed and one that stayed suspended. It compares the kernel events from both to find the outlier. The raw events stay on the hosts.&lt;/p&gt;

&lt;p&gt;One Windows or Linux server costs $5 a month with no query subscription. Pricing is at &lt;a href="https://etducky.com/pricing" rel="noopener noreferrer"&gt;https://etducky.com/pricing&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>windows</category>
      <category>bitlocker</category>
      <category>powershell</category>
      <category>sysadmin</category>
    </item>
  </channel>
</rss>
