Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

AX2012 install error - prerequisite missing powershell 2.0, but i can confirm that it is installed

(0) ShareShare
ReportReport
Posted on by 5

hey all


we deploy AX as part of a sccm task sequence.
the task runs the setup.exe file with a bunch of parameters (hideUI, ports, usernames, logdir etc etc)
the task sequence works fine and AX installs on server 2012, 2016 and 2019.

the problem i am experiencing is when i run the same command in powershell manually on a test server (server 2019)
the error is this

2023-03-15 16:06:34Z    The following prerequisite checks failed:
2023-03-15 16:06:34Z        Windows PowerShell 2.0
2023-03-15 16:06:34Z            Async Client
2023-03-15 16:06:34Z    ******************************************************************************************************

2023-03-15 16:06:34Z    The following prerequisites failed:
2023-03-15 16:06:34Z        Windows PowerShell 2.0

2023-03-15 16:06:34Z    ******************************************************************************************************

now i can confirm that all AX prereqs are installed.
.net 3.5 installed

windows features confirms that powershell 2.0 is installed

[X] Windows PowerShell                                  PowerShellRoot                 Installed
    [X] Windows PowerShell 5.1                          PowerShell                     Installed
    [X] Windows PowerShell 2.0 Engine                   PowerShell-V2                  Installed

the registry keys exist for powershell 2.0

2023-03-15 16:06:33Z    Performing a registry value check for prerequisite 'Windows PowerShell 2.0'.
2023-03-15 16:06:33Z    Checking registry value 'SOFTWARE\Microsoft\PowerShell\1\PowerShellEngine\PowerShellVersion' = 2.0
2023-03-15 16:06:33Z    Found: '2.0'     Expected: '2.0'.
2023-03-15 16:06:33Z    Check succeeded.

to throw a spanner in the works...

when i run setup.exe by itself with no parameters it gives me the option to run a prereqs check. When i do this... it comes back saying that powershell 2.0 is installed!

pastedimage1678960384179v1.png

so i dont understand why the installer fails and gives me the error during install..... whereas the prereq check, from the same exe file says that powershell 2.0 is ok.

are there any parameters/switches that I can use that avoids/skips/bypasses the powershell check?
im a bit stumped as to whats going on here...

i know were using an old version of ax but this is all we got for now (D365 is coming)

any suggestions?

cheers!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,110 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans