Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Uninstall Application

Posted on September 5, 2014October 26, 2015 By David Kittell

First step is to get the application information

Get-WmiObject -Query "SELECT * FROM Win32_Product WHERE Name like '%Outlook%'"
Get-WmiObject -Class Win32_Product | Where-Object {     $_.Name -match "Outlook" }

Either option will display information similar to this

IdentifyingNumber : {90140000-001A-0409-0000-0000000FF1CE}
Name              : Microsoft Office Outlook MUI (English) 2010
Vendor            : Microsoft Corporation
Version           : 14.0.7015.1000
Caption           : Microsoft Office Outlook MUI (English) 2010

To uninstall this application can be done with either query but essentially is like this

$app = Get-WmiObject -Query "SELECT * FROM Win32_Product WHERE Name like '%Outlook%'"
$app.Uninstall()
$app = Get-WmiObject -Class Win32_Product | Where-Object {     $_.Name -match "Outlook" }
$app.Uninstall()
Originally Posted on September 5, 2014
Last Updated on October 26, 2015
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Code PowerShell

Post navigation

Previous post
Next post

Related Posts

Facebook Event List

Posted on December 19, 2013October 26, 2015

This is not my work (Mike Dalisay), simply posting as I found this code useful. After creating an app, we’ll have the following codes on our index.php file <style type=’text/css’> body{ font-family: "Proxima Nova Regular","Helvetica Neue",Arial,Helvetica,sans-serif; } .clearBoth{ clear: both; } .event{ background-color: #E3E3E3; margin: 0 0 5px 0; padding:…

Read More

Red Hat – LFTP File Upload

Posted on September 26, 2018

#!/bin/sh # LFTP.sh # # Created by David Kittell on 9/26/2018. # if ! rpm -qa | grep -qw lftp; then echo "Installing lftp" yum install lftp -y else echo "lftp is already installed" fi # lftp profile creation example lftp -c "bookmark add SiteName ftp://user:password@sitename.com/path" #lftp -c "bookmark add…

Read More

C# Get URL Details From Browser

Posted on March 15, 2014October 26, 2015

string sURL = ""; sURL += "Host: " + HttpContext.Current.Request.Url.Host + Environment.NewLine; sURL += "Host: " + HttpContext.Current.Request.Url.Authority + Environment.NewLine; sURL += "Path: " + HttpContext.Current.Request.Url.AbsolutePath + Environment.NewLine; sURL += "Application Path: " + HttpContext.Current.Request.ApplicationPath + Environment.NewLine; sURL += "URL: " + HttpContext.Current.Request.Url.AbsoluteUri + Environment.NewLine; sURL += "Path With Query:…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes