Solved

Skype Removal via WMIC

Posted on 2015-01-27
5
451 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 82

Expert Comment

by:oBdA
Comment Utility
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
Comment Utility
Thanks, I tried with double wildcard, but get the same result. Its named SkypeT 6.18 when I scan products via wmic
0
 
LVL 82

Accepted Solution

by:
oBdA earned 500 total points
Comment Utility
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 82

Expert Comment

by:oBdA
Comment Utility
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
Comment Utility
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
New Windows 7 Installations take days for Windows-Updates to show up and install. This can easily be fixed. I have finally decided to write an article because this seems to get asked several times a day lately. This Article and the Links apply to…
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

762 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now