We have an AD account that is used through Citrix to run automated jobs in a Citrix session on a Server 2003 box. For some reason the “user” sometimes does not log off at night which prevents the automated software from running the next day.<\/p>\n
I need to know how to create a script that I can run in a scheduled task that will only log off the specified user. Any ideas?<\/p>","upvoteCount":1,"answerCount":6,"datePublished":"2014-01-15T13:18:23.000Z","author":{"@type":"Person","name":"brenthelm9895","url":"https://community.spiceworks.com/u/brenthelm9895"},"acceptedAnswer":{"@type":"Answer","text":"
You can logoff a session on Windows with the command “logoff ” but you have to know the specific session ID that you want to log off, you can find the session ID with the command “quser”, but I don’t know the syntax to create a batch script to automate it. Maybe someone over the Windows forum can help with the batch script.<\/p>\n
Cheers.<\/p>","upvoteCount":1,"datePublished":"2014-01-15T14:31:21.000Z","url":"https://community.spiceworks.com/t/log-off-a-specific-user-in-citrix-at-specified-time/268960/4","author":{"@type":"Person","name":"ralfarof","url":"https://community.spiceworks.com/u/ralfarof"}},"suggestedAnswer":[{"@type":"Answer","text":"
We have an AD account that is used through Citrix to run automated jobs in a Citrix session on a Server 2003 box. For some reason the “user” sometimes does not log off at night which prevents the automated software from running the next day.<\/p>\n
I need to know how to create a script that I can run in a scheduled task that will only log off the specified user. Any ideas?<\/p>","upvoteCount":1,"datePublished":"2014-01-15T13:18:23.000Z","url":"https://community.spiceworks.com/t/log-off-a-specific-user-in-citrix-at-specified-time/268960/1","author":{"@type":"Person","name":"brenthelm9895","url":"https://community.spiceworks.com/u/brenthelm9895"}},{"@type":"Answer","text":"
You can set a an Idle session timeout policy on the terminal services configuration console.<\/p>\n