Log off Current Remote User
Posted: 21 Sep 2010 07:03
I am trying to add a function to a script that will log off the remote user on a computer. I am able to shutdown a remote computer with the code:
shutdown -f -s -t 01 -m \\%computername%
The Shutdown command will log off the user with a -l switch but cannot be used remotely. Anyone have any thoughts on how I can do this?
shutdown -f -s -t 01 -m \\%computername%
The Shutdown command will log off the user with a -l switch but cannot be used remotely. Anyone have any thoughts on how I can do this?