HP Sure Recover User Guide
4 Darbs ar HP Client Management Script 
Library (CMSL)
HP Client Management Script Library nodrošina iespēju pārvaldīt HP Sure Recover iestatījumus ar PowerShell. 
Tālāk redzamajā skripta piemērā ir parādīts, kā nodrošināt HP Sure Recover, noteikt tā statusu, mainīt 
kongurāciju un pārtraukt nodrošināšanu.
PIEZĪME. Vairākas komandas pārsniedz šīs rokasgrāmatas rindas garumu, bet tās ir jāievada kā viena rinda.
$ErrorActionPreference = "Stop"
$path = 'C:\test_keys'
$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 4. nodaļa. Darbs ar HP Client Management Script Library (CMSL)










