The below script will be used to kill all the sessions except your session. If you are looking for specific process id then you can provide the pid value in the where clause as below Hope you enjoyed the post! Cheers Ramasankar Molleti MSDN:LinkedIn:Twitter