1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 14:42:19 +02:00
tldr/pages/windows/psexec.md
Vedant Yadav 9538a12740
add-appxpackage: add Hindi translation; pages.*: remove locale from Microsoft links (#11286)
* add-appxpackage: add Hindi translation

* pages.*: remove locale from Microsoft links

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-10-26 23:59:28 +05:30

25 lines
745 B
Markdown

# psexec
> Execute a command-line process on a remote machine.
> This is an advanced command and it might potentially be dangerous.
> More information: <https://learn.microsoft.com/sysinternals/downloads/psexec>.
- Execute a command using `cmd` in a remote shell:
`psexec \\{{remote_host}} cmd`
- Execute a command on a remote host (pre-authenticated):
`psexec \\{{remote_host}} -u {{user_name}} -p {{password}}`
- Execute a command remotely and output the result to a file:
`psexec \\{{remote_host}} cmd /c {{command}} -an ^>{{path\to\file.txt}}`
- Execute a program to interact with users:
`psexec \\{{remote_host}} -d -i {{program_name}}`
- Display the IP configuration of the remote host:
`psexec \\{{remote_host}} ipconfig /all`