Please use the procedure to remove “Kaspersky Endpoint Security 10” and “Kaspersky Security Center Agent”
If you have configured your Kaspersky Endpoint Security with a “username” & “password”.Provide it in the script
For Example
username=“abcde”
password=“ghijk”
Note:
Please run the script as System User
Refer the below link
https://scripts.comodo.com/frontend/web/topic/remove-kaspersky-endpoint-security-10-and-kaspersky-security-center-agent