Looking for a solution to give the user the power to kill their RDP session to a remote app.<\/p>\n
Advertisement
The application gets stuck and needs to be killed except I have multiple users on the same server under the same user name. So if possible needs to be by session ID.<\/p>\n
Advertisement
When the application freezes the user would click a batch file or powershell script to enable the kill of the session ID they are currently using.<\/p>\n
Note I can not change user names and can not change the Active directory to auto disconnect after a certain time as this is a active POS.<\/p>\n
Any suggestions?<\/p>","upvoteCount":6,"answerCount":18,"datePublished":"2013-05-20T15:06:39.000Z","author":{"@type":"Person","name":"soupman","url":"https://community.spiceworks.com/u/soupman"},"acceptedAnswer":{"@type":"Answer","text":"
Do you specify a program to launch at logon for that specific user? We do not run POS, but we have an app that uses the same AD account, and it launches a program at logon, and we ran into a similar need. I ended up doing this because even on the disconnect policy it never worked quite right. This runs in the background and when the user clicks the “x” or logs off this ensure the session is immediately disconnected. This was set under the User Configuration for RDS Start a Program on connection.<\/p>\n
cd C: \ncd c:\\Program Files\\Application \nstart /wait app.exe \nlogoff<\/p>","upvoteCount":1,"datePublished":"2013-05-20T15:20:57.000Z","url":"https://community.spiceworks.com/t/rdp-session-killed-by-user/213941/4","author":{"@type":"Person","name":"seanmdit","url":"https://community.spiceworks.com/u/seanmdit"}},"suggestedAnswer":[{"@type":"Answer","text":"
Looking for a solution to give the user the power to kill their RDP session to a remote app.<\/p>\n
The application gets stuck and needs to be killed except I have multiple users on the same server under the same user name. So if possible needs to be by session ID.<\/p>\n
When the application freezes the user would click a batch file or powershell script to enable the kill of the session ID they are currently using.<\/p>\n
Note I can not change user names and can not change the Active directory to auto disconnect after a certain time as this is a active POS.<\/p>\n
Any suggestions?<\/p>","upvoteCount":6,"datePublished":"2013-05-20T15:06:39.000Z","url":"https://community.spiceworks.com/t/rdp-session-killed-by-user/213941/1","author":{"@type":"Person","name":"soupman","url":"https://community.spiceworks.com/u/soupman"}},{"@type":"Answer","text":"
Are you sure they are logging onto the same RDP server using the same username? I don’t think that is possible.<\/p>","upvoteCount":2,"datePublished":"2013-05-20T15:11:11.000Z","url":"https://community.spiceworks.com/t/rdp-session-killed-by-user/213941/2","author":{"@type":"Person","name":"ls-it","url":"https://community.spiceworks.com/u/ls-it"}},{"@type":"Answer","text":"
Ctrl+Alt+Delete kill the process.<\/p>","upvoteCount":1,"datePublished":"2013-05-20T15:15:32.000Z","url":"https://community.spiceworks.com/t/rdp-session-killed-by-user/213941/3","author":{"@type":"Person","name":"ls-it","url":"https://community.spiceworks.com/u/ls-it"}},{"@type":"Answer","text":"
I would have to agree with B.L. Generally you cannot have the same remote session going with the same username and multiple users. Does not generally work like that unless you are using a 3rd party remote software.<\/p>","upvoteCount":0,"datePublished":"2013-05-20T15:22:46.000Z","url":"https://community.spiceworks.com/t/rdp-session-killed-by-user/213941/5","author":{"@type":"Person","name":"doughnutdestroyer","url":"https://community.spiceworks.com/u/doughnutdestroyer"}},{"@type":"Answer","text":"
batch file → pskill<\/p>\n
but how you will ever know which PID matches which session since they all use the same user name is beyond me.<\/p>\n
I think that’s why you want to use separate users.<\/p>","upvoteCount":1,"datePublished":"2013-05-20T15:26:36.000Z","url":"https://community.spiceworks.com/t/rdp-session-killed-by-user/213941/6","author":{"@type":"Person","name":"galenwollenberg6576","url":"https://community.spiceworks.com/u/galenwollenberg6576"}},{"@type":"Answer","text":"
Seriously, do yourself a favor and make up a few extra usernames.<\/p>","upvoteCount":0,"datePublished":"2013-05-20T15:28:16.000Z","url":"https://community.spiceworks.com/t/rdp-session-killed-by-user/213941/7","author":{"@type":"Person","name":"doughnutdestroyer","url":"https://community.spiceworks.com/u/doughnutdestroyer"}},{"@type":"Answer","text":"
You’re saying that app gets stuck, but you want to kill the RDP session, instead of app’s process? Why?<\/p>\n