094aee795f
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15660 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
12 lines
648 B
PowerShell
12 lines
648 B
PowerShell
$command=@{'command'='nextdestiny'}
|
|
if (!(Test-Path HKCU:\Software\xCAT)) {
|
|
mkdir HKCU:\Software\xCAT
|
|
$certstore = New-Object System.Security.Cryptography.X509Certificates.X509Store("My","CurrentUser")
|
|
$certstore.Open([System.Security.Cryptography.X509Certificates.OpenFlags]'Readwrite')
|
|
$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
|