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

Notes

  • You must have administrative privileges to copy the xCmd utility and run it as a service on the remote computer.
  • Adapters such as Windows Command and PowerShell that use the xCmd utility work only on peers that are running on a Windows-based computer. Also, for these adapters, the remote host must be a Windows-based computer.

Using xCmd

The xCmd utility operates as follows:

  1. xCmd connects to the ADMIN$ share ( a preexisting share used by the Windows operating system) and the IPC$ share on the target computer.
  2. The utility copies an embedded service executable file to the directory mapped to the ADMIN$ share.
  3. 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.
  4. The utility makes a connection to the service over a set of named pipes.
  5. 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.
  6. The utility stops the service, uninstalls it, and then deletes the file from the remote computer.

Using xCmd in 64-bit

To use the xCmd utility in 64-bit image mode, you must set the OSARCH flag as 64 in the adapter (PowerShell, Windows Command Line).

Was this page helpful? Yes No Submitting... Thank you

Comments