1

PowerShell を使用してテンプレートを作成したいのですが、テンプレートに を設定する方法がわかりませんMinimum Supported CA。テンプレートを複製する方法がわかりませんでした。新しいテンプレートを作成するだけです。

私のコードは次のとおりです

$temp = ([ADSI]"LDAP://RootDSE".ConfigurationNamingContext
$ADSI = [ADSI]"LDAP://CN=Certificate Templates,CN=Public Key Services, CN=Services,$config"

$temp = $ADSI.Create("pKICertificateTemplate","CN=Web Server 2008-2")
$temp.put("distinguishedName","CN=Web Server 2008-2,CM=Certificate Template,CN=Public Key Services,CN=Services.$Config)

$temp.SetInfo()

これは実際のテンプレートを作成するために機能しますが、テンプレートWindows Server 2008 EnterpriseMinimum Supported CAs

4

1 に答える 1

1

ADCS では、バージョン 1 証明書は Win200、バージョン 2 は 2003、バージョン 3 は 2008 です。

検証するラボはありませんが、テンプレート スキーマを 3 に設定する必要があると思います。

$temp.put("msPKI-Template-Schema-Version","3")
$temp.put("msPKI-Template-Minor-Revision","0")  # Not sure if you actually need this.

「ソース..ちょっと」

于 2013-05-03T16:23:41.010 に答える