From cfa1975d91d8ce3d07d12d8da8d28e9ee4ace3cf Mon Sep 17 00:00:00 2001 From: Belim Date: Fri, 17 Feb 2023 16:29:55 +0100 Subject: [PATCH] Add files via upload --- mods/Update Store apps.ini | 12 ++++++++++++ mods/update_store-apps.ps1 | 4 ++++ 2 files changed, 16 insertions(+) create mode 100644 mods/Update Store apps.ini create mode 100644 mods/update_store-apps.ps1 diff --git a/mods/Update Store apps.ini b/mods/Update Store apps.ini new file mode 100644 index 0000000..d32ec0f --- /dev/null +++ b/mods/Update Store apps.ini @@ -0,0 +1,12 @@ +[Info] +DisplayName=Update Microsoft Store apps +Publisher=Builtbybel +AboutScript=This mod will run an update check for Microsoft Store apps. +ScriptLanguage=PowerShell +ConditionScript=update_store-apps.ps1 +CreateNoWindow=true + + + + + diff --git a/mods/update_store-apps.ps1 b/mods/update_store-apps.ps1 new file mode 100644 index 0000000..2ac0b80 --- /dev/null +++ b/mods/update_store-apps.ps1 @@ -0,0 +1,4 @@ +$namespaceName = "root\cimv2\mdm\dmmap" +$className = "MDM_EnterpriseModernAppManagement_AppManagement01" +$wmiObj = Get-WmiObject -Namespace $namespaceName -Class $className +$result = $wmiObj.UpdateScanMethod() \ No newline at end of file