I see that the script is now signed by Veeam, but I still get an error.
Using v12, if I set the execution policy to AllSigned,
Code: Select all
PS C:\Windows\system32> set-executionpolicy -scope 'LocalMachine' 'allsigned'
Execution Policy Change
The execution policy helps protect you from scripts that you do not trust. Changing the execution policy might expose
you to the security risks described in the about_Execution_Policies help topic at
https:/go.microsoft.com/fwlink/?LinkID=135170. Do you want to change the execution policy?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "N"): A
PS C:\Windows\system32> get-executionpolicy -scope LocalMachine
AllSigned
PS C:\Windows\system32>
I get the message that the publisher is untrusted.
Code: Select all
PS C:\Windows\system32> disconnect-vbrserver
Do you want to run software from this untrusted publisher?
File C:\Program Files\Veeam\Backup and Replication\Console\Veeam.Backup.PowerShell.types.ps1xml is published by
CN=Veeam Software Group GmbH, O=Veeam Software Group GmbH, L=Baar, S=Zug, C=CH and is not trusted on your system. Only
run scripts from trusted publishers.
[V] Never run [D] Do not run [R] Run once [A] Always run [?] Help (default is "D"):
It seems to fix this, Veeam would have to provide their code signing certificate (public key) and the installer would have to install the certificate in the local machine store under "Trusted Publishers". Since we don't have this certificate, we cannot not install it manually either.
Veeams code signing cert is currently:
Code: Select all
PS C:\Windows\system32> Get-AuthenticodeSignature 'C:\Program Files\Veeam\Backup and Replication\Console\Veeam.Backup.PowerShell.types.ps1xml' | fl
SignerCertificate : [Subject]
CN=Veeam Software Group GmbH, O=Veeam Software Group GmbH, L=Baar, S=Zug, C=CH
[Issuer]
CN=DigiCert Trusted G4 Code Signing RSA4096 SHA384 2021 CA1, O="DigiCert, Inc.", C=US
[Serial Number]
0663DB68D1713219E69112010936FDA3
[Not Before]
2/7/2022 12:00:00 AM
[Not After]
3/28/2025 11:59:59 PM
[Thumbprint]
93E8E786F02642CD359B0E46BEC03A6ACB1C554E
If I replace this signature with my own, will this break anything in Veeam? Does Veeam internally use this file: Veeam.Backup.PowerShell.types.ps1xml and if so, does it verify the signture?