Closed NormanPf closed 4 years ago
Have this policy more than one target? Only works if has policy multiple targets else use Remove-DSM7Policy.
Policy has more than one target. ID: Policy ID is used TargetID: ID of target (computer group) is used which needs to be removed
Have error now found, solution in version 1.0.2.3
Mentioned cmdlet always run into an error. Any ideas or suggustions hot get this running?
Remove-DSM7PolicyFromTarget -ID 63312 -TargetID 187192
2020-04-17 11:13:01 - Info - [Get-DSM7ObjectList] - ((&(ObjectId=187192)(|(SchemaTag=Domain)(SchemaTag=OU)(SchemaTag=Computer)(SchemaTag=User)(SchemaTag=CitrixFarm)(SchemaTag=CitrixZone)(SchemaTag=Group)(SchemaTag=ExternalGroup)(SchemaTag=DynamicGrou p)))) erfolgreich. 2020-04-17 11:13:02 - Info - [Get-DSM7OrgTreeContainer] - () -> (187192) erfolgreich. 2020-04-17 11:13:02 - Info - [Find-DSM7Target] - TargetObject mit ID(187192) gefunden. 2020-04-17 11:13:02 - Info - [Remove-DSM7PolicyFromTarget] - (TestTarget) gefunden. 2020-04-17 11:13:02 - Error - [Get-DSM7ObjectObject] - System.Web.Services.Protocols.SoapException: Object of type MdsObject(,0) with ID 0 not found. at Enteo.BlServer.WebService.Common.WebServiceBase.HandleRequest[TReply,TInterface](IRequestBase request, ExecuteRequestDelegate`2 executeRequest) 2020-04-17 11:13:02 - Error - [Remove-DSM7TargetFromPolicyObject] - Cannot convert value "False" to type "Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy1dministrationService_asmx_WSDL.MdsObject". Error: "Invalid ca st from 'System.Boolean' to 'Microsoft.PowerShell.Commands.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy1dministrationService_asmx_WSDL.MdsObject'." 2020-04-17 11:13:02 - Warning - [Remove-DSM7PolicyFromTarget] - Alte Ziele nicht entfernt.