HP Sure Recover User's Guide
4 HP Client Management Script Library (CMSL)
ile çalışma
HP Client Management Script Library, HP Sure Recover ayarlarını PowerShell ile yönetmenize imkan tanır.
Aşağıdaki örnek komut dosyasında HP Sure Recover'a yönelik olarak sağlama, durumunu belirleme,
yapılandırmasını
değiştirme ve sağlamayı kaldırma işlemlerinin nasıl yapılacağı gösterilmektedir.
NOT: Bazı komutlar, bu kılavuzdaki satır uzunluğunu aşmaktadır ancak tek satır olarak girilmelidir.
$ErrorActionPreference = "Stop"
$path = 'C:\test_keys'
i$ekpw = ""
$skpw = ""
Get-HPSecurePlatformState
try {
Write-host 'Provisioning Endorsement Key'
$p = New-HPSecurePlatformEndorsementKeyProvisioningPayload `
-EndorsementKeyPassword $ekpw `
-EndorsementKeyFile "$path\kek.pfx"
$p | Set-HPSecurePLatformPayload
Start-Sleep -Seconds 3
Write-host 'Provisioning signing key'
$p = New-HPSecurePlatformSigningKeyProvisioningPayload `
-EndorsementKeyPassword $ekpw `
-EndorsementKeyFile "$path\kek.pfx" `
-SigningKeyFile "$path\sk.pfx"
$p | Set-HPSecurePLatformPayload
$p = New-HPSureRecoverImageConfigurationPayload `
12 Bölüm 4 HP Client Management Script Library (CMSL) ile çalışma