strComputer = InputBox("Enter Machine Name")
strApplicationName = "Configuration Manager Client"
Set wshShell = WScript.CreateObject("WScr
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=imper
Set colSoftware = objWMIService.ExecQuery ("Select * From Win32_Product where Name = '" & strApplicationName & "'")
For Each objSoftware in colSoftware
If objSoftware.Name = strApplicationName Then
ApplicationFound = True
MsgBox "Removing The " & strApplicationName & " From " & UCase(strComputer)
objSoftware.Uninstall()
MsgBox "Done"
End If
Next
If ApplicationFound <> True Then
MsgBox strApplicationName & " Is Not Installed On " & UCase(strComputer)
End If