I need a script that does the following:
Query a session Id for a specific username
then log off that specific user.
Any ideas.
3 Spice ups
Need a little more info but assuming you have at least Windows 7 and 2008R2, just do this via GPO:
http://community.spiceworks.com/how_to/show/4975-force-user-log-off-rds-server-2008
1 Spice up
Without knowing a little more, it will be difficult to provide answers.
http://community.spiceworks.com/topic/254525-asking-better-questions
1 Spice up
Sorry about that. Wrote that last one quick.
I have a Citrix environment with Server 2003. We have a process that automatically logs a user on runs a process and is supposed to log the user off. All of this is automated. We are having problems with the log off process. To make this work for the next two months while we get our new Citrix site going, I am looking for a script that i can schedule that will do the above things for me.
Query the sessions ID for a particular Username:
Log off that specific session ID.
Thanks
1 Spice up
If you’re planning to run it via scheduler, why do you have to log a user on? The Task Scheduler should allow you to specify which user account you wish to run the task under, no? From that, you can call your script to run the app (or kick of process) and then follow that with a shutdown /l command.
1 Spice up