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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Unanswered

Powershell script execute in SDK assembly giving issue as set-executionpolicy unrestricted for dynamics 365 8.2

(0) ShareShare
ReportReport
Posted on by 619

Hi All,

I am using Dynamics 365 8.2 onpremise version. Previously we have developed plugin assembly in CRM 2016 8.1 version in windows 7 OS and visual studio 2017.  Now, we have upgraded to Dynamics 365 V8.2 and OS also using Windows 10 and IDE Visual Studio 2017.  

In the plugin assembly, we are using some external dll files.  So used ILMerge.exe and used PS1 script for execution.  The assembly whatever we have created, it was working fine in 8.1 version.  But, now we are getting as "Set-ExecutionPolicy unrestricted".  For this issue, I tried all the possibility of fixing this issue.

  • Local Machine level and Current User level execution policy set as unrestricted
  • powershell.exe execution set in windows 64 bit.  Because our Windows is 64 bit. It is set in Registry editor
  • Process scope also tried to Bypass and unrestricted policy
  • Updated new version of sdk dll of Microsoft.xrm.sdk in the plugin
  • Update new version ILMerge.exe file too
  • Assembly basic .Net version changed from 4.5.2 to 4.6.1

But still, I am getting the same issue.  Kindly suggest the solution. 

Thanks and Best Regards,

Saratha

I have the same question (0)

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
#ManoVerse Profile Picture

#ManoVerse 93

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 62 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans