{"id":40,"date":"2021-09-17T14:30:47","date_gmt":"2021-09-17T06:30:47","guid":{"rendered":"https:\/\/benson.ml\/?p=40"},"modified":"2022-03-23T13:34:44","modified_gmt":"2022-03-23T05:34:44","slug":"powershell%e5%bf%ab%e9%80%9f%e9%ab%98%e6%95%88%e5%9c%b0%e8%8e%b7%e5%8f%96%e5%ae%89%e8%a3%85%e7%9a%84%e8%bd%af%e4%bb%b6%e5%88%97%e8%a1%a8","status":"publish","type":"post","link":"https:\/\/benson80.eu.org\/?p=40","title":{"rendered":"PowerShell\u5feb\u901f\u9ad8\u6548\u5730\u83b7\u53d6\u5b89\u88c5\u7684\u8f6f\u4ef6\u5217\u8868"},"content":{"rendered":"\n<p>\u5982\u4f55\u4f7f\u7528WMI\u67e5\u8be2\u7684\u65b9\u5f0f\u83b7\u53d6\u5b89\u88c5\u7684\u8f6f\u4ef6\u5217\u8868\uff1a<\/p>\n\n\n\n<p><code>Get-WmiObjectwin32_product<\/code><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>\u2018HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\u2019<\/li><li>\u2018HKCU:\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\u2019<\/li><li>\u2018HKLM:SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\u2019<\/li><\/ol>\n\n\n\n<p>\u7b2c\u4e00\u4e2a\u8868\u793a\u7684\u662f\u673a\u5668\u7ea7\u522b\u7684\u8f6f\u4ef6\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e8c\u4e2a\u8868\u793a\u4ec5\u9650\u5f53\u524d\u7528\u6237\u5b89\u88c5\u7684\u8f6f\u4ef6(ClickOne\u7a0b\u5e8f\u9ed8\u8ba4\u53ef\u4ee5\u4ece\u8fd9\u4e2a\u8def\u5f84\u4e0b\u67e5\u8be2)\u3002<\/p>\n\n\n\n<p>\u7b2c\u4e09\u4e2a\u548c\u7b2c\u4e00\u4e2a\u7c7b\u4f3c\uff0c\u53ea\u662f\u53ea\u53ef\u80fd\u51fa\u73b0\u572864\u4f4d\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u3002<\/p>\n\n\n\n<p>\u5177\u4f53\u7684\u8c03\u7528\u51fd\u6570\u53ef\u4ee5\u53c2\u8003\uff1a<\/p>\n\n\n\n<p><a href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/github.com\/Benson80\/PSTips\/blob\/master\/Functions\/Get-InstalledSoftwares.ps1\" target=\"_blank\" rel=\"noreferrer noopener\">Get-InstalledSoftwares.ps1<\/a><\/p>\n\n\n\n<p>\u4e5f\u53ef\u4ee5\u76f4\u63a5\u5728\u63a7\u5236\u53f0\u8c03\u7528\uff1a<\/p>\n\n\n\n<p><code>Invoke-Expression<\/code>&nbsp;<code>(new-object<\/code>&nbsp;<code>System.Net.WebClient).DownloadString('https:\/\/raw.githubusercontent.com\/Benson80\/PSTips\/master\/Functions\/Get-InstalledSoftwares.ps1')<\/code><\/p>\n\n\n\n<p><code>Get-InstalledSoftwares<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5982\u4f55\u4f7f\u7528WMI\u67e5\u8be2\u7684\u65b9\u5f0f\u83b7\u53d6\u5b89\u88c5\u7684\u8f6f\u4ef6\u5217\u8868\uff1a Ge &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-40","post","type-post","status-publish","format-standard","hentry","category-windows"],"_links":{"self":[{"href":"https:\/\/benson80.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/benson80.eu.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/benson80.eu.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/benson80.eu.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/benson80.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=40"}],"version-history":[{"count":1,"href":"https:\/\/benson80.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions"}],"predecessor-version":[{"id":41,"href":"https:\/\/benson80.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/40\/revisions\/41"}],"wp:attachment":[{"href":"https:\/\/benson80.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=40"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/benson80.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=40"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/benson80.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}