Buildbot: Windows on Arm workers reboot randomly due to auto-updates #96

Closed
opened 2024-07-26 12:05:50 +02:00 by Bart van der Braak · 1 comment
- LazyDodo: "either way bartvdbraak when you get back, check out `nssm`, it can make *anything* a service on windows!" - https://builder.blender.org/admin/#/builders/136/builds/6249
Bart van der Braak added this to the DevOps Progress Board project 2024-07-26 12:16:18 +02:00
Author
Owner

For the following workers:

  • tlab-wpm-windows-arm64-01
  • tlab-wpm-windows-arm64-02

Manually, you can do:

  • Open the Group Policy Editor (gpedit.msc).
  • Go to
    • Administrative Templates > Windows Components > Windows Update > Legacy Policies > No auto-restart with logged on users for scheduled automatic updates installations
    • Administrative Templates > Windows Components > Windows Update > Manage end user experience > Configure Automatic Updates
  • Double-click on “No auto-restart with logged on users for scheduled automatic updates installations”.
  • Select Enabled, and then select OK.

Or we can use commands, open an elevated CMD prompt:

reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 1 /f
reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 3 /f

# 0 Let the local administrator to choose the settings
# 1 Means never check
# 2 Check but don't download neither install
# 3 Check, download but don't install
# 4 Download and install automatically

This should be embedded in a Salt state

For the following workers: - `tlab-wpm-windows-arm64-01` - `tlab-wpm-windows-arm64-02` Manually, you can do: * Open the Group Policy Editor (gpedit.msc). * Go to * Administrative Templates > Windows Components > Windows Update > Legacy Policies > No auto-restart with logged on users for scheduled automatic updates installations * Administrative Templates > Windows Components > Windows Update > Manage end user experience > Configure Automatic Updates * Double-click on “No auto-restart with logged on users for scheduled automatic updates installations”. * Select Enabled, and then select OK. Or we can use commands, open an elevated CMD prompt: ```cmd reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v NoAutoRebootWithLoggedOnUsers /t REG_DWORD /d 1 /f reg add "HKLM\Software\Policies\Microsoft\Windows\WindowsUpdate\AU" /v AUOptions /t REG_DWORD /d 3 /f # 0 Let the local administrator to choose the settings # 1 Means never check # 2 Check but don't download neither install # 3 Check, download but don't install # 4 Download and install automatically ``` This should be embedded in a Salt state
Bart van der Braak self-assigned this 2024-07-26 16:01:43 +02:00
Sign in to join this conversation.
No description provided.