Jump to content

Prevent Windows 10 with Veeam Backup Server from restarting

Go to solution Solved by leadeater,
2 minutes ago, Tad Bittoomuch said:

I am wondering if there's a foolproof way of completely preventing Windows 10 from restarting.  Here's a screenshot of my Windows Update Group Policies

image.png.63ebfa0cb454468c7d2f1fba4b655fe1.png

 

Just point to a non existent URL for the update source and that will stop all updates, when you want to actually update just disable the GPO and check for updates.

Hi everyone:

 

I've got an ESXi host with about 15 virtual machines that I perform incremental backups on to a Windows 10 machine using the free edition of Veeam Backup and Replication.  For about a month, it's been fine.  The Windows 10 backup machine hasn't restarted due to updates, until at least a few days ago.  As a result, I haven't been getting daily backups of my environment.  I only noticed today when on a whim I decided to remote desktop into the Windows 10 machine to find that it restarted for some reason a few days ago, probably because of Windows Update.

 

I am wondering if there's a foolproof way of completely preventing Windows 10 from restarting.  Here's a screenshot of my Windows Update Group Policies:

 

Untitled.png.2a71d7199cc4717671a4d79771e3680f.png

 

Should I enable/disable any others, or is there another way to prevent Windows from restarting?  I don't really want to go the 'defer updates' route because at the end of the period you deferred the updates for I believe you must restart.

I suppose I could deal with monthly or quarterly restarts but I'd prefer to know when it happens.

 

Also I'm sure there are better backup methods than Veeam, and it's probably blasphemy that I'm running it on standard Windows 10 (although I did try the evaluation of Windows Server, but that shuts down every 10 days - not ideal), but it works good enough for what I need it for (except for the automatic restart thing).

 

Also, let me know if you think this is a good idea:  the group policy No auto restart with logged in users for scheduled automatic updates installations - does that mean a remote desktop logged in user would prevent Windows from restarting?  If so I could consider converting the Windows 10 machine into another ESXi host, put another Windows 10 VM on it and then have the backup server and the other VM logged into each other, so neither can restart.  This is probably a crazy idea that wouldn't work, but if this doesn't come to anything I might give it a go.

 

Thanks for reading

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, Tad Bittoomuch said:

I am wondering if there's a foolproof way of completely preventing Windows 10 from restarting.  Here's a screenshot of my Windows Update Group Policies

image.png.63ebfa0cb454468c7d2f1fba4b655fe1.png

 

Just point to a non existent URL for the update source and that will stop all updates, when you want to actually update just disable the GPO and check for updates.

Link to comment
Share on other sites

Link to post
Share on other sites

I prevent WU from running when it wants by blocking associated sites at my router. It can't restart for updates if it can't download the updates in the first place. It has a side effect of killing MS store, in case that is of any interest to you. Maybe I can block a bit less but what I do works for now, so I'm not motivated to change it. To get a list of sites, MS have a webpage somewhere with a list of URLs it wants you to whitelist. Just add to blacklist instead, and done.

 

When you actually do want updates, just disable the block temporarily.

Gaming system: R7 7800X3D, Asus ROG Strix B650E-F Gaming Wifi, Thermalright Phantom Spirit 120 SE ARGB, Corsair Vengeance 2x 32GB 6000C30, RTX 4070, MSI MPG A850G, Fractal Design North, Samsung 990 Pro 2TB, Acer Predator XB241YU 24" 1440p 144Hz G-Sync + HP LP2475w 24" 1200p 60Hz wide gamut
Productivity system: i9-7980XE, Asus X299 TUF mark 2, Noctua D15, 64GB ram (mixed), RTX 3070, NZXT E850, GameMax Abyss, Samsung 980 Pro 2TB, random 1080p + 720p displays.
Gaming laptop: Lenovo Legion 5, 5800H, RTX 3070, Kingston DDR4 3200C22 2x16GB 2Rx8, Kingston Fury Renegade 1TB + Crucial P1 1TB SSD, 165 Hz IPS 1080p G-Sync Compatible

Link to comment
Share on other sites

Link to post
Share on other sites

Or if you don't want to do it manually try this:

image.thumb.png.6c773547bf251c6388cb8a10d977568d.png

 

Will only reboot once a month on the last Sunday of the month.

Link to comment
Share on other sites

Link to post
Share on other sites

4 minutes ago, leadeater said:

Just point to a non existent URL for the update source and that will stop all updates, when you want to actually update just disable the GPO and check for updates.

This is brilliant, thank you!

 

4 minutes ago, porina said:

I prevent WU from running when it wants by blocking associated sites at my router. It can't restart for updates if it can't download the updates in the first place. It has a side effect of killing MS store, in case that is of any interest to you. Maybe I can block a bit less but what I do works for now, so I'm not motivated to change it. To get a list of sites, MS have a webpage somewhere with a list of URLs it wants you to whitelist. Just add to blacklist instead, and done.

 

When you actually do want updates, just disable the block temporarily.

This is quite an elegant solution, that probably blocks a lot of the Windows 10 data collection as well.  I would do this, however there are other Windows 10 PCs on my network that may need access to the microsoft store and normal Windows Update.

 

Thanks for your replies :)

Link to comment
Share on other sites

Link to post
Share on other sites

You can use windows task scheduler to make your VMs or any program start itself automatically after a restart.

This way if the PC does restart even in the case of a power outage or something else the servers will start back up on their own.

NEW PC build: Blank Heaven   minimalist white and black PC     Old S340 build log "White Heaven"        The "LIGHTCANON" flashlight build log        Project AntiRoll (prototype)        Custom speaker project

Spoiler

Ryzen 3950X | AMD Vega Frontier Edition | ASUS X570 Pro WS | Corsair Vengeance LPX 64GB | NZXT H500 | Seasonic Prime Fanless TX-700 | Custom loop | Coolermaster SK630 White | Logitech MX Master 2S | Samsung 980 Pro 1TB + 970 Pro 512GB | Samsung 58" 4k TV | Scarlett 2i4 | 2x AT2020

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×