As some might know the struggle of removing the Netlock RMM Agent/Client from their computers i got the solution in full.
Im starting to wonder what the actual uninstaller of the agent really does to the system as it doesn't touch:
- Does not remove the services.
- Does not remove the scheduled tasks.
- The installation files ( C:\Program Files\Netlock* ) and ( C:\ProgramData\Netlock* ).
- Does not remove the registry entries.
How ever, the solution is listed below which does the complete thing that the uninstaller should be doing:
Get-Service | Where-Object { $_.DisplayName -like "*Netlock*" } | ForEach-Object {
Stop-Service -Name $_.Name -Force
sc.exe delete $_.Name
}
Get-ScheduledTask | Where-Object { $_.TaskName -like "*Netlock*" } | Unregister-ScheduledTask -Confirm:$false
Remove-Item "C:\Program Files\Netlock*" -Recurse -Force
Remove-Item "C:\ProgramData\Netlock*" -Recurse -Force
Remove-Item -Path "HKLM:\SYSTEM\CurrentControlSet\Services\Netlock*" -Force
Remove-Item -Path "HKLM:\Software\Netlock*" -Recurse -Force