solution
-
unzip
PsTools.zip
to a folder -
add
path/to/PsTools
to path -
connect to remote server’s
cmd
E:\> psexec \\192.168.100.100 -u user -p password cmd PsExec v2.11 - Execute processes remotely Copyright (C) 2001-2014 Mark Russinovich Sysinternals - www.sysinternals.com Starting PSEXESVC service on 192.168.100.100... Microsoft Windows [Version 6.1.7601] ... C:\Windows\system32>
-
disable
firewallC:\Windows\system32> netsh firewall set opmode enable
-
enable
firewallC:\Windows\system32> netsh firewall set opmode disable
-
exit remote
cmd
C:\Windows\system32> exit cmd exited on 192.168.100.100 with error code 0. E:\>