Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Skype Removal via WMIC

Posted on 2015-01-27
5
Medium Priority
?
1,362 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 85

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 85

Accepted Solution

by:
oBdA earned 2000 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 85

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
IF you are either unfamiliar with rootkits, or want to know more about them, read on ....
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.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
Suggested Courses
Course of the Month20 days, 20 hours left to enroll

810 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