D
D
Denis Davydenko2021-05-24 15:47:25
cmd/bat
Denis Davydenko, 2021-05-24 15:47:25

How to execute command in .bat via psexec64 on remote PC?

Good afternoon.

Let's say I need to change the time on a PC on the local network through psexec.
I can do this by entering 2 commands in sequence:

PsExec64.exe \\PCNAME cmd.exe
time 09:00:00


Is it possible to somehow combine them into one line to do this by simply running .bat?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2021-05-24
@GooseTheDestroyer

PsExec64.exe \\PCNAME cmd.exe /c time 09:00:00

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question