a bit quirky though :

1st step :

rcmd \\Server net sessions > logfile

2nd

Open Logfile , read line by line; find if first 2 chars are '\\', cut the machine name out of it
{edit} Make sure that you don't kick your own session [Big Grin] {/edit};
do rcmd \\Server net sessions \\MachineNameString /delete /y

[Eek!]

[ 09. October 2002, 13:46: Message edited by: jpols ]
_________________________