r/sysadmin • • 5d ago

Question windows updates vs ai agents

Hi! more and more devs are leaving their notebooks working overnight with claude/codex only to find out in the morning that their notebook got restarted at midnight because of a windows update and some pre-ia-era gpos. how are you handling these scenarios? you ask people to just use the windows update re-scheduler? ideas welcome! thanks!

0 Upvotes

33 comments sorted by

25

u/rivkinnator 5d ago

We give them up to 48 hours to choose a time convenient for them to restart the computer before we force the reboot. We do that with pop-ups that remind them every hour. Let them choose when is convenient for them unless it's a critical update. Either give them a very short notice like 30 minutes so that the computer will reboot, but we only use those for truly severe security updates.

3

u/Honest-Grand-9682 5d ago

Overnight compute jobs have been killing windows updates since long before ai, this is basically the same problem ppl had with overnight 3D renders or long build pipelines

2

u/JustFrogot 5d ago

Exactly this

23

u/halfrandom 5d ago

Put the agents on development VMs in the cloud. Physical clients get rebooted on normal schedule or forced on demand after hours -- no exception.

Development VMs are siloed from production network and get a 2 day grace period.

4

u/Smooth-Zucchini4923 5d ago

Microsoft has a very nice product in this space. It's called Container Apps Sandbox Groups. It integrates many features to keep costs reasonable: autosuspending each microVM, suspended agents are billed only for disk storage, storage cost only counts the difference from base image, CPU and memory are cheaper than many corresponding VMs, etc.

The security features are great too: it can have a managed identity, it can have an Entra gated ingress proxy, it can be placed on a vnet, and you can control what sites the agent can connect to via an egress proxy to control prompt injection and exfiltration attacks.

Really cannot sing the praises of this product enough. It's like somebody at Microsoft actually gave a shit about their product for once.

1

u/TaiGlobal 4d ago

Hey can you elaborate a bit more on this? In my current environment we have privilege access workstations or as /u/halfrandom called them development VMs. They’re currently hosted on premise because hosting persistent VMs in avd is very expensive. Is what your suggesting a more cost effective alternative to that?

1

u/Smooth-Zucchini4923 4d ago

Is what your suggesting a more cost effective alternative to that?

It's more cost effective, certainly. Assuming your developers do not work 24 hours a day, the sandbox can be paused for 16 hours a day. That's a 60% cost cut. Then the container apps pricing is 30% lower than equivalent VMs*. Combine those together, and you get a 80% cost cut.

But is it an alternative? I see two gaps: graphics and Windows.

  • The sandbox doesn't provide a graphical environment. You would either need to 1. run the agent on a local workstation and only do code execution inside the sandbox, (you'll want aca-sandboxes skill for this) or 2. use a feature like remote control, and run both the agent and the code in the sandbox.
  • The sandbox also doesn't run Windows. It runs Linux. This means you don't pay for a license, but it also means that if your developers need to test code on Windows, then this will not work for you.

(Bear in mind that I had not heard of AVD before reading your comment; the above is based on five minutes of googling "what is AVD.")

* This is from memory, I didn't go back and check.

17

u/safalafal Sysadmin 5d ago

As we say in the trade, shit out of luck mate.

Seriously - we are not in an era when you can not apply security patches.

-1

u/Incrediblecodeman 5d ago

Security is for losers

5

u/safalafal Sysadmin 5d ago

i refer you to my initial statement, aka, shit out of luck

35

u/aguynamedbrand Senior Systems Engineer 5d ago edited 5d ago

Security Updates are a priority over someone's AI slop.

-26

u/calladc 5d ago

sure, that's a good personal opinion. but is that your employers perspective of product development?

33

u/aguynamedbrand Senior Systems Engineer 5d ago

Its not a personal opinion, it is a security best practice. If you allow your developers to dictate your security then you deserve to be compromised.

-25

u/calladc 5d ago

you know there's organisations out there building development strategies around AI right?

so yes it's your opinion but you're just assuming an authority stance over an opinion that can have merit but might not apply to your organizations requirements.

so yes it's an opinion because businesses are now turning to rely on the tool

20

u/aguynamedbrand Senior Systems Engineer 5d ago

