Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

SOLVED WMIC software uninstall file in use prompt bypass

stlien

Member
Messages
6
Reaction score
0
Points
1
Hi, I’m trying to uninstall Adobe products on a select group of user’s PCs using this script. I'm running the script on a collection in SCCM.

“wmic product where “name like ‘Adobe Acrobat Reader%’” call uninstall /nointeractive”

The script works, I’ve tried it (manually) on a few test PCs. However, while uninstalling, a box pops up that says “file in use” and lists open adobe files or Outlook. We’re trying to do this completely silent. Is there a way I can script out to “ignore” automatically, or execute completely without user intervention?

OR, if anyone has a good PowerShell script that will uninstall all versions of Adobe on a Windows 10 system, I'll gladly accept it. Thanks in advance
 

Forum statistics

Threads
7,196
Messages
28,082
Members
18,355
Latest member
mattjimf
Back
Top