mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-26 13:53:05 +00:00
Move pages under tldr, lint run.sh, update docs
This commit is contained in:
30
tldr/windows/psexec
Normal file
30
tldr/windows/psexec
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, windows]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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 oile.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`
|
||||
Reference in New Issue
Block a user