This article describes how to remove the Pendo Launcher on a Windows Active Directory (AD) Network. The removal process for domain admins is as follows:
- Create the uninstall script.
- Open the Group Policy Management console.
- Remove the installation Group Policy Object (GPO).
- Use AD to deploy the uninstall script.
- Verify that policies have been correctly removed.
Step 1. Create the uninstall script
Create a PowerShell script called “PendoUninstallInstall.ps1” with the following contents and store it in a location that can be accessed from your endpoints.
# Remove Metadata file that may or may not exist
if(Test-Path "C:\temp\PendoMetadata.txt") {
Remove-Item -Path "C:\temp\PendoMetadata.txt"
}
# Remove metadata to registry
$registryPath = "HKLM:\Software\Policies\Google\Chrome\3rdparty\extensions\epnhoepnmfjdbjjfanpjklemanhkjgil\policy"
Remove-ItemProperty -Path $registryPath -Name "APIKey"
Remove-ItemProperty -Path $registryPath -Name "visitor"
Step 2. Open the Group Policy Management console
- Right-click the Windows icon in the bottom-left corner of the screen.
- Select Run from the menu.
- Enter "GPMC.msc" into the Open field.
- Select OK.
Step 3. Remove the installation GPO
Delete the GPO that was created during your installation. Find and right-click PendoAdoptInstall under Group Policy Objects and select Delete from the menu.
Step 4. Use AD to deploy the uninstall script
Create a new GPO for "PendoUninstall". This GPO will be a Computer Configuration Startup script.
- Right-click Group Policy Object from the left-side navigation and select New from the menu.
- Give the new GPO a meaningful name, such as "PendoUninstall".
- Right-click on the new empty policy and select Edit.
- Navigate to Policies > Window Settings > Scripts (Startup/Shutdown).
- Open the Startup properties and select Add... to add a new script.
- Set the script name to "powershell.exe".
- Set the script parameters. Set the non-interactive flag, the execution policy to Bypass, and the file location to the uninstall PowerShell script from your network. For example:
-nonInteractive -executionPolicy Bypass -file \\MARVEL.local\NETLOGON\PendoUninstallInstall.ps1
- Apply the new policy to the desired endpoints.
Step 5. Verify that policies have been correctly removed
- Sign in to a targeted endpoint.
- Open a PowerShell command line.
- Run
gpresult /r
. This returns a list of GPOs applied to the endpoint, similar to the following: