📜 ⬆️ ⬇️

Remote installation of applications

I offer a program for administrators - Rinstall (you can download it here ). It solves the following tasks:

  1. Remote administration
  2. Remote command execution
  3. Remote installation of applications

In fact, it is a convenient graphical shell for the psexec utility. The program window is divided into groups of fields and buttons corresponding to these three tasks:


')
  1. Host - IP address / name of the remote computer. The program constantly tries to connect to it and signals the result:
    • red - the computer was not found (perhaps a firewall is enabled on it);
    • yellow - the computer is found, but the credentials are not correct / not enough rights / on the remote PC is enabled "simple file sharing";
    • green - the computer is found, the credentials are correct, there are rights.

    Here you can specify a list of computers. To do this, double-click in the empty field - the default list name, list, appears. You can edit the list by double-clicking on it. There may be several lists, but they all must begin with the " @ " character.

  2. User - the name of the account to connect to the remote computer.
  3. Pass - account password for connecting to a remote computer.
    By double-clicking here, you can get the LAPS password - it will be copied to the clipboard.

During the connection / installation, the user data is searched through the credentials specified in the program settings, as well as specified in the User and Pass fields.

The program settings are read when it is started from the rinstall.ini file, which may be located in the "% PROGRAMFILES% \ Rinstall \" and "% USERPROFILE% \ Rinstall \" directories (the last priority).

1. Remote administration

  1. [Info] - get information about the system.
  2. [Soft] - get a list of installed software.
  3. [CM] - start the computer management console.
  4. [CMD] - launch remote shell.
  5. [CMRC] - connect through the Configuration Manager client.
  6. [RDP] - connect via remote desktop.
  7. [RA] - connect via remote assistant.
  8. [VNC] - connect via TightVNC (Ctr + Alt + Shift + T - toolbar).
  9. [Radmin] - connect via Radmin.
  10. [Resource] - open a remote resource.
  11. [Space] - see what space is taken on the disks of the remote computer.

2. Remote command execution

  1. [Command] is a command (the file to be started: * .exe, *. Bat, * .cmd, * .vbs, * .hta, etc.), executed on a remote computer. The default is the command to start the device manager.
  2. [Args] - Arguments (parameters / keys) of the command, if needed.
  3. [x] Copy - copy a command to a remote computer (you need to specify its full path on the local computer).
  4. [x] Hide - execute the command secretly.
  5. [x] Wait - wait for the command to complete.
  6. [Far] - run Far.
  7. [CMD] - run the shell.
  8. [Autoruns] - start the startup manager.
  9. [Geek Uninstaller] - run the uninstall manager.
  10. [GPUpdate] - update group policies (with the / FORCE key).
  11. [Reset] - terminate all psexec processes.
  12. [Renew] - update the IP address.
  13. [Reboot] - restart the computer.
  14. [RunAsLnk] - create a shortcut for an application running on behalf of a user with administrator rights (using the free version of RunAsSpc ).

Commands are executed on a remote computer with SYSTEM rights.

As teams, it is convenient to run portable applications (do not forget to put a tick Copy ). Here, however, there are incomprehensible problems with running SFX archives on remote computers with a 64-bit OS ...


3. Remote installation of applications

Applications ( Rel Path ) are placed on any network resource ( Net Path ). It is accessed by credentials ( Net User , Net Pass ). During the installation of the application on a remote computer, a network disk is connected ( Net Disk ).



Requirements for installing applications:

  1. The application must be in a separate folder and automatically installed.
  2. The application folder must be written in the Latin alphabet.
  3. Inside the application folder should be the file install.bat , which
    installs an application. It is also desirable that this file supports
    -u key (uninstall the application).

All these requirements are met by my silent installation packages .



Source: https://habr.com/ru/post/146416/


All Articles