mirror of
https://github.com/dockur/windows.git
synced 2026-08-24 15:48:59 +01:00
fix: Trust VirtIO display driver publisher on Windows 8.1 (#2099)
This commit is contained in:
@@ -71,6 +71,13 @@ rem Install the product key without activating Windows immediately.
|
|||||||
cscript.exe //B //Nologo "%SystemRoot%\System32\slmgr.vbs" /ipk "XXX"
|
cscript.exe //B //Nologo "%SystemRoot%\System32\slmgr.vbs" /ipk "XXX"
|
||||||
rem END PRODUCT_KEY
|
rem END PRODUCT_KEY
|
||||||
|
|
||||||
|
rem Trust the VirtIO display driver publisher to avoid an interactive prompt.
|
||||||
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "$catalog = Get-ChildItem -Path (Join-Path $env:SystemRoot 'Drivers\viogpudo') -Filter '*.cat' | Select-Object -First 1; if ($null -eq $catalog) { exit 1 }; $certificate = (Get-AuthenticodeSignature -LiteralPath $catalog.FullName).SignerCertificate; if ($null -eq $certificate) { exit 1 }; [IO.File]::WriteAllBytes((Join-Path $env:TEMP 'viogpudo.cer'), $certificate.Export([Security.Cryptography.X509Certificates.X509ContentType]::Cert))"
|
||||||
|
if errorlevel 1 exit /b 1
|
||||||
|
certutil.exe -addstore -f TrustedPublisher "%TEMP%\viogpudo.cer"
|
||||||
|
if errorlevel 1 exit /b 1
|
||||||
|
del /f /q "%TEMP%\viogpudo.cer" >nul 2>&1
|
||||||
|
|
||||||
rem Install the VirtIO display driver last to avoid disrupting earlier setup work.
|
rem Install the VirtIO display driver last to avoid disrupting earlier setup work.
|
||||||
pnputil.exe -i -a "%SystemRoot%\Drivers\viogpudo\viogpudo.inf"
|
pnputil.exe -i -a "%SystemRoot%\Drivers\viogpudo\viogpudo.inf"
|
||||||
|
|
||||||
|
|||||||
@@ -71,6 +71,13 @@ rem Install the product key without activating Windows immediately.
|
|||||||
cscript.exe //B //Nologo "%SystemRoot%\System32\slmgr.vbs" /ipk "XXX"
|
cscript.exe //B //Nologo "%SystemRoot%\System32\slmgr.vbs" /ipk "XXX"
|
||||||
rem END PRODUCT_KEY
|
rem END PRODUCT_KEY
|
||||||
|
|
||||||
|
rem Trust the VirtIO display driver publisher to avoid an interactive prompt.
|
||||||
|
powershell.exe -NoProfile -ExecutionPolicy Bypass -Command "$catalog = Get-ChildItem -Path (Join-Path $env:SystemRoot 'Drivers\viogpudo') -Filter '*.cat' | Select-Object -First 1; if ($null -eq $catalog) { exit 1 }; $certificate = (Get-AuthenticodeSignature -LiteralPath $catalog.FullName).SignerCertificate; if ($null -eq $certificate) { exit 1 }; [IO.File]::WriteAllBytes((Join-Path $env:TEMP 'viogpudo.cer'), $certificate.Export([Security.Cryptography.X509Certificates.X509ContentType]::Cert))"
|
||||||
|
if errorlevel 1 exit /b 1
|
||||||
|
certutil.exe -addstore -f TrustedPublisher "%TEMP%\viogpudo.cer"
|
||||||
|
if errorlevel 1 exit /b 1
|
||||||
|
del /f /q "%TEMP%\viogpudo.cer" >nul 2>&1
|
||||||
|
|
||||||
rem Install the VirtIO display driver last to avoid disrupting earlier setup work.
|
rem Install the VirtIO display driver last to avoid disrupting earlier setup work.
|
||||||
pnputil.exe -i -a "%SystemRoot%\Drivers\viogpudo\viogpudo.inf"
|
pnputil.exe -i -a "%SystemRoot%\Drivers\viogpudo\viogpudo.inf"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user