From ad17fa5a7a5e72f8f0efe3370e2aba4f86489905 Mon Sep 17 00:00:00 2001 From: James Stringer <38541878+jamesstringerparsec@users.noreply.github.com> Date: Sun, 9 Jan 2022 14:13:28 +0100 Subject: [PATCH] Unblock Files --- User/Install.ps1 | 2 ++ VMScripts/ParsecVDDInstall.ps1 | 4 ++-- VMScripts/VBCableInstall.ps1 | 4 ++-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/User/Install.ps1 b/User/Install.ps1 index 682606f..7db2409 100644 --- a/User/Install.ps1 +++ b/User/Install.ps1 @@ -7,6 +7,8 @@ while(!(Test-NetConnection Google.com).PingSucceeded){ Start-Sleep -Seconds 1 } +Get-ChildItem -Path C:\ProgramData\Easy-GPU-P -Recurse | Unblock-File + if (Test-Path HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Parsec) {} else { diff --git a/VMScripts/ParsecVDDInstall.ps1 b/VMScripts/ParsecVDDInstall.ps1 index a767a5c..f5d71bd 100644 --- a/VMScripts/ParsecVDDInstall.ps1 +++ b/VMScripts/ParsecVDDInstall.ps1 @@ -1,9 +1,9 @@ if (!(Get-WmiObject Win32_VideoController | Where-Object name -like "Parsec Virtual Display Adapter")) { (New-Object System.Net.WebClient).DownloadFile("https://builds.parsec.app/vdd/parsec-vdd-0.37.0.0.exe", "C:\Users\$env:USERNAME\Downloads\parsec-vdd.exe") -#while (((Get-ChildItem Cert:\LocalMachine\TrustedPublisher) | Where-Object {$_.Subject -like '*Parsec*'}) -eq $NULL) { +while (((Get-ChildItem Cert:\LocalMachine\TrustedPublisher) | Where-Object {$_.Subject -like '*Parsec*'}) -eq $NULL) { certutil -Enterprise -Addstore "TrustedPublisher" C:\ProgramData\Easy-GPU-P\ParsecPublic.cer Start-Sleep -s 5 -# } + } Get-PnpDevice | Where-Object {$_.friendlyname -like "Microsoft Hyper-V Video" -and $_.status -eq "OK"} | Disable-PnpDevice -confirm:$false Start-Process "C:\Users\$env:USERNAME\Downloads\parsec-vdd.exe" -ArgumentList "/s" } diff --git a/VMScripts/VBCableInstall.ps1 b/VMScripts/VBCableInstall.ps1 index 7fbbddc..1c981a7 100644 --- a/VMScripts/VBCableInstall.ps1 +++ b/VMScripts/VBCableInstall.ps1 @@ -10,10 +10,10 @@ $VB.ExportType = [System.Security.Cryptography.X509Certificates.X509ContentType]::Cert; $VB.Cert = (Get-AuthenticodeSignature -filepath $VB.DriverFile).SignerCertificate; [System.IO.File]::WriteAllBytes($VB.CertName, $VB.Cert.Export($VB.ExportType)) - #while (((Get-ChildItem Cert:\LocalMachine\TrustedPublisher) | Where-Object {$_.Subject -like '*Vincent Burel*'}) -eq $NULL) { + while (((Get-ChildItem Cert:\LocalMachine\TrustedPublisher) | Where-Object {$_.Subject -like '*Vincent Burel*'}) -eq $NULL) { certutil -Enterprise -Addstore "TrustedPublisher" $VB.CertName Start-Sleep -s 5 - # } + } Start-Process -FilePath "C:\Users\$env:Username\Downloads\VBCable\VBCABLE_Setup_x64.exe" -ArgumentList '-i','-h' } \ No newline at end of file