13 May 2015

solution

  1. download PsTools use this link

  2. unzip PsTools.zip to a folder

  3. add path/to/PsTools to path

  4. 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>
    
  5. disable firewall

         C:\Windows\system32> netsh firewall set opmode enable
    
  6. enable firewall

         C:\Windows\system32> netsh firewall set opmode disable
    
  7. exit remote cmd

         C:\Windows\system32> exit
         cmd exited on 192.168.100.100 with error code 0.
         E:\>
    


blog comments powered by Disqus