1

尝试在此TechNet 博客之后为我的 Dynamics 组织编写升级脚本。

但是遇到了我理解的以下错误,但不确定将 PSSnapin 安装到我的系统上的过程。

PS C:\Program Files\Dynamics SDK\SDK\Bin> Add-PSSnapin Microsoft.Crm.PowerShell

Add-PSSnapin : The Windows PowerShell snap-in 'Microsoft.Crm.PowerShell' is not installed on this computer.
At line:1 char:1
+ Add-PSSnapin Microsoft.Crm.PowerShell
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (Microsoft.Crm.PowerShell:String) [Add-PSSnapin], PSArgumentException
    + FullyQualifiedErrorId : AddPSSnapInRead,Microsoft.PowerShell.Commands.AddPSSnapinCommand
4

1 回答 1

1

First of all, sign in with the Administrator account on your Microsoft Dynamics 365 server.

Then in elevated mode Run

Add-PSSnapin Microsoft.Crm.PowerShell

If you have no registered then use the Use PowerShell cmdlets for XRM tooling to connect to Dynamics 365

You can externally also download the same from GITHUB: Link provided by theMadTechnician

Hope it helps

于 2017-11-15T09:30:16.167 回答