Windows 10 IoT core has pushing update to its latest OS version once you download the OS version 10.0.10586.0. The update is 10.0.10586.63. However, the device never asks you if you want to download the updates and just re-flashes the card on its own. If your Pi is running in headless state over internet connection to do some mission critical stuff, this is a very crappy way to find out your pi has stopped working. However, you can stop the Pi from running the auto update. Here is a set of PowerShell commands that does this for you -
First connect to your Pi through remote session -
net start winrm
//IP Address of PI
Set-Item WSMan:\localhost\Client\TrustedHosts –Value $ipAddress
Enter-PSSession -ComputerName $ipAddress -Credential $ipAddress\Administrator
Now once you have established remote session with Pi, you can use these commands to check and disable auto updating
sc.exe config wuauserv start=disabled
sc.exe query wuauserv
sc.exe stop wuauserv
sc.exe query wuauserv
REG.exe QUERY HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\wuauserv /v Start
- Line 1. Disable Windows Update service
- Line 2. Check service status. If it's not running skip line 3 and 4
- Line 3. Stop Windows Update service (if running).
- Line 4. Check service status again. It would not stop sometimes.
- Line 5. Check if service is really disabled (Start should be 0x4)
I hope it helps.
Posted
Apr 22 2016, 02:52 PM
by
Indraneel Pole