Install-WindowsFeature powershell command is not working - Advanced Installer Community
dharanidhar23
Posts: 5
Joined: Tue Oct 06, 2020 10:32 am

Install-WindowsFeature powershell command is not working

Hi Team,

I have a PowerShell custom action in the installer through which I am trying to install windows feature through "Install-WindowsFeature" command on windows server 2019. But the command is not recognizing in the installer and failing to execute the command whereas the same command is working fine when I try to run it from direct PowerShell command line on the same windows server machine.

Please check and assist !!!

Regards,
Dharanidhar
Catalin
Posts: 7852
Joined: Wed Jun 13, 2018 7:49 am

Re: Install-WindowsFeature powershell command is not working

Hello Dharanidhar,

Please make sure that you are not launching the x86 PowerShell prompt within your setup, since ServerManager commands are supported only in the x64 version of PowerShell.
winserverps.png
winserverps.png (182.25 KiB) Viewed 29959 times
Hope this helps!

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”