Articles in this section

Unable to install Microsoft Web Deploy on Windows 2025 with Plesk: Feature name MicrosoftWindowsPowerShellV2 is unknown

kb: bug Plesk for Windows kb: fixed

Applicable to:

  • Plesk for Windows

Symptoms

  • Unable to install Microsoft Web Deploy on Windows 2025:

    CONFIG_TEXT: Package action: Execute, package: powershell2, exec time: 2 sec. desc: "program='dism'," "command-line='/Online" /Quiet /NoRestart /Enable-Feature /FeatureName:MicrosoftWindowsPowerShellV2 "/All'," "working-dir=''," "context='x64'," "arch=''", output='
    Error: 0x800f080c
    Feature name MicrosoftWindowsPowerShellV2 is unknown.
    A Windows feature name was not recognized.
    Use the /Get-Features option to find the name of the feature in the image and try the command again.
    dism /Online /Quiet /NoRestart /Enable-Feature /FeatureName:MicrosoftWindowsPowerShellV2 /All failed with error -2146498548(0x800f080c). Output:
    Error: 0x800f080c
    Feature name MicrosoftWindowsPowerShellV2 is unknown.
    A Windows feature name was not recognized.
    Use the /Get-Features option to find the name of the feature in the image and try the command again.
    Sub-action 'Execute' failed with error code: -2146498548(0x800f080c)
    Bootstrapper has finished action (exec time: 0 sec.): parent_name='PANEL_18_0_72_WIN', sequence='pkgs', stage='rollback', sequence_order='1', operation='install', exec_cmd='md "[PLESK_DATADIR]\var\upgrade" 2>nul & type NUL > "[PLESK_DATADIR]\var\upgrade\plesk-upgrade-failure.flag"'', m_arch='', exit code: 0, output: ~empty
    Error: The installation of the package 'powershell2' failed with code -2146498548. (install: Enabling Windows PowerShell 2.0 Engine...)
    Not all packages were installed.
    Visit https://support.plesk.com/ to search for a solution.

Cause

Product issue:

  • #PPPM-15153 "Fixed the issue where Microsoft Web Deploy could not be installed on Windows Server 2025 due to the missing PowerShell 2.0 component." 
    Fixed in:

Resolution

Please consider updating your server:

Workaround

If update is not possible for some reason you may try the following

workaround

Until the bug is fixed, the following can be applied as a workaround:

  1. Connect to the Plesk server via RDP
  2. Download the ps2DLC.zip file from the official Microsoft website
  3. Extract the ps2DLC.zip file to a folder of your choice.
  4. Start a PowerShell window in admin mode.
  5. Change to the folder containing the extracted PowerShell 2.0 files.
  6. Run the following command: .\loadGAC.ps1
Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.