Skip to main content
All CollectionsUsing Guardz
Guardz Device Agent Uninstallation Instructions
Guardz Device Agent Uninstallation Instructions

This article describes the steps you need to take in order to remove/uninstall the Guardz device agent from your device.

Updated over a week ago

Removal of the agent from a Windows device:

  • Open PowerShell with administrator privileges and run the following commands:

  • sc.exe stop "Guardz Agent"

  • sc.exe delete "Guardz Agent"

  • Open Settings and navigate to Apps > Installed Apps and delete the Guardz Agent app.

  • Open File Explorer and delete the following directories:

  • %SystemRoot%\System32\config\systemprofile\AppData\Roaming\com.guardz

  • %ProgramData%\com.guardz

Removal of the agent from a Mac device

  • Open Terminal and run the following commands:

  • sudo launchctl bootout system/com.guardz.daemon

  • sudo rm -r /var/root/Library/Application\ Support/com.guardz

  • sudo rm -r /var/root/Library/Logs/com.guardz

  • sudo rm -r /Library/Application\ Support/com.guardz

  • Open Finder and navigate to the /Applications folder.

  • Right-click the Guardz Agent app and select Move to Trash.

You can use the following one-liner script as well:

โ€‹Mac script - ends with .sh

Windows script - ends with ps1

Make sure you run them for every machine that has the installed Guardz agents with sudo (or as root).

FAQs
โ€‹

Q: Is there a way to run a CLI command on the endpoint to check the Guardz agent version?

A: Yes, you can use a PowerShell command to determine the version of the Guardz agent installed on a Windows endpoint.


Command:

Get-WmiObject -Class Win32_Product | Where-Object { $_.Name -eq "Guardz Agent" }

Steps:

  1. Open a PowerShell window with administrative privileges.

  2. Copy and paste the command above.

  3. Press Enter.

  4. The output will display details about the Guardz agent, including its version.

Did this answer your question?