Skip Ribbon Commands
Skip to main content

How do I manually remove the log files for DeploymentPro?

Last Update: 12/12/2016 9:19 AM
​​       

Notice: This Knowledge Base article pertains specifically to the new version of DeploymentPro that is in the MSPComplete portal, and not to the DeploymentPro for UserActivation product.

 

How do I manually remove the log files for DeploymentPro?

Answer:

 

The log files for DeploymentPro are stored in the following directory:  C:\Program Files (x86)\BitTitan\DeviceManagementAgent\log

These can be deleted by running the PowerShell script under Option 1, or manually, as directed in Option 2 below.

 

Option 1:

Download and run the following PowerShell script.

To run this PowerShell script, follow these steps:

  • Click on the link to the script here.
  • In the resulting pop-up window, click on the down arrow.
  • From the drop-down list, select Save As.
  • Save to your preferred download directory.
  • Right-click PowerShell, and then click Run as administrator.
  • Within PowerShell, change to the directory that contains the file DMACleanAndUpdateV4.ps1
  • Execute script by running .\DMA​CleanAndUpdateV4.ps1
    • ​Note: You may need to set the execution policy to Unrestricted before the script can be executed successfully. To do this, type Set-ExecutionPolicy -ExecutionPolicy Unrestricted into the PowerShell session.
  • Check the log directory (C:\Program Files (x86)\BitTitan\DeviceManagementAgent\log) to ensure that all files have been removed.​

 

Note: The PowerShell script will do the following:

  • Check for administrator privilege, and prompt for credentials to be entered (if the user account does not have admin privilege)
  • Stop the DMA service, and all Agent components and modules
  • Check for log files in the directory, and if they exist, then remove the log folders and files
  • Launch the update for DMA​ and restart the service

 

Option 2:

Manually delete the log files, using either Windows Explorer or the Command Console.

 

Command Console Instructions:

These can be manually deleted by using an account with elevated privileges

To run a command console window with elevated privileges, follow these steps:

  • Click Start, click All Programs, and then click Accessories.
  • Right-click Command prompt, and then click Run as administrator.
  • If the User Account Control dialog box appears, enter administrator credentials, and then click Continue.
  • Change to the directory listed above, and delete all of the files within this directory. Important: Care must be taken with this step, because you have elevated privileges. Before deleting any files, make sure that you have changed to the exact directory listed above.

 

Notes:

  • The steps above steps may vary, depending on the operating system that is in use.
  • More information on deleting files from the command console can be found in the TechNet article here.
  • More information on removing directories from the command console can be found in the TechNet article here.

 

Windows Explorer Instructions:

  • Information on deleting files using Windows Explorer can be found in the Office support article here.