xCmd utility
The xCmd utility allows you to execute commands on remote Windows-based systems without installing any client software. Using xCmd you can:
- Execute multiple commands on the remote computer.
- Execute internal commands such as dir and so on directly.
The xCmd utility replaced the rctrlx utility, because xCmd has the ability to execute multiple commands simultaneously on the target computer.
The following adapters use the embedded xCmd utility to execute commands on remote Windows-based systems:
- Windows Command
- PowerShell
- Active Directory
Using xCmd
The xCmd utility operates as follows:
- xCmd connects to the ADMIN$ share ( a preexisting share used by the Windows operating system) and the IPC$ share on the target computer.
- The utility copies an embedded service executable file to the directory mapped to the ADMIN$ share.
- The utility then uses a Windows API to install the executable file mentioned in step 2 as a service and starts this service on the remote computer.
- The utility makes a connection to the service over a set of named pipes.
- The utility uses a custom network protocol to send a message to the service to execute the target command by routing the standard output and error streams over the named pipe connections.
- The utility stops the service, uninstalls it, and then deletes the file from the remote computer.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*