tis-rsat icon

RSAT

Silent install package for RSAT

2.1-9

Preprod packages are packages built on LUTI. They remain in PREPROD usually for 5 days, after which a new VirusTotal scan is performed.
If the package passes this last check, it is promoted to PROD and published on the store.

package           : tis-rsat
version           : 2.1-9
architecture      : x64
section           : base
priority          : optional
name              : RSAT
categories        : Utilities,System and network
maintainer        : WAPT Team,Tranquil IT,Jimmy PELÉ
description       : The Remote Server Administration Tools (RSAT) is a set of remote administration tools that enable efficient management of Windows servers from a workstation
depends           : 
conflicts         : 
maturity          : PREPROD
locale            : all
target_os         : windows
min_wapt_version  : 2.3
sources           : MVLSC
installed_size    : 
impacted_process  : 
description_fr    : Les Outils d'administration de serveur distant (RSAT) est un ensemble d'outils d'administration à distance permettant de gérer les serveurs Windows à partir d'un poste de travail
description_pl    : Remote Server Administration Tools (RSAT) to zestaw narzędzi do zdalnej administracji, które umożliwiają wydajne zarządzanie serwerami Windows ze stacji roboczej
description_de    : Die Remote Server Administration Tools (RSAT) sind eine Reihe von Remote-Verwaltungstools, die eine effiziente Verwaltung von Windows-Servern von einer Workstation aus ermöglichen
description_es    : Las Herramientas de administración remota de servidores (RSAT) son un conjunto de herramientas de administración remota que permiten una gestión eficaz de los servidores Windows desde una estación de trabajo
description_pt    : As Ferramentas de Administração Remota do Servidor (RSAT) são um conjunto de ferramentas de administração remota que permitem a gestão eficiente de servidores Windows a partir de uma estação de trabalho
description_it    : Remote Server Administration Tools (RSAT) è un insieme di strumenti di amministrazione remota che consentono di gestire in modo efficiente i server Windows da una stazione di lavoro
description_nl    : De Remote Server Administration Tools (RSAT) is een set hulpprogramma's voor beheer op afstand waarmee Windows-servers efficiënt kunnen worden beheerd vanaf een werkstation
description_ru    : Remote Server Administration Tools (RSAT) - это набор инструментов удаленного администрирования, которые позволяют эффективно управлять серверами Windows с рабочей станции
audit_schedule    : 
editor            : Microsoft
keywords          : windows,server,rsat,remote,administration,tools
licence           : wapt_public
homepage          : https://learn.microsoft.com/windows-server/remote/remote-server-administration-tools
package_uuid      : 7bb7f384-3a79-4ad2-a1b0-005be8cd038b
valid_from        : 
valid_until       : 
forced_install_on : 
changelog         : 
min_os_version    : 10.0.26100
max_os_version    : 
icon_sha256sum    : a119cfff0858066f225da3f24ef2c784457395f5222f9249c110f675ca116678
signer            : test
signer_fingerprint: b82fc8ef4a4475c0f69ac168176c2bfc58f572eb716c4eadd65e4785c155dd8e
signature_date    : 2025-09-30T10:16:38.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         : ld8GSW3V6PLdEE1BUwBFYYFmqnxIW12/7jgLxFgjp9mst5Uqfp+LeGv/z9pkQJdKh5pBrsrTRd4/foYnoRLQDWhqXdMJN89/zwWx6tdPSQQ7HVvQhvTiwHO8dyKijFhsBS2IqXJQSxw7NeBBQZKAtLShJhspnCEhDbgIqob95iL2H6NPuN5hRNauTRqUuiVW89hleYHP7ANOYcBH8Mv4PBdOEEQSgy+Wo/CGie/sbv2yj5WWnbHlDIU5/hMdfcXS+uGD0qI1JEUa5IdJrbDn/VLuBqmB7C2zqqDI06jHgY7aew296jSZTJE9hnRbpSfTpj4P9Q/hOR1bnZ53KWa6fw==

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

