Hello,
How can i logoff a domain user when i close the intouch viewer session. We will log off The User from the Terminalserver when close the Intouch viewer Session. Is a way to scription this in HMi Maker ???
Hello,
How can i logoff a domain user when i close the intouch viewer session. We will log off The User from the Terminalserver when close the Intouch viewer Session. Is a way to scription this in HMi Maker ???
Hi Patrick,
You might want to look in to the Terminal Server feature RemoteApp.
It allows for isolating a program in a session, for example view.exe, the connecting user will be interfaced with this program only, and will not have access to any desktop or start menu.
When Window Viewer is closed, the session is logged out and the terminal server session is closed.
Executing a .bat file that logs out works, but not in the Shutdown script, it will not execute the StartApp() command needed when closing the program.
But you might work around it by creating your own close button.
Create a .bat file with the command to logoff
There might be some other creative solutions out there but these are the things I can think of that does not require to much effort.
So I posted a suggested answer, here is a -not so suggested answer-
InTouch has a big bag of old tricks and one of them is some legacy Tech support script function library..
Keep in mind that I can not imagine these are supported any longer (well, I know for a fact that it is not...), but you have to decide if it is a suitable solution in your case.
The script function library for InTouch 7.1 does have a function called WWDosCommand(), this will execute in the shut down script and log your session out.
You need to put the files in your InTouch installation directory (C:\Program Files (x86)\Wonderware\InTouch)
This will give you the above mentioned script functions and it works (at least in my test) using Version 2023 R2.
I want to stress that this is a more "hacky" solution and I would believe what you are looking for is the Terminal Server RemoteApp.
But at least I have provided the options I know about, even the ones that are on a need-to-know basis .
There are some more legacy options, but I'm afraid that the forum admins will close my account for posting them