# Powershell to update microsoft store applications

**URL:** <https://forums.powershell.org/t/powershell-to-update-microsoft-store-applications/26008>\
**Category:** PowerShell Help\
**Created:** [July 12, 2025, 12:35am UTC](https://forums.powershell.org/t/powershell-to-update-microsoft-store-applications/26008 "2025-07-12T00:35:07Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![tonyg](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@tonyg](https://forums.powershell.org/u/tonyg)\
**Post date:** [July 12, 2025, 12:35am UTC](https://forums.powershell.org/t/powershell-to-update-microsoft-store-applications/26008/1 "2025-07-12T00:35:07Z")

</div>

hi, if you read my previous post, you know that there is no update-appxpackage powershell command. So my next question is…is there a way (or script) to update Microsoft store applications? it is quite a mess given that each user on a computer can have their own (sometimes old) version of an app.  
We regularly run Nessus scans, and it is constantly complaining about outdated apps (3D Viewer etc).

thanks in advance

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [July 12, 2025, 8:29am UTC](https://forums.powershell.org/t/powershell-to-update-microsoft-store-applications/26008/2 "2025-07-12T08:29:53Z")

</div>

I thought that MSFT Store apps update themselves when the profile in which they are installed is actively used. 🤔

> [@tonyg](#):
>
> We regularly run Nessus scans, and it is constantly complaining about outdated apps (3D Viewer etc).

Does this happen even for actively used profiles?

**Edit:**

I googled a little bit … found this:

> **[Reddit - The heart of the internet](https://www.reddit.com/r/sysadmin/comments/n76vlm/commandline_option_for_updating_microsoft_store/)**

---

<div class="post-metadata">

**Author:** ![tonyg](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@tonyg](https://forums.powershell.org/u/tonyg)\
**Post date:** [July 12, 2025, 10:55pm UTC](https://forums.powershell.org/t/powershell-to-update-microsoft-store-applications/26008/3 "2025-07-12T22:55:20Z")

</div>

right, so that is the key phrase “active users” in my environment, it is not uncommon to have a user login to another computer once or twice and then not again…so the app is there and even if another “active” user gets the updated app…that first user never will and both old and new versions of the app are now on the computer…this is what i am trying to work through…

i will take a look at your link, thanks!

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [July 12, 2025, 10:59pm UTC](https://forums.powershell.org/t/powershell-to-update-microsoft-store-applications/26008/4 "2025-07-12T22:59:27Z")

</div>

> [@tonyg](#):
>
> it is not uncommon to have a user login to another computer once or twice and then not again

So you’re looking for a solution for the wrong issue. I’d recommend to remove unused profiles. 🤷‍♂️

> **[Delete User Profiles with PowerShell & CIM](https://adamtheautomator.com/powershell-delete-user-profile/)**
>
> Use PowerShell and the CIM command to delete user profiles on Windows systems in this step-by-step guide.

---

<div class="post-metadata">

**Author:** ![krzydoug](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/krzydoug/32/1008_2.png) [@krzydoug](https://forums.powershell.org/u/krzydoug)\
**Post date:** [July 13, 2025, 1:33am UTC](https://forums.powershell.org/t/powershell-to-update-microsoft-store-applications/26008/5 "2025-07-13T01:33:37Z")

</div>

If what you say is true then there is no “updating” the app, you just need to install the new and remove the old. Either way it seems you might want to reconsider what actual real world problem you are trying to solve. What issues have occurred that even led to this endeavor?

---

<div class="post-metadata">

**Author:** ![tonyg](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@tonyg](https://forums.powershell.org/u/tonyg)\
**Post date:** [July 13, 2025, 12:31pm UTC](https://forums.powershell.org/t/powershell-to-update-microsoft-store-applications/26008/6 "2025-07-13T12:31:11Z")

</div>

the real-world problem i have; is that in this situation (which i have many of) Nessus is complaining about outdated apps installed on the computer…the apps will not update unless the user logs in…which in some cases they are not.

i suppose one way to handle this is to delete old profiles…but that seems messy…what constitutes an old profile? i would need a committee to decide that (LOL)

i really feel the right way to do this is to make sure all the apps are updated even if the user does not log in…i think this was short-sightedness on Microsoft’s part but what i am coming to understand, is that there is no way to do it the way i want.

update-appxpackage…if only!

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [July 13, 2025, 1:07pm UTC](https://forums.powershell.org/t/powershell-to-update-microsoft-store-applications/26008/7 "2025-07-13T13:07:29Z")

</div>

> [@tonyg](#):
>
> what constitutes an old profile?

If it’s not used for a certain amount of time … 🤷‍♂️ … that’s everything else than hard to decide … 🤷‍♂️ 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![psdarwin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/psdarwin/32/2063_2.png) [@psdarwin](https://forums.powershell.org/u/psdarwin)\
**Post date:** [July 14, 2025, 1:21pm UTC](https://forums.powershell.org/t/powershell-to-update-microsoft-store-applications/26008/8 "2025-07-14T13:21:00Z")

</div>

Having gone through user profile removal coding before, there are only a couple of commands to do it:

```auto
Get-CimInstance -ClassName Win32_UserProfile
Remove-CimInstance

```

You could filter by the localpath for the user profiles that are showing up on your report and clean up those profiles.

---

<div class="post-metadata">

**Author:** ![tonyd](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/tonyd/32/1041_2.png) [@tonyd](https://forums.powershell.org/u/tonyd)\
**Post date:** [July 14, 2025, 3:20pm UTC](https://forums.powershell.org/t/powershell-to-update-microsoft-store-applications/26008/9 "2025-07-14T15:20:05Z")

</div>

Oh and heaven forbid I mention this, but I do believe Roaming Profiles would also solve this problem 😬

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [July 14, 2025, 4:34pm UTC](https://forums.powershell.org/t/powershell-to-update-microsoft-store-applications/26008/10 "2025-07-14T16:34:06Z")

</div>

> [@tonyd](#):
>
> Roaming Profiles would also solve this problem

Please don’t!!! 🫸

Roaming profiles have been a bad idea from the beginning and actually only work with terminal servers or VDI.  
If you really need to have parts of the Windows profiles moving from one machine to another use folder redirection instead. But I’d recommend **not** to include the appdata folder!!!

---

<div class="post-metadata">

**Author:** ![tonyd](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/tonyd/32/1041_2.png) [@tonyd](https://forums.powershell.org/u/tonyd)\
**Post date:** [July 14, 2025, 4:52pm UTC](https://forums.powershell.org/t/powershell-to-update-microsoft-store-applications/26008/11 "2025-07-14T16:52:23Z")

</div>

> [@Olaf](#):
>
> Please don’t!!! 🫸

Olaf, I posted as a joke 🙂 I totally agree with you, although, in theory, they should solve the problem.

---

<div class="post-metadata">

**Author:** ![Olaf](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/olaf/32/992_2.png) [@Olaf](https://forums.powershell.org/u/Olaf)\
**Post date:** [July 14, 2025, 4:55pm UTC](https://forums.powershell.org/t/powershell-to-update-microsoft-store-applications/26008/12 "2025-07-14T16:55:21Z")

</div>

> [@tonyd](#):
>
> I posted as a joke

I haven’t been sure about that. Humor or especially irony sometimes does not work well when it’s written. And some of us are not native english speakers. 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![tonyd](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/tonyd/32/1041_2.png) [@tonyd](https://forums.powershell.org/u/tonyd)\
**Post date:** [July 14, 2025, 5:08pm UTC](https://forums.powershell.org/t/powershell-to-update-microsoft-store-applications/26008/13 "2025-07-14T17:08:00Z")

</div>

> [@Olaf](#):
>
> And some of us are not native english speakers

Understood. Wont happen again. Thanks. 😬

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [August 13, 2025, 5:08pm UTC](https://forums.powershell.org/t/powershell-to-update-microsoft-store-applications/26008/14 "2025-08-13T17:08:07Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
