Please try to removing the Kaspersky by WMIC.
Tpye "product get name" to get the name of the installed Kaspersky.
Then use "product where name=”name of program” call uninstall" to remove the Kaspersky.
Here is a good article about how to use WMIC to uninstall the packages on Windows.
If it still doesn't work, please check if Kaspersky has been removed successfully. And also, please check if the Windows firewall has been modified. If yes, just use PowerShell command to add an inbound rule to allow TCP 3389.