V
V
Victor Zuev2016-11-08 14:48:17
System administration
Victor Zuev, 2016-11-08 14:48:17

Disabling RDP user session after closing 1C?

Good afternoon, colleagues.
Task: with TSD we connect via RDP to windows 7 professional x64. It is necessary that a certain 1C infobase be automatically launched under a specific user, and explorer.exe (Windows Explorer) is turned off. After closing the 1C window - automatic termination of the user session.
What we have:
1. There is a connection
2. Removing the explorer.exe process
3. Launching 1C Enterprise with all the necessary parameters.
All this in one bat file:
@echo off
taskkill /f /IM explorer.exe
"C:\Program Files (x86)\1cv8\common\1cestart.exe" enterprise /S "192.168.201.80\wood_local" /N " 1cuser" /P "123" /RunModeOrdinaryApplication
The question is to wait for 1C to finish working and exit the user session (for example, shutdown /l), but
the start /WAIT <1C start line> command does not work correctly (probably due to quotes in the parameters).
In bat-files it is not strong. Google talks about Win Server 2003-2008 and RemoteApp, but it's just a workstation.
Tell me a solution?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Cool Admin, 2016-11-08
@ifaustrue

Why don't you use a terminal server user option specially designed for this case?
After closing 1C, the terminal will turn itself off.
If W7 does not have it in the user snap-in, look for it in the registry, it should definitely be there. And, better, use a special server edition of Windows if you have more than one terminal (and even if you have one too).

K
kolossradosskiy, 2016-11-08
@kolossradosskiy

1cestart.exe - универсальный стартер 1С. Он лишь запускает клиента, поэтому бессмысленно ждать окончания его работы. Батником своим запускайте сразу толстый клиент (1cv8.exe).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question