win2019: enable use of test-signed code (#4296)

This commit is contained in:
Aleksandr Chebotov
2021-10-19 12:58:41 +03:00
committed by GitHub
parent 8c93fad835
commit ae930f132c
2 changed files with 9 additions and 1 deletions

View File

@@ -51,7 +51,7 @@ Describe "GDIProcessHandleQuota" {
}
}
Describe "Test Signed Drivers" -Skip:(-not (Test-IsWin22)) {
Describe "Test Signed Drivers" -Skip:(Test-IsWin16) {
It "bcdedit testsigning should be Yes"{
"$(bcdedit)" | Should -Match "testsigning\s+Yes"
}

View File

@@ -110,6 +110,14 @@
"if (-not ((net localgroup Administrators) -contains '{{user `install_user`}}')) { exit 1 }"
]
},
{
"type": "powershell",
"inline": [
"bcdedit.exe /set TESTSIGNING ON"
],
"elevated_user": "{{user `install_user`}}",
"elevated_password": "{{user `install_password`}}"
},
{
"type": "powershell",
"environment_vars": [