I have a .bat file that I am allowed to run on a Windows Server when connected via Remote Desktop. I am however not able to run that .bat file when connected via ssh client. I am using the same user/credentials for both connections.
The error message says:
coopr@WIN-3PI2FA523CJA89 C:\Users\Coopr\Server\Startup>StopCoopR.bat
ERROR: Access denied
The Script does the following:
@echo off
cd C:\Users\Coopr\Server\
taskkill /IM CoopR.exe /F
Might it be that taskkill has some special behaviour when it comes to remote access?