How to use PDQ to uninstall Autodesk products

October 6, 2020 Ken Williams

Issue:

You would like to uninstall Autodesk products using a batch file with PDQ

Solution:

The following instructions explain how to uninstall products from a deployment using the deployment built-in “Uninstall.txt” file.

 

  1. Go to the location of the deployment and choose the “SMS_SCCM scripts” folder.

  1. Open the file <deployment name>_Uninstall.txt in Notepad or a similar text editor.

  1. First thing after you open the file in Notepad or a similar text editor, is to save the file as ANSI and rename from .txt to .bat
  2. Choose “File”, the choose “Save As…”

  1. Go to the directory that you will save the batch file to. Rename the .txt to .bat next to “File name:” and from the “Save as type” choose “All Files (*.*)

          

  1. *This next step is very important* - Next to the “Save” button is “Encoding:”.  From the “Encoding” drop-down choose “ANSI” and then “Save”.

Note that ANSI encoding is required to create an executable batch file

  1. Open the created batch file, and enable the uninstallation commands by removing the "::" characters at the beginning of the "::call :funcUninstall" command line for each product that you want to uninstall. For “Manual uninstallation only” you will need to use “Add and Remove programs”

  1. After removing the “::” characters at the beginning of the "::call :funcUninstall" command line for each product that you want to uninstall, Click “File” at the top and choose “Save”