{"id":6250,"date":"2015-10-01T17:44:14","date_gmt":"2015-10-01T08:44:14","guid":{"rendered":"http:\/\/www.ka-net.org\/blog\/?p=6250"},"modified":"2015-10-01T17:44:14","modified_gmt":"2015-10-01T08:44:14","slug":"appusermodelidaumid%e3%82%92%e5%88%97%e6%8c%99%e3%81%99%e3%82%8bvbscript","status":"publish","type":"post","link":"https:\/\/www.ka-net.org\/blog\/?p=6250","title":{"rendered":"AppUserModelId(AUMID)\u3092\u5217\u6319\u3059\u308bVBScript"},"content":{"rendered":"<p>\u300c<a href=\"\/\/www.ka-net.org\/blog\/?p=6098\" title=\"\u300c\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c\u300d\u304b\u3089Microsoft Edge\u3092\u8d77\u52d5\u3059\u308b | \u521d\u5fc3\u8005\u5099\u5fd8\u9332\" target=\"_blank\">\u300c\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c\u300d\u304b\u3089Microsoft Edge\u3092\u8d77\u52d5\u3059\u308b<\/a>\u300d\u3067\u3082\u66f8\u3044\u3066\u3044\u307e\u3059\u304c\u3001UWP(Windows \u30b9\u30c8\u30a2)\u30a2\u30d7\u30ea\u306eAppUserModelId(Application User Model ID)\u3055\u3048\u5206\u304b\u308c\u3070\u300c<span style=\"color: #ff0000; font-weight: bold;\">shell:AppsFolder<\/span>\u300d\u304b\u3089\u30a2\u30d7\u30ea\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/msdn.microsoft.com\/en-us\/library\/dn449300.aspx\" title=\"Find the Application User Model ID of an installed app (Industry 8.1)\" target=\"_blank\">PowerShell\u3084\u30ec\u30b8\u30b9\u30c8\u30ea\u304b\u3089\u8abf\u3079\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059<\/a>\u304c\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d5\u30a9\u30eb\u30c0\u304b\u3089\u53d6\u5f97\u3059\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4eca\u56de\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30d5\u30a9\u30eb\u30c0\u304b\u3089\u30a2\u30d7\u30ea\u306eAppUserModelId\u3092\u53d6\u5f97\u3059\u308bVBScript\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nDim itm\r\n\r\n'&#x5B;.Namespace(&quot;shell:::{4234d49b-0245-4df3-b780-3893943456e1}&quot;)]\u3067\u3082\u53ef\r\nWith CreateObject(&quot;Shell.Application&quot;).Namespace(&quot;shell:AppsFolder&quot;)\r\n  For Each itm In .Items\r\n    WScript.Echo itm.Name &amp; &quot;, &quot; &amp; itm.Path\r\n  Next\r\nEnd With<\/pre>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/List_AppUserModelId_01.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/List_AppUserModelId_01.gif\" alt=\"List_AppUserModelId_01\" width=\"676\" height=\"406\" class=\"alignnone size-full wp-image-6251\" \/><\/a><\/p>\n<p>\u4e0a\u8a18\u306e\u901a\u308a\u975e\u5e38\u306b\u30b7\u30f3\u30d7\u30eb\u3067\u3059\u3002<br \/>\n\u4e0a\u8a18\u30b3\u30fc\u30c9\u3092\u5c11\u3057\u5909\u3048\u308c\u3070\u3001\u30a2\u30d7\u30ea\u540d\u3092\u6307\u5b9a\u3057\u3066\u30a2\u30d7\u30ea\u3092\u5b9f\u884c\u3059\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: vb; title: ; notranslate\" title=\"\">Option Explicit\r\n\r\nDim id\r\n\r\nid = GetAUMID(&quot;\u96fb\u5353&quot;)\r\nIf id &lt;&gt; &quot;&quot; Then\r\n  CreateObject(&quot;WScript.Shell&quot;).Run _\r\n    &quot;explorer.exe shell:AppsFolder\\&quot; &amp; id\r\nEnd If\r\n\r\nPrivate Function GetAUMID(ByVal AppName)\r\n  Dim itm\r\n  Dim ret\r\n  \r\n  ret = &quot;&quot;\r\n  With CreateObject(&quot;Shell.Application&quot;).Namespace(&quot;shell:AppsFolder&quot;)\r\n    For Each itm In .Items\r\n      If InStr(itm.Name, AppName) Then\r\n        ret = itm.Path\r\n        Exit For\r\n      End If\r\n    Next\r\n  End With\r\n  GetAUMID = ret\r\nEnd Function<\/pre>\n<p><a href=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/List_AppUserModelId_02.gif\"><img loading=\"lazy\" decoding=\"async\" src=\"\/\/www.ka-net.org\/blog\/wp-content\/uploads\/List_AppUserModelId_02.gif\" alt=\"List_AppUserModelId_02\" width=\"676\" height=\"570\" class=\"alignnone size-full wp-image-6252\" \/><\/a><\/p>\n<p>\u3082\u3061\u308d\u3093\u3001VBA\u304b\u3089\u3067\u3082\u540c\u69d8\u306e\u30b3\u30fc\u30c9\u3067\u30a2\u30d7\u30ea\u3092\u5b9f\u884c\u3067\u304d\u308b\u306e\u3067\u3001UWP(Windows \u30b9\u30c8\u30a2)\u30a2\u30d7\u30ea\u306e\u8d77\u52d5\u3067\u304a\u56f0\u308a\u306e\u65b9\u306f\u662f\u975e\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u300c\u300c\u30d5\u30a1\u30a4\u30eb\u540d\u3092\u6307\u5b9a\u3057\u3066\u5b9f\u884c\u300d\u304b\u3089Microsoft Edge\u3092\u8d77\u52d5\u3059\u308b\u300d\u3067\u3082\u66f8\u3044\u3066\u3044\u307e\u3059\u304c\u3001UWP(Windows \u30b9\u30c8\u30a2)\u30a2\u30d7\u30ea\u306eAppUserModelId(Application User Model ID)\u3055\u3048 [&hellip;]","protected":false},"author":1,"featured_media":7132,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[132,25,6],"tags":[],"class_list":["post-6250","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows10","category-windows","category-vbs"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.ka-net.org\/blog\/wp-content\/uploads\/eyecatch-VBScript.png","jetpack_shortlink":"https:\/\/wp.me\/p4UZZr-1CO","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6250","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6250"}],"version-history":[{"count":1,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6250\/revisions"}],"predecessor-version":[{"id":6253,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/6250\/revisions\/6253"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=\/wp\/v2\/media\/7132"}],"wp:attachment":[{"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ka-net.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}