-1

How do we execute a command with arguments in a different machine using the PSEXEC command. The below command is not working

start "" psexec \%serverIP% "c:\Windows\Microsoft.NET\Framework64\v2.0.50727\Ldr64.exe" SETWOW -u administrator -p Helloworld /accepteula

Vijay Nag
  • 257
  • 2
  • 9
  • 21

1 Answers1

0

Just add another \ next to the other \. The simple syntax for psexec in your example is:

psexec \\hostname /accepteula -w C:\WorkingDirectory executable.exe -u accountName -p PassWord
Lizz
  • 1,442
  • 5
  • 25
  • 51