C:\Users>cd..
C:\>cd PSTools
C:\PSTools>psexec \\192.168.117.23 -u btv\administrator -p Btv@12345 msiexec /i "c:\Client.msi"
Force installation: psexec \\192.168.115.54 -u administrator -p P@$$w0rd msiexec -f /i "c:\Client.msi"
PsExec v2.2 - Execute processes remotely
Copyright (C) 2001-2016 Mark Russinovich
Sysinternals - www.sysinternals.com
First open the CMD & then go to the PSTools Installation folder as per below Image:
cd C:\
Then write CMD: cd PSTools
at this stage write the below CMD :
psexec \\192.168.115.154 -u btv\administrator -p Btv@12345 msiexec /i "c:\Client.msi"
In this above senario, psexec \\Ip address of the target Machine -U User Name -P Password
msiexec /i "executable Name with Location"
====================================================================================
Microsoft pstools solution
Install PSTOOLS Like in 192.168.1.2
Go to cmd
C:\Users\Administrator>d:
D:\>cd PSTools
D:\PSTools>psexec \\192.168.1.4 -u administrator -p 123 cmd.exe
NET USE \\192.168.1.5\d$ 123 /USER:administrator
NET USE \\192.168.1.4\d$ captain123 /USER:toss2
Copy \\192.168.1.4\e$\escanmsi\*.* \\192.168.1.5\d$\
C:\>xcopy \\computer1\source\*.* \\Computer2\target
psexec \\192.168.21.5 -u administrator -p 123
psexec \\192.168.21.5 -u user -p 123 msiexec /i "c:\cwn_client.msi"
"psexec \\marklap "c:\long name\app.exe".
E:\Pstoots\ psexec -u \\192.168.102.35 cbl\trendmicro -p Abc@1234 "D:\Update_32.exe"
--------------------------------------------------------------------------------------------------------------------------------------------
--------------------------------
E:\Pstools\ psexec \\192.168.22.20 -u cbl\trendmicro -p Abc@1234 "D:\Update_32.exe"
D:\Pstools\ psexec \\192.168.102.35 -u administrator -p Itm@2007 "D:\Update_32.exe"
E:\Pstools\ pseexec \\192.168.102.35 -u administrator -p Itm@2007 /c "D:\Update_32.exe"
E:\Pstools\ pseexec \\192.168.102.35 -u administrator -p Itm@2007 /c D:\Update_32.exe
E:\Pstools\ psexec -c -f \\192.168.102.35 -u administrator -p Itm@2007 "D:\Update_32.exe"
E:\Pstools\ psexec -c -f \\192.168.102.35 -u administrator -p Itm@2007 D:\Update_32.exe
E:\Pstools\ psexec \\192.168.102.35 -u administrator -p Itm@2007 -c D:\Update_32.exe
E:\Pstools\ psexec \\192.168.102.35 -u administrator -p Itm@2007 -c -f D:\Update_32.exe
pseexec \\192.168.22.130 -u cbl\trendmicro -p Abc@1234 "D:\Update_32.exe"
psexec \\192.168.22.130 -u administrator -p Itm@2007 "D:\Update_32.exe"
-c mean copy the file
-f mean if file already exists
http://www.windowsecurity.com/articles/PsExec-Nasty-Things-It-Can-Do.html
fro batch file:- @echo off
start E:\Pstools\ pseexec \\192.168.102.35 -u administrator -p Itm@2007 "D:\Update_32.exe"
psexec \\192.168.3.186 -u RND -p 123 /i "D:\av\eScan_Client.exe"
psexec \\192.168.3.186 -u RND -p 123 /i "D:\av\eScan_Client.exe"
psexec \\192.168.3.186 -u administrator -p 123 /i "D:\av\eScan_Client.exe"
paexec \\192.168.3.186 -u administrator -p 123 /i "D:\av\eScan_Client.exe"
paexec \\192.168.3.186 -u administrator -p 123 CMD.EXE
eScan Client MSI Download link
http://update1.mwti.net/download/escan/escan11/msi/cwn_client.msi