<img alt="" src="https://secure.hims1nice.com/151009.png" style="display:none;">
Skip to main content

Disabling Windows Update in Windows 10 IoT Core with PowerShell

This post is the fourth in a series describing our automation efforts for provisioning Windows 10 IoT core on a ...

Mike Branstein
Posted by Mike Branstein
Disabling Windows Update in Windows 10 IoT Core with PowerShell
image-3

In today's fast-paced business landscape, staying ahead of the competition requires efficient and effective solutions. According to Microsoft’s Work Trend Index, nearly 70% of employee report that they don’t have sufficient time in the day to focus on “work”, with more time being spent Communicating than Creating.

Microsoft 365 Copilot is designed, with Microsoft’s cloud trust platform at its core, to allow for employees to both be more productive, reduce the time spent searching for information, performing mundane tasks, and other low-value activities.

This post is the fourth in a series describing our automation efforts for provisioning Windows 10 IoT core on a Raspberry Pi. To recap, KiZAN has a lab of 26 Raspberry Pi 2 boards running Windows 10 IoT core. On a regular basis, we need to re-flash, provision and configure the boards. When we perform the re-flash and provisioning process, it is manual and consumes more time than we want to spend (up to 2 days). In this post, you'll learn how to use PowerShell for Disabling Windows Update on Windows 10 IoT Core.

Windows 10 IoT Core Internet of things

Posts in this series:

Warning
Before we dive into disabling Windows Update, I want to make it clear that I'm not advocating you disable Windows Update. In our circumstance (our lab), it's important that we have an absolute stable environment that doesn't ever change. As a result, we needed to disable Windows Update. In a production scenario, you shouldn't disable Windows Update.

IoT security is a major concern. We're well on our way to having 50 billion (yes, five-oh Billion) IoT devices and each of these devices is a potential security risk. It is incredibly important to keep devices up-to-date because each additional device increases an organization's exposure and surface area for compromise.

With that said, let's dive into disabling Windows Update, against all recommendations and advice.

Disable Windows Update
To disable windows update, I'll be using the same technique used in the previous two posts: remotely execute a PowerShell script. A PowerShell script will be run remotely with Invoke-Command. The code used in the script for disabling windows updates is below:


This script contains a series of commands to disable the Windows Update service, stop it, verify it's been stopped, and verify it's been disabled. The output for this script is below:

Disabling_Windows_Update_IoT_Series_1.png

Below is all of the code used for Disabling Windows Updates on Windows 10 IoT Core devices. Our next post in the series is setting the display resolution.

Running the Script Remotely
This script needs to run remotely, so, I saved the script into a file named Disable-WindowsUpdate.ps1 and executed it remotely.



In the next post, I'll teach you how to set the screen resolution of Windows 10 IoT core with PowerShell.

 

Check out our FREE IoT Discovery Session! 

 

LEARN MORE NOW!