writersmor.blogg.se

Windows 10 unattended upgrade
Windows 10 unattended upgrade











windows 10 unattended upgrade

Download the Windows installer or pull the Docker image now.To receive email notification when this article is updated, click Subscribe on the right side of the page. Check out my YouTube on WSL2 and please subscribe over there. It's a whole new world out there, and I'm loving how I can move easily between multiple Linuxes on Windows 10. You would not want to update or mess with the docker- managed WSL instances above as they exist only to run your Docker Desktop-managed containers. One could imagine a group policy as well for large enterprises to do the same thing for developers using a custom or managed WSL instance.

windows 10 unattended upgrade

Just change the -d and include the name of each distro. ps1 script and run them occasionally to keep them all updated on my own. Since I have several WSL instances, I could also make a "updateall.cmd" or. Wsl -d "Wlinux" -u root -e apt upgrade -y For example: wsl -d "Wlinux" -u root -e apt update I could set up a Task Scheduler and make an "on login" task or a weekly task that calls wsl.exe and passes in -d for distro, along with the name of the distro, run as root with -u and -e for the command. If I'm using LTS (long term support) distros then there's minimal risk (my opinion) in "apt get update" and "apt get upgrade"-ing them every week or so. I spend most of my time in the Ubuntu instances, but I also occasionally drop into the kali-linux and WLinux instances. There's a few things to unpack here to get into the details.įirst, if you run wsl -list -v you'll see all the WSL Linux Instances on your machine.

windows 10 unattended upgrade

Hayden Barnes from Canonical, the folks that work on Ubuntu ( lovely blog, check out it) had a great tweet where he recommended using the Windows Task Scheduler (think of it as a graphical cron job manager) to keep your WSL Linux instances up to date.













Windows 10 unattended upgrade