每当我在 powershell 脚本中尝试以下行时:
Disable-CrmOrganization -Name MyOrganization
我收到以下错误:
Disable-CrmOrganization : The Deployment Service cannot process the request because one or more validation checks failed.
+ Disable-CrmOrganization <<<< -Name MyOrganization
+ CategoryInfo : NotSpecified: (:) [Disable-CrmOrganization], FaultException`1
+ FullyQualifiedErrorId : System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.Deployment.DeploymentServiceFaul
t, Microsoft.Crm.PowerShell, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]],Microsoft.Crm.Pow
erShell.DisableCrmOrganizationCmdlet
但是,如果我手动禁用组织,我可以毫无问题地执行以下行:
Remove-CrmOrganization -Name MyOrganization
知道为什么我不能使用 powershell 禁用组织吗?