Verifies a digital signature retrieved as a string.
object.Verify (FileExtension, Text, ShowUI)
Note On some operating systems, the operating system also creates a dialog box if the flag is on, the file is trusted, and you have not already checked the "Always trust …" option.
The Verify method is used to verify a digital signed script stored in a string.
In this example the Verify method determines whether the script in the UnsignedText variable is trusted. (In this example there is no digital signature, so the Scripting.Signer object asks the user whether to extend trust.)
Dim Signer, UnsignedText, Trusted Set Signer = CreateObject("Scripting.Signer") UnsignedText = _ "Dim X " & vbCrLf & _ "X = 123" & vbCrLf & _ "WScript.Echo X" & vbCrLf Trusted = Signer.Verify(".VBS", UnsignedText, True)
Scripting.Signer Object | VerifyFile Method | Sign Method | SignFile Method | Verifying a Script