rsat_capabilities = [
    "Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0",
    "Rsat.BitLocker.Recovery.Tools~~~~0.0.1.0",
    "Rsat.CertificateServices.Tools~~~~0.0.1.0",
    "Rsat.DHCP.Tools~~~~0.0.1.0",
    "Rsat.Dns.Tools~~~~0.0.1.0",
    "Rsat.FailoverCluster.Management.Tools~~~~0.0.1.0",
    "Rsat.FileServices.Tools~~~~0.0.1.0",
    "Rsat.GroupPolicy.Management.Tools~~~~0.0.1.0",
    "Rsat.IPAM.Client.Tools~~~~0.0.1.0",
    "Rsat.LLDP.Tools~~~~0.0.1.0",
    "Rsat.NetworkController.Tools~~~~0.0.1.0",
    "Rsat.NetworkLoadBalancing.Tools~~~~0.0.1.0",
    "Rsat.RemoteAccess.Management.Tools~~~~0.0.1.0",
    "Rsat.RemoteDesktop.Services.Tools~~~~0.0.1.0",
    "Rsat.ServerManager.Tools~~~~0.0.1.0",
    "Rsat.Shielded.VM.Tools~~~~0.0.1.0",
    "Rsat.StorageMigrationService.Management.Tools~~~~0.0.1.0",
    "Rsat.StorageReplica.Tools~~~~0.0.1.0",
    "Rsat.SystemInsights.Management.Tools~~~~0.0.1.0",
    "Rsat.VolumeActivation.Tools~~~~0.0.1.0",
    "Rsat.WSUS.Tools~~~~0.0.1.0",
]
# rsat_capabilities_to_install = rsat_capabilities
rsat_capabilities_to_install = [
    "Rsat.ActiveDirectory.DS-LDS.Tools~~~~0.0.1.0",
    "Rsat.BitLocker.Recovery.Tools~~~~0.0.1.0",
    "Rsat.Dns.Tools~~~~0.0.1.0",
    "Rsat.GroupPolicy.Management.Tools~~~~0.0.1.0",
    "Rsat.LLDP.Tools~~~~0.0.1.0",
    "Rsat.RemoteAccess.Management.Tools~~~~0.0.1.0",
]


def install():
    # Declaring local variables
    try:
        rsat_binaries_zip = glob.glob("rsat_*.zip")[0]
        unzip(rsat_binaries_zip, ".")
        rsat_binaries_dir = rsat_binaries_zip.split(".")[0]
    except:
        rsat_binaries_dir = glob.glob("rsat_*")[0]
    rsat_source_path = makepath(os.getcwd(), rsat_binaries_dir, "LanguagesAndOptionalFeatures")
    app_error = False

    # Installing the package
    with EnsureWUAUServRunning():
        for capability in rsat_capabilities_to_install:
            print("Installing: %s" % capability)
            try:
                run_powershell('Add-WindowsCapability -Online -Name "%s" -LimitAccess -Source "%s"' % (capability, rsat_source_path))
            except:
                print("Installation failed for: %s" % capability)
                app_error = True

    if app_error:
        error("RSAT capabilities to install do not succeed completely. You may need to restart the computer and try again")


def uninstall():
    # Declaring local variables
    app_error = False

    # Uninstalling the package
    print("Uninstalling all RSAT features")
    with EnsureWUAUServRunning():
        for capability in rsat_capabilities:
            print("Uninstalling: %s" % capability)
            try:
                run_powershell('Remove-WindowsCapability -Online -Name "%s"' % capability)
            except:
                print("Uninstallation failed on: %s" % capability)
                app_error = True

    if app_error and not params.get("running_as_luti"):
        error("RSAT capabilities uninstallation do not succeed completely. You may need to restart the computer and try again")


def audit():
    # Manually check in PowerShell: Get-WindowsCapability -online | ? Name -like Rsat* | FT
    print("Showing installed RSAT features:")
    pprint.pprint(run_powershell("Get-WindowsCapability -Online | Where Name -like Rsat* | Where State -Like Installed | Select Name,RestartNeeded"))
    print("Showing NOT installed RSAT features:")
    pprint.pprint(
        run_powershell("Get-WindowsCapability -Online | Where Name -like Rsat* | Where State -NotLike Installed | Select Name,RestartNeeded")
    )
    return "OK"

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


r"""
Usable WAPT package functions: install(), uninstall(), session_setup(), audit(), update_package()

Procedure:
1- Download Windows 10+ FoD/LoF ISO on Microsoft VLSC
2- Run the update_package()
3- Adapt package host capabilities then build-upload the package

"""


