Salut,
Pouvez-vous tester ce tool ? http://sourceforge.net/projects/ezlogoff/
C’est un logoff tout bête ou presque. Il utilise des filtres pour sélectionner les sessions à terminer. Mon premier besoin était de fermer les sessions, sur un serveur mutualisé, seulement si un process est utilisé dans la session.
voila la doc:
Terminates a RDP/ICA session - using WTS-API.
www.doctor-citrix.com
*** ACTION ***
Terminate session matching filter.
[:myprocess.exe] Kill specified process.
[:“the message to display”] Send message to matching filter.
You can use all action at the same time. Execution order:
Message -> TimeOut -> Kill -> LogOff
*** CONFIG ***
start in debug mode. Does nothing except report.
[:server name] The server to be queried (default is current).
[:20] Message timeout before kill/logoff, by default 20 second.
[:message title] The message box title (default is action).
[:message icon] The message box icon (default is Exclamation).
message icon:[Error|Question|Exclamation|Information]
*** FILTER ***
close all session except his own. Disable all other filter.
[:myprocess.exe] close all session hosting a process name.
[:sAMAcountName] Close session by user name.
[:session id] Close one session by it sesssion id.
Close all disconected session.
ezlogoff -s:myserver -p:notepad.exe -di --username:bill
Logoff all disconnected bill’s session on myserver with notepad started.