Solved

Skype Removal via WMIC

Posted on 2015-01-27
5
748 Views
Last Modified: 2015-01-27
Hi, I am trying to remove previous versions of Skype via wmic,  but it always returns no instances found even though Skype is installed.

wmic product where "name like 'SkypeT 7%'" call uninstall /nointeractive
wmic product where "name like 'SkypeT 6%'" call uninstall /nointeractive

I check the product name via wmic product get name
and get value SkypeT 6.18
I also tried wmic product where name="Skype 6.18" call uninstall and it also returns no instance
I ran cmd via administrator

Any idea?
0
Comment
Question by:kwatt562
  • 3
  • 2
5 Comments
 
LVL 84

Expert Comment

by:oBdA
ID: 40572880
I guess you're trying that inside a batch script? Double up on the wildcard percent sign (and is the T at the end of Skype really there?):
wmic product where "name like 'SkypeT 6%%'" call uninstall /nointeractive

Open in new window

0
 

Author Comment

by:kwatt562
ID: 40572953
Thanks, I tried with double wildcard, but get the same result. Its named SkypeT 6.18 when I scan products via wmic
0
 
LVL 84

Accepted Solution

by:
oBdA earned 500 total points
ID: 40572997
Can't reproduce that here (at least with some other software, as I don't have Skype installed).
Are you testing this directly in a command prompt or in a batch file? The additional percent sign would be required in a batch to escape the real one.
Do any of the following work:
wmic product where "name like 'SkypeT 6%%'" get name
wmic product where "name like 'Skype%%'" get name
wmic product where "name like 'SkypeT 6.18'" get name

Open in new window

0
 
LVL 84

Expert Comment

by:oBdA
ID: 40573016
On a side note: did you copy and paste the "SkypeT"?
Could it be that the "T" is not a capital T, but a (r) or (tm) symbol or some such, that got garbled in the output because of the code page?
Does the "T" look like a T when you paste it into a Word document or Notepad and add a "real" T next to it?
How does the name look in Control Panel > Programs and Features?
0
 

Author Comment

by:kwatt562
ID: 40573157
thanks for the help
wmic product where "name like 'Skype%%'" get name - returned value skypeT 6.18
so wmic product where "name like 'Skype%%'" call uninstall /nointeractive uninstalled version 6.18 and I did a test with version 7 which also worked.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

On some Windows 7 (SP1) computers, Windows Update becomes super slow even the computer is reasonably fast.  There's one solution that seemed to have worked well for me (after trying a few other suggested solutions).
A quick Powershell script I wrote to find old program installations and check versions of a specific file across the network.
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum editing capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question