Thursday, October 4, 2012

Remote shutdown and reboot computer window

1. Login kết nối với computer trước
\\17.18.120.230
2. mở command line dùng lệnh

shutdown /m \\17.18.120.230 /r /f



Logofff windows từ xa

C:\Users\Desktop\PSTools>qwinsta /server:10.151.120.226
 SESSIONNAME       USERNAME                 ID  STATE   TYPE        DEVICE
 console                                     0  Conn    wdcon
 rdp-tcp                                 65536  Listen  rdpwd
 rdp-tcp#3         tt4_trafic                1  Active  rdpwd
 rdp-tcp#4         Administrator             2  Active  rdpwd


C:\Users\Desktop\PSTools>logoff 2 /server:10.151.120.226

C:\Users\Desktop\PSTools>qwinsta /server:10.151.120.226
 SESSIONNAME       USERNAME                 ID  STATE   TYPE        DEVICE
 console                                     0  Conn    wdcon
 rdp-tcp                                 65536  Listen  rdpwd
 rdp-tcp#3         tt4_trafic                1  Active  rdpwd

======================
Hướng dẫn dùng service PsExec thực hiện command line từ xa 

C:\Users\Desktop\PSTools>PsExec.exe \\10.151.120.226 -u domain\username -p
password1 cmd


PsExec v2.11 - Execute processes remotely
Copyright (C) 2001-2014 Mark Russinovich
Sysinternals - www.sysinternals.com


Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.

C:\WINDOWS\system32>exit
cmd exited on 10.151.120.226 with error code 0.

C:\Users\Desktop\PSTools>PsExec.exe \\10.151.120.226 -u domain\username -p
password1
ipconfig /all


Ethernet adapter Network Bridge:

   Connection-specific DNS Suffix  . :
   Description . . . . . . . . . . . : MAC Bridge Miniport
   Physical Address. . . . . . . . . : 02-18-8B-E5-DA-5A
   DHCP Enabled. . . . . . . . . . . : No
   IP Address. . . . . . . . . . . . : 10.151.120.226
   Subnet Mask . . . . . . . . . . . : 255.255.255.192
   Default Gateway . . . . . . . . . : 10.151.120.193
   DNS Servers . . . . . . . . . . . : 10.151.120.206
                                       10.151.120.207
ipconfig exited on 10.151.120.226 with error code 0.


No comments: