Users

All Posts (1)

avatar

(user deleted)

Disabled

Run remote script after connect and on disconnect

avatar
avatar
avatar
avatar
avatar

Hello everyone,

I have roughly the same problem. I wanted to run a batch script before logging out and before closing my session

for /f "skip=1 tokens=3" %%s in ('query user %USERNAME%') do (

%windir%\System32\tscon.exe %%s /dest:console

)

In order to allow my tests to work when another person runs the tests.

I want to do it via task scheduler but I'm having trouble.

All will be welcome.

Thank you beforehand.

1 - 1 of 1 items