Home » Computers » Windows » VBS to Validate Signed Code

VBS to Validate Signed Code

MSDN article

The following sample VBScript code will verify a Signed file:

Dim Signer, File, ShowUI, FileOK
Set Signer = CreateObject("Scripting.Signer")
File = "c:\newfile.wsf"
ShowUI = True
FileOK = Signer.VerifyFile(File, ShowUI)
If FileOK Then
WScript.Echo File & " is trusted."
WScript.Echo File & " is NOT trusted."
End If