لن يتم تحميل Snapin، وتستهدف CMDlets الآن إصدار PowerShell الخطأ، كيف حدث ذلك؟

sharepoint.stackexchange https://sharepoint.stackexchange.com//questions/97953

  •  10-12-2019
  •  | 
  •  

سؤال

لقد ورثت بيئة Dev Server-2008 SharePoint-2010، فشل SharePoint Snapin في التحميل؛تحذير ... giveacodicetagpre.

تابعت جميع العلاجات الموثقة:

  • إلغاء تثبيت WMF 3.0 و KB2506146
  • تنفيذ powershell.exe مع المعلمة "-version 2.0"
  • إزالة المرجع إلى .NET 4.0 من تكوين PowerShell

    فشل Snapin في التحميل ولا يزال نفس التحذير "إصدار Windows PowerShell غير صحيح ..." لذلك أؤكد الإصدار.يبدو جيدا ... giveacodicetagpre.

    ، لذلك راجعت Snapin ... giveacodicetagpre.

    psVersion هو 3.0 ؟؟ يقوم PSVersion for Snapin بقراءة 1.0 على جميع الأجهزة الأخرى.ولا يعمل في 3.0 بسبب 4.0 .NET Framework.كيف يمكنني تغيير هذا الظهر؟بحيث يستهدف الإصدار المتوافق من PowerShell؟ شكرا لأي مساعدة يمكنك تقديمها.

هل كانت مفيدة؟

المحلول

The registry determines the level of PS compatibility, in my case the value was 3.0, it should be 1.0. I corrected this value by editing the following key:

HKLM\SOFTWARE\Microsoft\PowerShell\1\PowerShellSnapIns\Microsoft.SharePoint.PowerShell\PowerShellVersion

The initial cause of the problem was the installation of the Windows Management Framework 3.0 which installs with it PowerShell. Even after uninstalling, the registry remained incorrect and I had to edit the registry with the information above.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى sharepoint.stackexchange
scroll top