def update_package():
    # Declaring local variables
    capabilities_list = [
        "ActiveDirectory",
        "BitLocker",
        "CertificateServices",
        "DHCP",
        "DNS",
        "FailoverCluster",
        "FileServices",
        "GroupPolicy",
        "IPAM",
        "LLDP",
        "NetworkController",
        "NetworkLoadBalancing",
        "RemoteAccess",
        "RemoteDesktop",
        "ServerManager",
        "Shielded",
        "StorageMigrationService",
        "StorageReplica",
        "SystemInsights",
        "VolumeActivation",
        "WSUS",
    ]
    mandatory_files = ["FoDMetadata_", "Conditions", "Neutral"]
    mandatory_capabilities_files = ["~~"]
    # default_lang_list = ["fr-fr", "en-us"]

    # Interacting differently with Luti
    if params.get("running_as_luti"):
        latest_bin = "rsat_windows11v24h2_multilang.zip"
        download_url = "http://srvtemplates.ad.tranquil.it/binary_cache/" + latest_bin
        sha256 = "df42e5c3ec7fe78ca7da125ee4a8c31efd864bb76ce13fce92eb6c8db68a7003"
        wget(download_url, latest_bin, sha256=sha256)
        return "OK"

    # Asking for iso path
    iso_path = waptguihelper.filename_dialog(
        "Please provide the desired FoD iso file for the requested OS Version - %s" % control.package,
        "",
        "FoD_LoF.ISO",
        "ISO Files|*.ISO",
    )  # os.getcwd()
    # iso_path = r"C:\temp\SW_DVD9_Win_11_21H2_x64_MultiLang_LangPackAll_LIP_LoF_X22-62148.ISO"

    # Asking for langs
    lang_json = waptguihelper.grid_dialog(
        "Please selected the desired language(s). You can duplicate lines with CTRL + C, CTRL + V",
        json.dumps([{"lang": "en-us"}, {"lang": "fr-fr"}]),
        waptguihelper.GRT_SELECTED,
    )
    lang_list = []
    for l in lang_json:
        lang_list.append(l["lang"])

    if iso_path is None:
        error("Please provide an ISO")

    # Extract with conditions
    conditionnal_include_list = mandatory_capabilities_files + lang_list
    rsat_binaries_zip = "rsat_%s_%s.zip" % (basedir.split(os.path.sep)[-1], "_".join(i for i in lang_list))
    rsat_binaries_dir = rsat_binaries_zip.split(".")[0]

    for d in glob.glob("*rsat_*"):
        if isdir(d):
            remove_tree(d)

    for f in glob.glob("*rsat_*.zip"):
        if isfile(f):
            remove_tree(f)

    if Version(control.min_os_version) >= Version(WindowsVersions.Windows11):
        for f in mandatory_files:
            unzip_with_7zip(iso_path, rsat_binaries_dir, "**/*%s*.cab".lower() % f, recursive=True)

        for f in lang_list:
            unzip_with_7zip(iso_path, rsat_binaries_dir, "LanguagesAndOptionalFeatures/**/*%s*.cab".lower() % f, recursive=True)

        for fc in conditionnal_include_list:
            for cap in capabilities_list:
                unzip_with_7zip(iso_path, rsat_binaries_dir, "**/*%s*%s*.cab".lower() % (cap, fc), recursive=True)
    else:
        for f in mandatory_files:
            unzip_with_7zip(iso_path, rsat_binaries_dir, "*%s*.cab".lower() % f, recursive=True)

        for f in lang_list:
            unzip_with_7zip(iso_path, rsat_binaries_dir, "**/*%s*.cab".lower() % f, recursive=True)

        for fc in conditionnal_include_list:
            for cap in capabilities_list:
                unzip_with_7zip(iso_path, rsat_binaries_dir, "*%s*%s*.cab".lower() % (cap, fc), recursive=True)

    print("You may want to create manually a zip called: %s" % rsat_binaries_zip)

01ca7fe94636e5a08fcb73849d3b5df25d51e2c82f4dd1a08f01798b25899819 : WAPT/certificate.crt
87c65d8b97c82bcddb97a2a6de650ba2193d18774a29e0db2dc28432e5da1851 : WAPT/changelog.txt
a9d2cf049e662b83d7709df68dd4607ea6f94717391b9f6ae477bbc134ab2fc7 : WAPT/control
a119cfff0858066f225da3f24ef2c784457395f5222f9249c110f675ca116678 : WAPT/icon.png
d186698e43f9c4076e43cbb09c1f636c8c83642337949da30cc2bd3c771fc2f9 : luti.json
df42e5c3ec7fe78ca7da125ee4a8c31efd864bb76ce13fce92eb6c8db68a7003 : rsat_windows11v24h2_multilang.zip
9e3198ad4ba2fd21cb454aea98878373b0e33da62f31e2ddc6d76949d93d7e5e : setup.py
81d5a7edd3685b0dea394012d80a990196eb27af31e3783d4dfb3b707e59fa01 : update_package.py

2.0-2

First release for min_wapt_version 2.2