web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

System.Management.Automation error OnPrem 2023 wave 1 version

(0) ShareShare
ReportReport
Posted on by 171

Hi there, 

We have been working with dotnet System.Management.Automation to launch PowerShell scripts in our OnPrem BC installation until this new version. 

With new version 2023 wave 1, the extension is published correctly, as the assembly is there, however this error appears when trying to launch scripts:

Cannot load an instance of the following .NET Framework object: assembly System.Management.Automation, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35.

Appreciate your help on this. Do you think this can have an easy solution? Is there any other option or options to launch powershell scripts created inside BC?

Regards,

Carlos 

I have the same question (0)
  • Carlos Herrando Profile Picture
    171 on at

    To add more information, I have found PowerShellRunner AddIn included in installation, but also not working, same error message.

  • Suggested answer
    YUN ZHU Profile Picture
    99,055 Super User 2026 Season 1 on at

    Hi, It seems to be related to the information below. Perhaps you should modify your solution, such as Azure Function.

    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/upgrade/deprecated-features-platform#changes-in-2023-release-wave-1-version-220

    pastedimage1683590448160v1.png

    Hopefully other experts can give you better advice.

    Thanks.

    ZHU

  • Carlos Herrando Profile Picture
    171 on at

    Thanks Zhu for your prompt response, I saw all of that, and seems to be the problem, but as it is OnPrem installation, I cannot use Azure Functions for this purpose.

    I will keep investigating on how to get this work in new .NET Standard

  • CU19071206-0 Profile Picture
    2 on at

    Hi Carlos,

    Have you found a solution for this issue? I have the same issue as you.

    Thank you for your answer.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,926 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,158 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 533 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans