This repository was archived by the owner on Oct 15, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
837837Function 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"
You can’t perform that action at this time.
0 commit comments