fb
Homepage 5 How-to Articles 5 How to Manage Systems Remotely with Sysinternals PsExec Utility

How to Manage Systems Remotely with Sysinternals PsExec Utility

Manage remote endpoints, deploy software and patches with Action1 cloud RMM solution.

Sign up and use free on up to 50 endpoints with no functionality limits or expiration.



March 27, 2020

PsExec is a convenient command-line utility, with which you can run programs on remote Windows systems, redirecting data that the application displays to the local PC. Those when working with this utility, one gets the feeling that the application works locally on your PC. Sysinternals PsExec is a free utility and can be downloaded at https://download.sysinternals.com/files/PSTools.zip.

Using Sysinternals PsExec Utility on Remote Windows Systems

What are the environmental requirements for working with the PsExec utility? To run commands and processes remotely, it is necessary that the Server and Workstation services (Workstation and Server) function on the remote and local PC, and the standard Admin$ share must be available on the remote computer.

The convenience of PsExec is that it is easy to deploy on the network due to the ability to remotely install without having to install or configure anything on each. On a remote PC, PsExec runs as a Windows service with the same name.

PsExec is very convenient for performing many tasks related to the maintenance and administration of remote workstations and servers. You do not need to install it, you can simply copy it to the directory defined in the %path% variable (for example, C:/Windows/System32). When you run commands through PsExec on a remote PC, the PsExec service (executable file system32psexesvc.exe) will start, so for normal operation you will need domain administrator rights on the remote machine. The startup format and command line parameters of the Sysinternals PsExec utility are as follows:

Usage: psexec [computer[,computer2[,…] | @file][-u user [-p psswd]][-n s][-l][-s|-e][-x][-i [session]][-c [-f|-v]][-w directory][-d][-][-a n,n,… ] cmd [arguments]

In case the username and password are not specified, the rights of the current user are used:

psexec buh_pc1 cmd.exe

Sysinternals PsExec Utility. Username and password are not specified

psexec buh_pc1 -u admin -p P @ ssw0rd notepad.exe

remote system management action1

In principle, this utility can be considered as an alternative to telnet.

Attention: when using PsExec, be careful, because in principle the connection between the server and the PsExec client is not encrypted and data can be intercepted by a network sniffer.

If you need to run a certain command on several computers at the same time (for example, shutdown –f –r –t 0), then their names or ip-addresses must be separated by commas, or placed in a text file, which should be selected as one of their parameters PsExec Utilities

psexec buh_pc1, buh_pc2 shutdown –f –r –t 0

remote system management action1

psexec @c: list_of_buh_pc.txt shutdown –f –r –t 0

remote system management action1

When using the “-c” switch, the specified program will first be copied from your PC to the remote one, and then executed. The -i switch causes the specified command to start interactively. If, after running a certain command, PsExec does not wait for its end, but turns control (command line) for you, you need to specify the “-d” parameter:

psexec -d buh_pc1 chkdsk

remote system management action1

This command starts the disk verification process on the remote system, and the administrator can continue to enter commands.

Consider Using Action1 to Run Application with Command Line if:

  • You need to perform an action on multiple computers simultaneously.
  • You have remote employees with computers not connected to your corporate network.

Action1 RMM is a solution for cloud patch management, software deployment, remote desktop, IT asset inventory, and endpoint management.

Related Articles

How To Delete User Profiles Remotely with PowerShell

When a user logs onto the computer for the first time (not via the network to access shared folders or printers), Windows creates a user profile. Among its contents are the NTUSER.DAT file (user profile settings), user-specific folders (My Documents, Desktop, etc.),...

About Action1 RMM

Action1 RMM is a cloud-based IT solution for remote monitoring and management, patching, and remote support.

Start your free two-week trial of Action1, or use RMM tools for free forever on 50 endpoints with no functionality limitations!



0 Comments

Submit a Comment

Your email address will not be published.

cloud patch management solutions action1

MSP Solution

Centralize endpoint management and boost efficiency of IT service delivery.

automated server patch management action compliance

Patch Management

Identify and deploy missing OS and third-party software updates.

cloud software deployment tools windows

Software Deployment

Distribute software and updates across managed endpoints.

software distribution tools software inventory action1

IT Asset Inventory

Keep a detailed inventory and manage hardware and software assets.

web client remote desktop

Remote Desktop

Support users via seamless remote desktop connection.

web based rdp client

Unattended Access

Provide administrative support and manage remote devices.

automated patch management action1

Endpoint Management

Run PowerShell, custom scripts, reboot computers and restart services.

API integrations action1

RESTful API

Integrate Action1 RMM to your IT ecosystem.

computer inventory tool for compliance

Reports and Alerts

Conduct endpoint security audits with comprehensive reporting.