When I use the custom script to detect the presence of the deployment, I receive the above listed error message when it runs the detection method. I went back and signed my script as you can see below and it still gives that error message. The only fix I have seen on the net is to use VBscript as a wrapper to execute the powershell script. Is this a know issue? Thanks.
$Global:OS Function GetOSArchitecture{ $Global:OS=Get-WMIObject win32_operatingsystem $Global:OS.OSArchitecture #Answers: 32-bit, 64-bit } GetOSArchitecture If ($Global:OS -eq "32-bit") { $Exists = Test-Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Adobe Flash Player ActiveX" } If ($Global:OS -eq "64-bit") { $Exists = Test-Path "HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Adobe Flash Player ActiveX" } Write-Host $Exists If ($Exists -eq "True") { exit 1 } else { exit 0 } # SIG # Begin signature block # MIIIjgYJKoZIhvcNAQcCoIIIfzCCCHsCAQExCzAJBgUrDgMCGgUAMGkGCisGAQQB # gjcCAQSgWzBZMDQGCisGAQQBgjcCAR4wJgIDAQAABBAfzDtgWUsITrck0sYpfvNR # AgEAAgEAAgEAAgEAAgEAMCEwCQYFKw4DAhoFAAQUb+mzf/w5VJ7QViouK7eJB8TH # vFCgggYPMIIGCzCCBPOgAwIBAgIKFEhnSAABAABRKDANBgkqhkiG9w0BAQUFADA6 # MRMwEQYKCZImiZPyLGQBGRYDR1NQMRYwFAYKCZImiZPyLGQBGRYGZ2xvYmFsMQsw # CQYDVQQDEwJQMzAeFw0xMzAzMTkxOTAzMTRaFw0yMzAzMTcxOTAzMTRaMHsxEzAR # BgoJkiaJk/IsZAEZFgNHU1AxFjAUBgoJkiaJk/IsZAEZFgZnbG9iYWwxDDAKBgNV # BAsTA0dTUDEVMBMGA1UECxMMVE4tTmFzaHZpbGxlMQ4wDAYDVQQLEwVVc2VyczEX # MBUGA1UEAxMOUGxldGNoZXIsIE1pY2swggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw # ggEKAoIBAQCsjP1RVb1Vk3QyOgbyUAYIVuVKG5q5dJw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