Jump to content


anyweb

Deploying KB5030310 to devices as a Win32 app for Copilot

Recommended Posts

Introduction

In a previous blog post I discussed how you can disable (or enable) Microsoft’s new flagship service called Copilot. Copilot is a very hot topic today as it gives the power of AI to all users of Windows.

As it’s going to be included with Windows 11 version 23H2 coming later in Q4 you need to start testing it now. To test it you’ll probably want to have two groups of users, those where you’ve disabled Copilot and a smaller subset where you enable it. Based on my own testing, in order to automate enabling Copilot you need to have some things in place in your environment right now, and those requirements are listed below.

  • Windows 11 version 22H2 with KB5030310 installed
  • Turn on the “Get the latest updates as soon as they are available” windows Update setting – see how here
  • Locations needs to be North America, parts of Asia/South America regions only (for now)

In this blog post I’ll focus on the point above highlighted in red, and we’ll solve the problem by creating a Win32 app in Microsoft Intune.

Download the required files

From Microsoft Catalog website, download the 2023-09 Cumulative Update Preview for Windows 11 Version 22H2 for x64-based Systems (KB5030310) .

Scripts

There are two the scripts used in this package:

install.cmd

wusa.exe .\windows11.0-kb5030310-x64_2b759815a3b7626cc8f508753553172aa444d454.msu /quiet /norestart -wait

check_for_KBKB5030310.ps1

# niall brady 2023/10/04
# check if the KB is actually installed
#

$result = systeminfo.exe | findstr KB5030310

if ($result){
write-output "Found KB5030310"
exit 0}

else {
write-output "Could not find KB5030310"
exit 1}

Microsoft Win32 Content Prep Tool

Get the tool here https://github.com/microsoft/Microsoft-Win32-Content-Prep-Tool.

Create an icon for your package (optional)

Using Google images/Bing images search for Windows Update and pick a graphic that matches what you want this to look like.

Create intunewin package

I use a folder layout as follows when creating Win32 apps.

  • Win32app_name
    • Win32app_source
    • Win32app_target

I place the Microsoft Win32 Content Prep Tool (IntuneWinAppUtil.exe) in the Win32app_name folder, along with any icon’s used for the app.

folder-layout.png

Next I place the required files (in this case the downloaded MSU file, a PowerShell script and some batch files) into the Win32app_source folder.

win32app_source.png

Once all these are in place we can go ahead and create the intunewin package. You can see the settings I used in the output below.

creating-intunewin.png

The Intunewin file will end up in the win32app_target folder.

intunewin-target.png

Create the Win32 app

In Microsoft Intune, create a new Win32 app and give it a suitable name. Next, point it to the folder containing the previously created intunewin file.

app-package-file.png

Fill in some app information, and select your desired Logo if making the software available

app-information.png

enter your Program settings

program-settings.png

On the App requirements screen make sure that Windows 11 version 22H2 is selected

app-requirements.png

For detection rules point it to the included PowerShell script by clicking on Use a custom detection script and pointing the check_for_KB5030310.ps1 PowerShell script in the win32app_source folder.

detection-rules.png

Continue through the wizard and assign is as appropriate to your target Windows 11 version 22H2 devices that you want brought up to build 2361.

required-assignment.png

 

After creating the app, you can later monitor it’s progress.

monitor-the-installation.png

Job done !

Related reading

see you in the next one

cheers

niall.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...


×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.