2013-03-25 19:36:20 +00:00
|
|
|
$command=@{'command'='nextdestiny'}
|
2013-04-03 20:20:29 +00:00
|
|
|
if (!(Test-Path HKLM:\Software\Policies\Microsoft\SystemCertificates\AuthRoot)) {
|
|
|
|
mkdir HKLM:\Software\Policies\Microsoft\SystemCertificates\AuthRoot
|
|
|
|
Set-ItemProperty HKLM:\Software\Policies\Microsoft\SystemCertificates\AuthRoot DisableRootAutoUpdate 1
|
|
|
|
}
|
2013-04-26 20:15:27 +00:00
|
|
|
if (!(Test-Path HKLM:\Software\xCAT)) {
|
|
|
|
mkdir HKLM:\Software\xCAT
|
|
|
|
$certstore = New-Object System.Security.Cryptography.X509Certificates.X509Store("xCAT","LocalMachine")
|
2013-03-25 19:36:31 +00:00
|
|
|
$certstore.Open([System.Security.Cryptography.X509Certificates.OpenFlags]'Readwrite')
|
2013-03-25 19:36:20 +00:00
|
|
|
$cacert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("$env:instdrv\xcat\ca.pem")
|
2013-04-26 20:15:27 +00:00
|
|
|
Set-ItemProperty HKLM:\Software\xCAT cacertthumb $cacert.thumbprint
|
|
|
|
Set-ItemProperty HKLM:\Software\xCAT serveraddress $env:master
|
|
|
|
Set-ItemProperty HKLM:\Software\xCAT servername $env:mastername
|
2013-03-25 19:36:20 +00:00
|
|
|
}
|
|
|
|
Send-xCATCommand $command
|