New-CMCertificateProfileTrustedRootCA
创建受信任的 CA 证书配置文件。
语法
New-CMCertificateProfileTrustedRootCA
[-Description <String>]
[-DestinationStore <CertificateStore>]
-Name <String>
-Path <String>
-SupportedPlatform <IResultObject[]>
[-DisableWildcardHandling]
[-ForceWildcardHandling]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
New-CMCertificateProfileTrustedRootCA cmdlet (CA) 证书配置文件创建受信任的证书颁发机构。
注意
从 Configuration Manager 站点驱动器运行 Configuration Manager cmdlet,例如 PS XYZ:\>。 有关详细信息,请参阅 入门。
示例
示例 1:创建受信任的 CA 证书配置文件
PS XYZ:\> New-CMCertificateProfileTrustedRootCA -Name "Test01" -Path "\\Server01\ShareFolder\RootCA.cer" -SupportedPlatform (Get-CMSupportedPlatform -Fast -Name "All Windows 10*Client")
此命令从所有 Windows 10 客户端平台的RootCA.cer证书中创建名为 Test01 的受信任 CA 证书配置文件。
示例 2:创建受信任的 CA 证书配置文件并设置目标存储
PS XYZ:\> New-CMCertificateProfileTrustedRootCA -Name "Test02" -Path \\Server01\ShareFolder\RootCA.cer -SupportedPlatform (Get-CMSupportedPlatform -Fast -Name "All Windows 10*Client") -Description "TestRootCertificate" -DestinationStore SystemIntermediate
此命令从所有 Windows 10 客户端平台的RootCA.cer证书创建名为 Test02 的受信任 CA 证书配置文件。 此外, 命令将目标存储设置为计算机证书存储 - 中间。
参数
-Confirm
提示你在运行 cmdlet 之前进行确认。
| 类型: | SwitchParameter |
| 别名: | cf |
| Position: | Named |
| 默认值: | False |
| 必需: | False |
| 接受管道输入: | False |
| 接受通配符: | False |
-Description
指定受信任 CA 证书配置文件的说明。
| 类型: | String |
| Position: | Named |
| 默认值: | None |
| 必需: | False |
| 接受管道输入: | False |
| 接受通配符: | False |
-DestinationStore
指定受信任 CA 证书的目标存储。 有效值包含:
- SystemRoot
- SystemIntermediate
- UserIntermediate
| 类型: | CertificateStore |
| 别名: | Store |
| 接受的值: | SystemRoot, SystemIntermediate, UserIntermediate |
| Position: | Named |
| 默认值: | SystemRoot |
| 必需: | False |
| 接受管道输入: | False |
| 接受通配符: | False |
-DisableWildcardHandling
此参数将通配符视为文本字符值。 不能将其与 ForceWildcardHandling 组合使用。
| 类型: | SwitchParameter |
| Position: | Named |
| 默认值: | None |
| 必需: | False |
| 接受管道输入: | False |
| 接受通配符: | False |
-ForceWildcardHandling
此参数处理通配符,并可能导致意外行为, (不建议) 。 不能将其与 DisableWildcardHandling 组合使用。
| 类型: | SwitchParameter |
| Position: | Named |
| 默认值: | None |
| 必需: | False |
| 接受管道输入: | False |
| 接受通配符: | False |
-Name
指定受信任的 CA 证书配置文件的名称。
| 类型: | String |
| Position: | Named |
| 默认值: | None |
| 必需: | True |
| 接受管道输入: | False |
| 接受通配符: | False |
-Path
指定受信任的 CA 证书文件的路径。
| 类型: | String |
| 别名: | CertificatePath |
| Position: | Named |
| 默认值: | None |
| 必需: | True |
| 接受管道输入: | False |
| 接受通配符: | False |
-SupportedPlatform
指定受支持的平台对象。 若要获取受支持的平台对象,请使用 Get-CMSupportedPlatform cmdlet。
| 类型: | IResultObject[] |
| 别名: | SupportedPlatforms |
| Position: | Named |
| 默认值: | None |
| 必需: | True |
| 接受管道输入: | False |
| 接受通配符: | False |
-WhatIf
显示在 cmdlet 运行时发生的情况。 cmdlet 不会运行。
| 类型: | SwitchParameter |
| 别名: | wi |
| Position: | Named |
| 默认值: | False |
| 必需: | False |
| 接受管道输入: | False |
| 接受通配符: | False |
输入
None
输出
System.Object