Tuesday, March 19, 2013 5:09 PM
I am trying to remove 3 pieces of software by executing batch file from a customized 'Agent Task>Command Line' created under the 'Authoring' workspace.
I have already created various custom 'Agent Tasks' (using batch files) under the 'Authoring' workspace which display in the left hand 'Tasks' pane of the 'Computers' workspace. All of these can be executed by highlighting the computer of choice and selecting the task from the left hand pane.
I would like to remove these programs using the same method, however I cannot get a script to work.
I have tried using misexec to call the uninstaller from the GUID. I have also tried using WMIC to uninstall the software by product name.
The command I have used to test with 1 program is: WMIC product where "name='PhilipsDrivers' and version='4.01.0000'" call uninstall /nointeractive
This runs OK from a batch file if I run it directly on a workstation & direct from the command line.
Once it finishes, the Task Status window gives exit code: 3 (is that 'The system cannot find the path specified'?)
I created the task via, Agent Task> Command Line / Task Target 'Windows Computer' with parameter 'NetBIOS Computer Name'.
That is how i have created other tasks that execute OK.
Could anyone point out what I am missing here?
Many thanks in advance for any replies.
- Edited by R.Clarke Tuesday, March 19, 2013 5:11 PM Typo
Wednesday, March 20, 2013 1:43 PMModeratorHello Clarke,
I'm afraid this is not the proper way to uninstall a software package by design. When Essentials 2010 uninstalls software from managed computers, it uses the uninstall parameters that are specified in the Essentials 2010 software package. For your reference:
How to Uninstall Deployed Software in Essentials
TechNet Community Support
- Marked As Answer by Yog LiMicrosoft Contingent Staff, Moderator Tuesday, March 26, 2013 8:03 AM