# Microsoft Store Applications

## Overview

{% hint style="info" %}
**Dev Insight:** Are you annoyed that Windows Update doesn't update Microsoft Store applications? I was too.
{% endhint %}

This script allows you to set Microsoft Store applications to update automatically and also initiates on-demand update scans.

**Prerequisites:** This script has no prerequisites.&#x20;

***

## Script

{% @github-files/github-code-block url="<https://github.com/wise-io/scripts/blob/main/scripts/UpdateMicrosoftStoreApps.ps1>" %}

## Examples

### Example 1

```powershell
.\UpdateMicrosoftStoreApps.ps1
```

This example initiates a scan for Microsoft Store application updates and applies them.

### Example 2

```powershell
.\UpdateMicrosoftStoreApps.ps1 -AutoUpdate
```

This example enables automatic updates for Microsoft Store applications. It then initiates a scan for updates and applies them.

***

## Parameters

`-AutoUpdate`

Optional switch parameter that enables automatic updates for Microsoft Store applications.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://scripts.aaronjstevenson.com/device-management/updates/microsoft-store-applications.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
