System.Security.Cryptography.X509Certificates.X509Certificate2 EnrollmentPolicyEndPoint new-object Microsoft.CertificateServices.Commands.EnrollmentEndPointProperty -argumentlist $this,$true $e = $this.EnrollmentPolicyEndPoint $e.CopyUrlAndAuthType($args[0]) EnrollmentServerEndPoint new-object Microsoft.CertificateServices.Commands.EnrollmentEndPointProperty -argumentlist $this,$false $e = $this.EnrollmentServerEndPoint $e.CopyUrlAndAuthType($args[0]) PolicyId [Microsoft.CertificateServices.Commands.PolicyIdProperty]::ReadPolicyId($this) $policyId = $args[0] [Microsoft.CertificateServices.Commands.PolicyIdProperty]::WritePolicyId($this,$policyId)