2013-03-25 19:37:29 +00:00
|
|
|
$command=@{'command'='nextdestiny'}
|
|
|
|
if (!(Test-Path HKCU:\Software\xCAT)) {
|
|
|
|
mkdir HKCU:\Software\xCAT
|
|
|
|
$certstore = New-Object System.Security.Cryptography.X509Certificates.X509Store("My","CurrentUser")
|
2013-03-25 19:37:36 +00:00
|
|
|
$certstore.Open([System.Security.Cryptography.X509Certificates.OpenFlags]'Readwrite')
|
2013-03-25 19:37:29 +00:00
|
|
|
$cacert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("$env:instdrv\xcat\ca.pem")
|
|
|
|
Set-ItemProperty HKCU:\Software\xCAT cacertthumb $cacert.thumbprint
|
|
|
|
Set-ItemProperty HKCU:\Software\xCAT serveraddress $env:master
|
|
|
|
Set-ItemProperty HKCU:\Software\xCAT servername $env:mastername
|
|
|
|
}
|
|
|
|
Send-xCATCommand $command
|