The Request to add or remove features on the specified

Taha Sessevmez 0 Reputation points
2024-05-02T15:15:15.0266667+00:00

Firstly I try Server Manager Add roles and features then check Ftp but installing error

the request to add or remove features on the specified server failed

User's image

And I try with powershell

Install-WindowsFeature -Name Web-Ftp-Server

And error this

User's image

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,517 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Zunhui Han 315 Reputation points Microsoft Vendor
    2024-05-02T15:49:11.46+00:00

    Hello,

    Based on my understanding of your issue, I suspect that your system files may have been damaged. SFC (System File Checker) is a cmd-based system repair program that can scan problematic files in Windows system files and replace them with A healthy file in a known correct version.

    To repair your system using SFC command prompt, do the following:

    Open "Start", search for "cmd", select it and run Windows Server 2019 Command Prompt as administrator to repair the system.

    Then enter the command: "sfc /scannow" and press "Enter".

    Image

    If SFC cannot resolve the issue, SFC may not be able to obtain the files it needs and your system may be damaged. In this case, you can try to use DISM to repair your Windows system.

    To use the DISM command prompt to repair the system image file in Windows Server 2019 , please do the following:

    Windows Server 2019 includes a cmd command-based application called DISM (Deployment Image Servicing and Management) for system repair. To repair Windows Server 2019 using DISM command, please do the following:

    To check if any files are corrupted, run cmd as administrator and enter the following command and press "Enter".

    DISM /Online /Cleanup-Image /CheckHealth

    Image

    To repair Windows image, run cmd as administrator and enter the following command and press "Enter".

    DISM/Online/Cleanup-Image/RestoreHealth/Source:repairSource\install.wim

    Image

    Reference links:https://learn.microsoft.com/en-us/troubleshoot/windows-server/installing-updates-features-roles/troubleshoot-install-features-roles-guidance

    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    Best regards

    Zunhui


  2. Taha Sessevmez 0 Reputation points
    2024-05-03T11:34:01.16+00:00

    I RESOLVED AND SOLUTION HERE

    1.Go to C:\Windows\Logs

    1. Rename the CBS file to CBS_OLD (if it cannot be renamed, restart your PC and then rename it)
    2. Enter the CBS folder and locate the errors: "Failed to pin deployment while resolving Update: Package_....KB***" and "Failed to bulk stage deployment manifest and pin deployment for package: Package_"
    3. Search for the package at https://www.catalog.update.microsoft.com/Home.aspx as Windows 2019 and download it
    4. Create a folder named C:\kb
    5. Inside the kb folder, create as many subfolders as the number of packages you downloaded, for example, if two packages then create kb1 and kb2
    6. Open the command prompt as admin and type the directory and package name here, then install with: expand -f:* c:\kb\windows10.0-PACKAGE NAME-x64_9739e9efd8aafacbd921e14ba1c701da2012464a.msu c:\kb\kb1
    7. If there are more, do the same for those
    8. Install the packages using: dism /online /add-package /packagepath:c:\kb\kb1\Windows10.0-PACKAGENAME-x64.cab and similarly for others if any
    9. Restart your PC
    10. Complete the installation