Add files via upload

This commit is contained in:
PYDT authored and GitHub committed 2024-06-13 22:35:18 +08:00
1 parent b26375d25a
commit 72ce9cfd6b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ powershell.exe -ExecutionPolicy Bypass -Command ^
$cert = New-SelfSignedCertificate -DnsName PYAS -CertStoreLocation cert:\LocalMachine\My -Type CodeSigning -NotAfter $endDate; ^
$pwd = ConvertTo-SecureString -String 'PYAS' -Force -AsPlainText; ^
Export-PfxCertificate -Cert $cert -FilePath '%script_dir%\PYAS.pfx' -Password $pwd;"
start "" "%script_dir%\signtool.exe" sign /f "%script_dir%\PYAS.pfx" /p PYAS "%script_dir%\PYAS_Driver.sys"
"%script_dir%\signtool.exe" sign /f "%script_dir%\PYAS.pfx" /p PYAS "%script_dir%\PYAS_Driver.sys"
sc create PYAS_Driver type= kernel start= demand binPath= "%script_dir%\PYAS_Driver.sys"
shutdown -r -t 0
+1 -1
View File
@@ -17,8 +17,8 @@ if '%errorlevel%' NEQ '0' (goto UACPrompt) else (goto gotAdmin)
sc stop PYAS_Driver
sc delete PYAS_Driver
bcdedit -debug off
bcdedit /set testsigning off
bcdedit -debug off
shutdown -r -t 0
endlocal