Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 3a9656a

Browse files
Switch Cert Store
1 parent 2fee1a3 commit 3a9656a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

PostInstall/PostInstall.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ function cloudprovider {
6767
)
6868

6969
$azure = $(
70-
Try {(Invoke-WebRequest -Uri "http://169.254.169.254/metadata/instance?api-version=2018-10-01" -Headers @{Metadata="true"} -TimeoutSec 5)}
70+
Try {(Invoke-Webrequest -Headers @{"Metadata"="true"} -Uri "http://169.254.169.254/metadata/instance/compute/userData?api-version=2021-01-01&format=text" -TimeoutSec 5)}
7171
catch {}
7272
)
7373

@@ -836,7 +836,7 @@ Function Server2019Controller {
836836

837837
Function InstallParsec {
838838
Start-Process "C:\ParsecTemp\Apps\parsec-windows.exe" -ArgumentList "/silent", "/shared" -wait
839-
Import-Certificate -CertStoreLocation "Cert:\CurrentUser\TrustedPublisher" -FilePath "$env:ProgramData\ParsecLoader\parsecpublic.cer"
839+
Import-Certificate -CertStoreLocation "Cert:\LocalMachine\TrustedPublisher" -FilePath "$env:ProgramData\ParsecLoader\parsecpublic.cer"
840840
Start-Process "C:\ParsecTemp\Apps\parsec-vdd.exe" -ArgumentList "/silent" -Wait
841841
$configfile = Get-Content C:\ProgramData\Parsec\config.txt
842842
$configfile += "host_virtual_monitors = 1"

0 commit comments

Comments
 (0)