{"id":6199,"date":"2022-09-27T22:11:37","date_gmt":"2022-09-27T22:11:37","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=6199"},"modified":"2024-06-13T02:56:30","modified_gmt":"2024-06-13T02:56:30","slug":"intune-proactive-remediation-to-uninstall-software","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediation-to-uninstall-software","title":{"rendered":"Intune proactive remediation to Uninstall Software"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><strong>Remotely Uninstall<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">Invoke-Command -Computername $Computers {Get-Package -Name \"*SilverLight*\" | Uninstall-Package}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Locally Uninstall<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">Get-Package -Name \"*SilverLight*\" | Uninstall-Package<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">L<strong>ocation ( Make sure you are licensed to use )&nbsp;<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"502\" height=\"420\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/09\/img_633374f40d9b5.png\" alt=\"\" class=\"wp-image-6200 img-responsive\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/09\/img_633374f40d9b5.png 502w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/09\/img_633374f40d9b5-300x251.png 300w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"348\" height=\"210\" src=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/09\/img_6333754c1c94c.png\" alt=\"\" class=\"wp-image-6202 img-responsive\" srcset=\"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/09\/img_6333754c1c94c.png 348w, https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/09\/img_6333754c1c94c-300x181.png 300w\" sizes=\"auto, (max-width: 348px) 100vw, 348px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Detect<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\">$SoftwareName = \"*Silverlight*\"\n\n$ItemProperties = Get-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*\" | Where Displayname -like \"*$SoftwareName*\"\n$ItemProperties32 = Get-ItemProperty \"HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*\" | Where Displayname -like \"*$SoftwareName*\"\n\nif ($ItemProperties -Or $ItemProperties32) {\n    Write-Host \"$SoftwareName found\"\n    Exit 1\n} Else {\n    Write-Host \"$SoftwareName Not found\"\n    Exit 0\n}\n\n\n catch{\n    $errMsg = $_.exeption.essage\n    Write-Output $errMsg\n }<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Remmediate<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"powershell\" class=\"language-powershell\"># MrNetTek\n# eddiejackson.net\n# 7\/15\/2022\n# free for public use\n# free to claim as your own\n \n$SoftwareName = \"*Silverlight*\"\n \n$ItemProperties = Get-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*\" | Select-Object DisplayName,UninstallString\n$ItemProperties32 = Get-ItemProperty \"HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*\" | Where Displayname -like \"*$SoftwareName*\"\n\nforeach ($Item in $ItemProperties)\n    {\n        $DisplayName = $Item.DisplayName\n        $UninstallString = $Item.UninstallString\n\t\t$PSChildName = $Item.PSChildName\n        if($DisplayName -like \"*$SoftwareName*\")\n            {\n\t\t\t\tWrite-Host \"MsiExec.exe \/X$PSChildname \/qn \/norestart\"\n                # Output: Microsoft Silverlight : MsiExec.exe \/X{89F4137D-6C26-4A84-BDB8-2E5A4BB71E00}\n                # We dont use $UninstallString as software Like Forticlient has MsiExec.exe \/I ( Install for Uninstall String??? )\n                # Always test this on a reference machine, first\n                # Sometimes the uninstall string is wrong, right from the vendor\n                # If you do run across an invalid uninstall string, fix it\n                # and hard code the uninstall string into your script\n                # Silverlight was missing the \/qn\n                cmd.exe \/c \"MsiExec.exe \/X$PSChildname \/qn \/norestart\"\n            }\n    }\n\t\n\nforeach ($Item in $ItemProperties32)\n    {\n        $DisplayName = $Item.DisplayName\n        $UninstallString = $Item.UninstallString\n\t\t$PSChildName = $Item.PSChildName\n        if($DisplayName -like \"*$SoftwareName*\")\n            {\n\t\t\t\tWrite-Host \"MsiExec.exe \/X$PSChildname \/qn \/norestart\"\n                # Output: Microsoft Silverlight : MsiExec.exe \/X{89F4137D-6C26-4A84-BDB8-2E5A4BB71E00}\n                # We dont use $UninstallString as software Like Forticlient has MsiExec.exe \/I ( Install for Uninstall String??? )\n                # Always test this on a reference machine, first\n                # Sometimes the uninstall string is wrong, right from the vendor\n                # If you do run across an invalid uninstall string, fix it\n                # and hard code the uninstall string into your script\n                # Silverlight was missing the \/qn\n                cmd.exe \/c \"MsiExec.exe \/X$PSChildname \/qn \/norestart\"\n            }\n    }<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Remotely Uninstall Locally Uninstall Location ( Make sure you are licensed to use )&nbsp; Detect Remmediate<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2837,4004,4005,971],"class_list":["post-6199","post","type-post","status-publish","format-standard","hentry","category-research","tag-intune","tag-proactive-remediation","tag-silverlight","tag-uninstall"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Remotely Uninstall Invoke-Command -Computername $Computers {Get-Package -Name &quot;*SilverLight*&quot; | Uninstall-Package} Locally Uninstall Get-Package -Name &quot;*SilverLight*&quot; | Uninstall-Package Location ( Make sure you are licensed to use ) Detect $SoftwareName = &quot;*Silverlight*&quot; $ItemProperties = Get-ItemProperty &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*&quot; | Where Displayname -like &quot;*$SoftwareName*&quot; $ItemProperties32 = Get-ItemProperty &quot;HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*&quot; | Where Displayname -like &quot;*$SoftwareName*&quot; if ($ItemProperties -Or $ItemProperties32) { Write-Host\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"paris\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediation-to-uninstall-software\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Welcome to Pariswells.com |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Intune proactive remediation to Uninstall Software | Welcome to Pariswells.com\" \/>\n\t\t<meta property=\"og:description\" content=\"Remotely Uninstall Invoke-Command -Computername $Computers {Get-Package -Name &quot;*SilverLight*&quot; | Uninstall-Package} Locally Uninstall Get-Package -Name &quot;*SilverLight*&quot; | Uninstall-Package Location ( Make sure you are licensed to use ) Detect $SoftwareName = &quot;*Silverlight*&quot; $ItemProperties = Get-ItemProperty &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*&quot; | Where Displayname -like &quot;*$SoftwareName*&quot; $ItemProperties32 = Get-ItemProperty &quot;HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*&quot; | Where Displayname -like &quot;*$SoftwareName*&quot; if ($ItemProperties -Or $ItemProperties32) { Write-Host\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediation-to-uninstall-software\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2022-09-27T22:11:37+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2024-06-13T02:56:30+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Intune proactive remediation to Uninstall Software | Welcome to Pariswells.com\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Remotely Uninstall Invoke-Command -Computername $Computers {Get-Package -Name &quot;*SilverLight*&quot; | Uninstall-Package} Locally Uninstall Get-Package -Name &quot;*SilverLight*&quot; | Uninstall-Package Location ( Make sure you are licensed to use ) Detect $SoftwareName = &quot;*Silverlight*&quot; $ItemProperties = Get-ItemProperty &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*&quot; | Where Displayname -like &quot;*$SoftwareName*&quot; $ItemProperties32 = Get-ItemProperty &quot;HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*&quot; | Where Displayname -like &quot;*$SoftwareName*&quot; if ($ItemProperties -Or $ItemProperties32) { Write-Host\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/intune-proactive-remediation-to-uninstall-software#article\",\"name\":\"Intune proactive remediation to Uninstall Software | Welcome to Pariswells.com\",\"headline\":\"Intune proactive remediation to Uninstall Software\",\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/09\\\/img_633374f40d9b5.png\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/intune-proactive-remediation-to-uninstall-software\\\/#articleImage\",\"width\":502,\"height\":420},\"datePublished\":\"2022-09-27T22:11:37+00:00\",\"dateModified\":\"2024-06-13T02:56:30+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/intune-proactive-remediation-to-uninstall-software#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/intune-proactive-remediation-to-uninstall-software#webpage\"},\"articleSection\":\"Research, intune, proactive remediation, silverlight, uninstall\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/intune-proactive-remediation-to-uninstall-software#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"position\":2,\"name\":\"Research\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/intune-proactive-remediation-to-uninstall-software#listItem\",\"name\":\"Intune proactive remediation to Uninstall Software\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/intune-proactive-remediation-to-uninstall-software#listItem\",\"position\":3,\"name\":\"Intune proactive remediation to Uninstall Software\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\",\"name\":\"Welcome to Pariswells.com\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris\",\"name\":\"paris\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/intune-proactive-remediation-to-uninstall-software#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"paris\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/intune-proactive-remediation-to-uninstall-software#webpage\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/intune-proactive-remediation-to-uninstall-software\",\"name\":\"Intune proactive remediation to Uninstall Software | Welcome to Pariswells.com\",\"description\":\"Remotely Uninstall Invoke-Command -Computername $Computers {Get-Package -Name \\\"*SilverLight*\\\" | Uninstall-Package} Locally Uninstall Get-Package -Name \\\"*SilverLight*\\\" | Uninstall-Package Location ( Make sure you are licensed to use ) Detect $SoftwareName = \\\"*Silverlight*\\\" $ItemProperties = Get-ItemProperty \\\"HKLM:\\\\SOFTWARE\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\*\\\" | Where Displayname -like \\\"*$SoftwareName*\\\" $ItemProperties32 = Get-ItemProperty \\\"HKLM:\\\\SOFTWARE\\\\WOW6432Node\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Uninstall\\\\*\\\" | Where Displayname -like \\\"*$SoftwareName*\\\" if ($ItemProperties -Or $ItemProperties32) { Write-Host\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/intune-proactive-remediation-to-uninstall-software#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"datePublished\":\"2022-09-27T22:11:37+00:00\",\"dateModified\":\"2024-06-13T02:56:30+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\",\"name\":\"Welcome to Pariswells.com\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Intune proactive remediation to Uninstall Software | Welcome to Pariswells.com","description":"Remotely Uninstall Invoke-Command -Computername $Computers {Get-Package -Name \"*SilverLight*\" | Uninstall-Package} Locally Uninstall Get-Package -Name \"*SilverLight*\" | Uninstall-Package Location ( Make sure you are licensed to use ) Detect $SoftwareName = \"*Silverlight*\" $ItemProperties = Get-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*\" | Where Displayname -like \"*$SoftwareName*\" $ItemProperties32 = Get-ItemProperty \"HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*\" | Where Displayname -like \"*$SoftwareName*\" if ($ItemProperties -Or $ItemProperties32) { Write-Host","canonical_url":"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediation-to-uninstall-software","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediation-to-uninstall-software#article","name":"Intune proactive remediation to Uninstall Software | Welcome to Pariswells.com","headline":"Intune proactive remediation to Uninstall Software","author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/pariswells.com\/blog\/wp-content\/uploads\/2022\/09\/img_633374f40d9b5.png","@id":"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediation-to-uninstall-software\/#articleImage","width":502,"height":420},"datePublished":"2022-09-27T22:11:37+00:00","dateModified":"2024-06-13T02:56:30+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediation-to-uninstall-software#webpage"},"isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediation-to-uninstall-software#webpage"},"articleSection":"Research, intune, proactive remediation, silverlight, uninstall"},{"@type":"BreadcrumbList","@id":"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediation-to-uninstall-software#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/pariswells.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","position":2,"name":"Research","item":"https:\/\/pariswells.com\/blog\/category\/research","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediation-to-uninstall-software#listItem","name":"Intune proactive remediation to Uninstall Software"},"previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediation-to-uninstall-software#listItem","position":3,"name":"Intune proactive remediation to Uninstall Software","previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}}]},{"@type":"Organization","@id":"https:\/\/pariswells.com\/blog\/#organization","name":"Welcome to Pariswells.com","url":"https:\/\/pariswells.com\/blog\/"},{"@type":"Person","@id":"https:\/\/pariswells.com\/blog\/author\/paris#author","url":"https:\/\/pariswells.com\/blog\/author\/paris","name":"paris","image":{"@type":"ImageObject","@id":"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediation-to-uninstall-software#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g","width":96,"height":96,"caption":"paris"}},{"@type":"WebPage","@id":"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediation-to-uninstall-software#webpage","url":"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediation-to-uninstall-software","name":"Intune proactive remediation to Uninstall Software | Welcome to Pariswells.com","description":"Remotely Uninstall Invoke-Command -Computername $Computers {Get-Package -Name \"*SilverLight*\" | Uninstall-Package} Locally Uninstall Get-Package -Name \"*SilverLight*\" | Uninstall-Package Location ( Make sure you are licensed to use ) Detect $SoftwareName = \"*Silverlight*\" $ItemProperties = Get-ItemProperty \"HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*\" | Where Displayname -like \"*$SoftwareName*\" $ItemProperties32 = Get-ItemProperty \"HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*\" | Where Displayname -like \"*$SoftwareName*\" if ($ItemProperties -Or $ItemProperties32) { Write-Host","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediation-to-uninstall-software#breadcrumblist"},"author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"creator":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"datePublished":"2022-09-27T22:11:37+00:00","dateModified":"2024-06-13T02:56:30+00:00"},{"@type":"WebSite","@id":"https:\/\/pariswells.com\/blog\/#website","url":"https:\/\/pariswells.com\/blog\/","name":"Welcome to Pariswells.com","inLanguage":"en-US","publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Welcome to Pariswells.com |","og:type":"article","og:title":"Intune proactive remediation to Uninstall Software | Welcome to Pariswells.com","og:description":"Remotely Uninstall Invoke-Command -Computername $Computers {Get-Package -Name &quot;*SilverLight*&quot; | Uninstall-Package} Locally Uninstall Get-Package -Name &quot;*SilverLight*&quot; | Uninstall-Package Location ( Make sure you are licensed to use ) Detect $SoftwareName = &quot;*Silverlight*&quot; $ItemProperties = Get-ItemProperty &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*&quot; | Where Displayname -like &quot;*$SoftwareName*&quot; $ItemProperties32 = Get-ItemProperty &quot;HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*&quot; | Where Displayname -like &quot;*$SoftwareName*&quot; if ($ItemProperties -Or $ItemProperties32) { Write-Host","og:url":"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediation-to-uninstall-software","article:published_time":"2022-09-27T22:11:37+00:00","article:modified_time":"2024-06-13T02:56:30+00:00","twitter:card":"summary","twitter:title":"Intune proactive remediation to Uninstall Software | Welcome to Pariswells.com","twitter:description":"Remotely Uninstall Invoke-Command -Computername $Computers {Get-Package -Name &quot;*SilverLight*&quot; | Uninstall-Package} Locally Uninstall Get-Package -Name &quot;*SilverLight*&quot; | Uninstall-Package Location ( Make sure you are licensed to use ) Detect $SoftwareName = &quot;*Silverlight*&quot; $ItemProperties = Get-ItemProperty &quot;HKLM:\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*&quot; | Where Displayname -like &quot;*$SoftwareName*&quot; $ItemProperties32 = Get-ItemProperty &quot;HKLM:\\SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\*&quot; | Where Displayname -like &quot;*$SoftwareName*&quot; if ($ItemProperties -Or $ItemProperties32) { Write-Host"},"aioseo_meta_data":{"post_id":"6199","title":null,"description":null,"keywords":null,"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-09-27 22:07:51","updated":"2024-06-13 02:58:32","primary_term":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\/category\/research\" title=\"Research\">Research<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tIntune proactive remediation to Uninstall Software\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/pariswells.com\/blog"},{"label":"Research","link":"https:\/\/pariswells.com\/blog\/category\/research"},{"label":"Intune proactive remediation to Uninstall Software","link":"https:\/\/pariswells.com\/blog\/research\/intune-proactive-remediation-to-uninstall-software"}],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=6199"}],"version-history":[{"count":12,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6199\/revisions"}],"predecessor-version":[{"id":7991,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/6199\/revisions\/7991"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=6199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=6199"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=6199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}