Set args = Wscript.Arguments Set ppt = CreateObject("PowerPoint.Application") Set objPresentation = ppt.Presentations.Open(args.Item(0)) ForEach slide in objPresentation.Slides For x = slide.Shapes.Count To1Step-1 With slide.Shapes(x) If .Type = 16Then If .MediaType = -2Then .Delete EndIf EndIf EndWith Next Next objPresentation.Save ppt.Quit