Link to home
Start Free TrialLog in
Avatar of scripttron75
scripttron75

asked on

how logoff a user remotly

i am TS into a server and i have a admin user accoutn that is trying to log on to the server, i need to logof the user and i can not thru Terminal services manager, how can i do it while logged onto the server locally thru the command line.  the user that is logging in is on our domain.
Avatar of Bartender_1
Bartender_1
Flag of Canada image

You could use the shutdown command to reboot the system, effectively logging them off:

shutdown -r -m \\computername

Hope this helps!

:o)

Bartender_1
You can't log a user off his/her workstation. TS manager only allows you to log the user's terminal session off.
Avatar of scripttron75
scripttron75

ASKER

something else, i can not shutdown this server come on i thought this place had higher knowledge
ASKER CERTIFIED SOLUTION
Avatar of Bartender_1
Bartender_1
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
i tried psshutdown -o it said it intiated but it did not kick the user off
This could be due to an open document waiting for the "Do you want to save?" to be answered.
If so, then it you'd have to force the system to close open applications.
how do i do that
use the -f switch in conjunction with the -o switch.