Syntax error report in Action Script for "Enable Encryption for Clients fixlet

Just run the fixlet ID 00-1543502 Enable Encryption for clients and normally this runs without fail on all my end points…
However, 3 have just reported back and looking at the action script, I see the Failed section…
Im trying to look though and see what the actial error is but here is the action script as taken from the failed action.

parameter “oldCryptoFolderPath” = "{pathname of parent folder of client}\openSSL"
parameter “oldCryptoFilePath” = "{parameter “oldCryptoFolderPath”}\AppEngUtility.dll"
parameter “cryptoFolderPath” = "{pathname of parent folder of client}\BFEncrypt"
parameter “cryptoFilePath” = "{parameter “cryptoFolderPath”}\AppEngUtility.dll"
parameter “cryptoRegKey” = “HKEY_LOCAL_MACHINE\Software\Bigfix\EnterpriseClient\EncryptionControl”
// unregister old CryptoUtility.dll
if {exists file (parameter “oldCryptoFilePath”)}
waithidden “{pathname of system folder}\cmd.exe” /C regsvr32.exe /s /u "{parameter “oldCryptoFilePath”}"
endif
// Create Folder if needed
if {not exists folder (parameter “cryptoFolderPath”)}
waithidden “{pathname of system folder}\cmd.exe” /C mkdir "{parameter “cryptoFolderPath”}"
endif
// Need to add version check here for next version
if {not exists folder (parameter “cryptoFolderPath”) whose (exists file “AppEngUtility.dll” whose (version of it >= “9.0.10115.0”) of it)}
waithidden “{pathname of system folder}\cmd.exe” /C regsvr32.exe /s /u "{parameter “cryptoFilePath”}"
prefetch AppEngUtility.dll sha1:6e8349f608c62e80bb13cafc9b006e16f4126080 size:604608 http://software.bigfix.com/download/bes/mdm/AppEngUtility-9.0.10115.0.dll sha256:8540200a2361db31cdf0414cc1ad70ca1ab1dce04ad6bf7b4820c5c1cce28ca9

Failed if{exists running services whose (service name of it = “BESPluginService”)}
waithidden “{pathname of system folder}\cmd.exe” /C net stop BESPluginService
delete "{parameter “cryptoFilePath”}"
move __Download\AppEngUtility.dll "{parameter “cryptoFilePath”}"
waithidden “{pathname of system folder}\cmd.exe” /C net start BESPluginService
else
delete "{parameter “cryptoFilePath”}"
move __Download\AppEngUtility.dll "{parameter “cryptoFilePath”}"
endif
endif
if {not exists folder (parameter “cryptoFolderPath”) whose (exists file “libBEScrypto_1_0_0_1.dll” of it)}
prefetch libBEScrypto_1_0_0_1.dll sha1:80e9e5d26070f95249f7575d0d5b9cb66e6d5c02 size:1154120 http://software.bigfix.com/download/bes/util/libBEScrypto_1_0_0_1.dll sha256:e7b3d3625c468b6954bcabe758c49ac45cc0f40e18022a1d0523486e9e4d5462
delete "{parameter “cryptoFolderPath”}\libBEScrypto_1_0_0_1.dll"
move __Download\libBEScrypto_1_0_0_1.dll “{parameter “cryptoFolderPath”}\libBEScrypto_1_0_0_1.dll"
endif
if {not exists folder (parameter “cryptoFolderPath”) whose (exists file “libBESssl_1_0_0_1.dll” of it)}
prefetch libBESssl_1_0_0_1.dll sha1:34e3099090fa5eb2d797822bb8bf8a53ead254ee size:273480 http://software.bigfix.com/download/bes/util/libBESssl_1_0_0_1.dll sha256:35d0fd3bab4a1790ddb1e87a3b8903a0d428de703610f2bebb8aa9008b209330
delete “{parameter “cryptoFolderPath”}\libBESssl_1_0_0_1.dll"
move __Download\libBESssl_1_0_0_1.dll “{parameter “cryptoFolderPath”}\libBESssl_1_0_0_1.dll"
endif
// set public/private key path
regset “[{parameter “cryptoRegKey”}]” “CertificatePath”=”{escape of (parameter “cryptoFolderPath”)}\public.cert"
regset “[{parameter “cryptoRegKey”}]” “PrivateKeyPath”=”{escape of (parameter “cryptoFolderPath”)}\private.pem”
// register CryptoUtility.dll
waithidden “{pathname of system folder}\cmd.exe” /C regsvr32.exe /s "{parameter “cryptoFilePath”}"
waithidden “{pathname of system folder}\cmd.exe” /C regsvr32.exe /s “{parameter “cryptoFilePath”}”
// Make sure the dll has been registered by checking registry key
continue if {exists key “HKEY_LOCAL_MACHINE\SOFTWARE\Classes\CLSID%7BC5A43980-AD5F-44BE-9C2B-B21B2848C660%7D” whose (exist key “InprocServer32” whose (exists value whose (it as string = (parameter “cryptoFilePath”)) of it) of it) of x32 registry}
// create initCrypto.vbs and run it to create public/private keys
createfile until __the_end
option explicit
dim crypto, shell
set crypto=createobject(“AppEngUtility.Crypto”)
'Only need to call it once during setup
crypto.InitializeKeyPairAndCert
__the_end
delete "{parameter “cryptoFolderPath”}\initCrypto.vbs"
move __createfile "{parameter “cryptoFolderPath”}\initCrypto.vbs"
if {not exists folder (parameter “cryptoFolderPath”) whose (exists file “private.pem” of it) OR not exists folder (parameter “cryptoFolderPath”) whose (exists file “public.cert” of it)}
createfile until END
cd /D “{parameter “cryptoFolderPath”}“
cscript /B initCrypto.vbs
END
delete runInitCrypto.bat
move __createfile runInitCrypto.bat
waithidden runInitCrypto.bat
endif
// Make sure private and public key are created
continue if {exists key “HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\EncryptionControl” whose (exists value “CertificatePath” whose (exists file (it as string)) of it AND exists value “PrivateKeyPath” whose (exists file (it as string)) of it) of x32 registry}
// Set Registry key
regset “[{parameter “cryptoRegKey”}]” “InstalledTime”=”{now}”

If it failed when checking to see if a service exists, is the client set to execute fixlets with the proper permissions?

Over half of the clients I tried this fixlet on failed with error -1073741790, it looks like all of the items completed except that last part at the end :

// Make sure private and public key are created
continue if {exists key “HKEY_LOCAL_MACHINE\SOFTWARE\BigFix\EnterpriseClient\EncryptionControl” whose (exists value “CertificatePath” whose (exists file (it as string)) of it AND exists value “PrivateKeyPath” whose (exists file (it as string)) of it) of x32 registry}
// Set Registry key
regset “[{parameter “cryptoRegKey”}]” “InstalledTime”="{now}"

Does anyone have any idea why this is failing?