tis-psexec icon

psexec

Silent install package for psexec

2.43-0

package           : tis-psexec
version           : 2.43-0
architecture      : all
section           : base
priority          : optional
name              : psexec
categories        : 
maintainer        : administrator
description       : PsExec, a free tool from the Sysinternals suite that lets you perform remote administration tasks from the command line
depends           : 
conflicts         : 
maturity          : PROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : 
installed_size    : 
impacted_process  : 
description_fr    : PsExec, un outil gratuit de la suite Sysinternals qui permet d'exécuter des tâches d'administration à distance à partir de la ligne de commande
description_pl    : 
description_de    : 
description_es    : 
description_pt    : 
description_it    : 
description_nl    : 
description_ru    : 
audit_schedule    : 
editor            : Sysinternals
keywords          : command tool
licence           : 
homepage          : https://learn.microsoft.com/fr-fr/sysinternals/downloads/psexec
package_uuid      : 3aba4d4f-a947-448b-b90f-19531c7c60ab
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10
max_os_version    : 
icon_sha256sum    : 9ccd55c246c5266669ff70a6e62c1e315666114c6d3f854071b6ff22fe48612b
signer            : Tranquil IT
signer_fingerprint: 8c5127a75392be9cc9afd0dbae1222a673072c308c14d88ab246e23832e8c6bb
signature_date    : 2025-07-18T14:00:39.000000
signed_attributes : package,version,architecture,section,priority,name,categories,maintainer,description,depends,conflicts,maturity,locale,target_os,min_wapt_version,sources,installed_size,impacted_process,description_fr,description_pl,description_de,description_es,description_pt,description_it,description_nl,description_ru,audit_schedule,editor,keywords,licence,homepage,package_uuid,valid_from,valid_until,forced_install_on,changelog,min_os_version,max_os_version,icon_sha256sum,signer,signer_fingerprint,signature_date,signed_attributes
signature         : Ss5c8+HBp7+aaAGrAE+Rs3TOYF12bqbeQtyxwb/fIvjxbjfuTdZO6+s4c5JDIw8mgkzkCcWuu0lJZXdQ38+N1hpdMEU/nxRXrijPHq+lWPGVpASCltaHay8ZHI4juG9Lmf6nymM1Q2OiqxgcsimKdz7mramWnemFwCggyOvLhEpH1hFWHQw4k+9RsscQRzSHceQ2ETJPlO1Tn1EFc2J8Wopjm1UEtGpjpBFT4q4v0lYaVwOotfrc70DFf7HaQW7s700fCFP7op2tkLQXpprfhk7pngGGIzyuWN4/PV7ioJdeUpp9XN1Ap10F8t//HBDQS2oQ2EPJUVT3RRbE9ZmatA==

# -*- coding: utf-8 -*-
from setuphelpers import *

app_name = "PsExec.exe"
app_dir = makepath(system32, app_name)

def install():

    file_exe = makepath(basedir, "PsExec.exe")
    filecopyto(file_exe, app_dir)

def audit():
    if isfile(app_dir):
        return "OK"

def uninstall():
    # Uninstalling software
    killalltasks(ensure_list(control.impacted_process))
    if isfile(app_dir):
        remove_file(app_dir)

# -*- coding: utf-8 -*-
from setuphelpers import *
import re


def update_package():
    # Declaring local variables
    package_updated = False
    proxies = get_proxies()
    if not proxies:
        proxies = get_proxies_from_wapt_console()
    download_url = "https://download.sysinternals.com/files/PSTools.zip"

    zip_dir = "PSTools.zip"
    wget(download_url, zip_dir, proxies=proxies)


    # Search version of psexec
    dir_zip = glob.glob("PSTools.zip")[0]
    unzip(dir_zip, target=".", filenames="PsExec.exe")
    file_exe = makepath(basedir,"PsExec.exe")
    remove_file(dir_zip)

    version = get_version_from_binary(file_exe)


    control.set_software_version(version)
    control.save_control_to_wapt()

078163d5c16f64caa5a14784323fd51451b8c831c73396b967b4e35e6879937b : PsExec.exe
38d056ab130f7bf7c481c12636a4e9959de36561d3dfcbe54c6e3571bc0c1dc3 : WAPT/certificate.crt
71b9687e4fe4349cd10bcfc55ae56ac1689eea70f27e30fc8ad4533ecb577f01 : WAPT/control
9ccd55c246c5266669ff70a6e62c1e315666114c6d3f854071b6ff22fe48612b : WAPT/icon.png
4d6719de8cbb785f24b9abfb5782f3fec853a36498cd0ec93047abb87f5eb50c : luti.json
6246ca188c410a717a6323cad3a4402f07e0a225c5d64512a65eb68a7a10ed4a : setup.py
4e6dc9925697892447c1abd5d775c2bdef81c56d272404420312caafbe21d685 : update_package.py