I would like to remotely logoff a user on another computer. I tried to use psexec and use shutdown -l, but command switch this does not work with psexec. Is there a way I can do this within vb on a remote computer? I know I can use:
'setup the class to reboot the computer
Private Declare Function ExitWindowsEx Lib "user32.dll" ( _
ByVal uFlags As Long, _
ByVal dwReserved As Long) As Long
Private Const EWX_FORCE = 4 'const for a forced logoff
to log a user off a local machine, but can I run this on a remote XP machine? If so how?