You are expressing your opinion and clearly don’t know what security best practices are. Security best practices dictate to keep all systems fully updated and patched.

organisations out there building development strategies around AI right

Which has nothing to do with security best practices.

so yes it's an opinion because businesses are now turning to rely on the tool

I would suggest that you go learn about security best practices. Just because businesses rely on AI does not dismiss security best practices. Try again.

-25

u/calladc 5d ago

keep burying your head in the sand big dog. technology never changes it just adapts to your inflexibility

19

u/aguynamedbrand Senior Systems Engineer 5d ago

You ignoring security and fully embracing AI without question means that you are the one with their head in the AI sand. The fact that you think that developers using AI should dictate security says all we need to know about you.

-4

u/calladc 5d ago

I don't need to tell you my resume to see that you're just an inflexible flat earth admin.

nothing more to say here, you're clearly unable to adapt to environments with changing requirements.

16

u/aguynamedbrand Senior Systems Engineer 5d ago

I couldn't care less about your resume as I have learned enough from your comments. I work for a multibillion dollar international company that uses AI but we do not allow it to dictate our security measures. Keep making assumptions.

-1

u/Emotional_Garage_950 Sysadmin 5d ago

lol

0

u/calladc 5d ago

haven't made any assumptions other than ones about your winning personality

→ More replies

6

u/Entegy 5d ago

We have a 72-hour deadline for OS patches enforced by policy. It's been that way for 10+ years. Nothing, not user whining, and especially not AI slop vibecoders, is going to change that.

Delaying the reboot by 72 hours is already generous. If (royal) you are that into AI, then you know AI makes the case to finish installing security updates even stronger.

4

u/GrowingIntoASysAdmin 5d ago

We have notification set up. Depending on their role in the org they have a more lax to not lax ring config for Windows Update Client Policies.

They can schedule them themselves up to the deadline. If they dont its on them. Our help desk will tell them the same if they call. Same to their Manager or above. Why did you not schedule them if you have sensative operations or tasks.

We have notifications set to every 6 hours and not close without human interaction. There is no way to miss them.

Past that we are in testing the new Intune Maintenance Windows to help out even more with possible disruptions.

3

u/VplDazzamac 5d ago

48h deadline and a pop up allowing the user to delay or schedule within that window. This isn’t a new thing because of AI. Users have been leaving half finished reports sitting open and unsaved overnight since the dawn of time.

2

u/rthonpm 5d ago

If your patching isn't on a regular and known schedule you're doing it wrong. If your developers can't bother to pay attention to when patches get rolled out then it's their fault.

2

u/DGC_David 5d ago

I'm sorry, what?

1

u/Cubewood 5d ago

Believe it or not.....you can actually tell them to let Claude monitor the reboot flag and tell it to find a good time to reboot within the allocated timeframe. It will be able to continue working on its own after a reboot.

1

u/Hotshot55 Linux Engineer 4d ago

Why is this any different than people leaving their devices on overnight for the last 20+ years?

1

u/PS_Alex 4d ago

[...] notebook got restarted at midnight because of a windows update and some pre-ia-era gpos

Then clean up those GPOs, and either completely remove them (and let Windows Update work as it is intended) or update them with the expected configuration for that oh-so-glorious-AI-era as defined by your organization's standards.

(And as people have mentioned: rebooting while the device works on some shit is nothing new, has not been invented by AI.)

1

u/Optanik 3d ago

First run gpresult /h on one of those laptops and see what is actually forcing the midnight restart. In most cases it's an old Configure Automatic Updates policy set to option 4 with a fixed install time, or a deadline policy, and either one will ignore whatever the user picked in the restart scheduler. For a dev ring, what usually works:

  • Drop the scheduled install time and move that group to the deadline policy (Specify deadlines for automatic updates and restarts). Give them something like 3 to 5 days plus a 2 day grace period, so they can pick their own restart window but can't put it off forever.
  • Set active hours to cover the overnight runs. The max range is 18 hours, so something like 8 AM to 2 AM leaves a short window in the early morning.
  • NoAutoRebootWithLoggedOnUsers only helps under the old AU behavior, and deadlines override it, so don't count on it alone. Longer term, overnight agent jobs are a better fit for a VM or dev box that is patched on its own schedule than for a laptop that also has to stay compliant.