S
S
sHARek2019-12-04 16:13:59
cmd/bat
sHARek, 2019-12-04 16:13:59

How to pass "text/string/data" further?

Decided to play around with PSEXEC.
I run this command:

psexec \\192.168.1.1 cmd /k "cd C:\Program Files (x86)\Kaspersky Lab\Kaspersky Endpoint Security for Windows"

I get here:
5de799d3b3420497741009.jpeg
How to pass further to the console a string like "avp.com license /ADD 1111-11111-11111-11111 ????
5de79aece8f88629708876.jpeg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zhaar, 2019-12-05
@zhaar

Can't run the command immediately without cd?
psexec \\192.168.1.1 cmd /k "C:\Program Files (x86)\Kaspersky Lab\Kaspersky Endpoint Security for Windows\avp.com license /ADD 1111-11111-11111-11111"
psexec \\192.168.1.1 "C :\Program Files (x86)\Kaspersky Lab\Kaspersky Endpoint Security for Windows\avp.com license /ADD 1111-11111-11111-11111"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question