Remotely Logoff User
Use it when you want to logoff a remote admin because you hate using the Windows Terminal Services Console or because sometimes it crashes.
C:\psexec.exe \\[IPaddress_or_ComputerName] -u DomainName\UserName cmd.exe
PsExec v1.94 - Execute processes remotely
Copyright (C) 2001-2008 Mark Russinovich
Sysinternals - www.sysinternals.com
Password: ********
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.
C:\WINDOWS\system32>query session
SESSIONNAME USERNAME ID STATE TYPE DEVICE
>console Administrator 0 Active wdcon
rdp-tcp 65536 Listen rdpwd
rdp-tcp#4 User1 1 Active rdpwd
rdp-tcp#5 User2 2 Active rdpwd
C:\WINDOWS\system32>logoff 1
C:\WINDOWS\system32>logoff 2
Hiç yorum yok:
Yorum Gönder