PSEXEC is a remote procedure execution tool written by Mark Russinovich at Microsoft and available for download at https://docs.microsoft.com/en-us/sysinternals/downloads/psexec.
To use PSEXEC you need to open ports 135 (TCP) and 445 (TCP) on the target computer.
- Enable the ports in the security group
- Open the ports inbound in the server’s firewall
You also need to have the IPC$ and ADMIN$ shares enabled. To test the availability of the IPC$ and ADMIN$ shares
- Open a command prompt on the target computer, and use its IP address in the test
net use \\COMPUTER_IP\ipc$ /user:ADMIN_USER_NAME "ADMIN_USER_PASSWORD"
You should get the message:
The command completed successfully.