Symptom |
---|
Importing a Custom ITScript presents an error. The error, cause, and solution will vary; this doucment will cover each individually.
Errors |
---|
Note - The following errors list a specific file and/or Script name. These may vary in your environment.
Script metadata is missing or incorrect.
Error
Script Importer
[Main Instruction]
The script 'C:\testx.ps1' failed to import.
[Content]
Script metadata is missing or incorrect.
Cause
Solution
A script '...' already exists, but was signed by a different authority
Error
[Window Title]
Script Importer
[Main Instruction]
The script 'C:\test.ps1' failed to import.
[Content]
A script 'Set Target Machine Verbose Logging' already exists, but was signed by a different authority
Cause
Example:
<stScript uid="333a27e3-a651-4a30-9150-63757e689a19" schemaVersion="1.0.0.0">
uid value has already been used for a ITScript called 'Set Target Machine Verbose Logging'.
Solution
The contents of file '...' may have been tampered because the hash of the file does not match the hash stored in the digital signature. The script will not execute on the system. Please see "get-help about_signing" for more details.
Error
Script Importer
[Main Instruction]
The script 'C:\test.ps1' failed to import.
[Content]
The contents of file C:\test.ps1 may have been tampered because the hash of the file does not match the hash stored in the digital signature. The script will not execute on the system. Please see "get-help about_signing" for more details.
Cause
Solution
A script '...' by author '...' already exists
Error
Script Importer
[Main Instruction]
The script 'C:\test.ps1' failed to import.
[Content]
A script 'Test' by author 'Shavlik' already exists
Cause
Example:
<name>Test</name>
<author>Shavlik</author>
Solution
- Change the Name value
- Change the Author value
- Delete the Script that is already imported into Protect.
The '...' start tag on line # position # does not match the end tag of '...'. Line #, position #.
Error
[Window Title]
Script Importer
[Main Instruction]
The script 'C:\test.ps1' failed to import.
[Content]
The 'options' start tag on line 9 position 4 does not match the end tag of 'optixons'. Line 14, position 5.
Cause
Example:
<options>
</optixons>
Solution
The script '...' failed to import. Scripts cannot have the same ID or Name as another imported script. Please check your script to ensure it has unique metadata entries for those fields.
Error
[Window Title]
Script Importer
[Main Instruction]
The script 'C:\test.ps1' failed to import.
[Content]
The script 'C:\test.ps1' failed to import. Scripts cannot have the same ID or Name as another imported script. Please check your script to ensure it has unique metadata entries for those fields.
Cause
Solution
A required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file
Error
Cause
- The system Date/Time is incorrect.
- The Root Certificates on the Protect Console computer are out of date.
Solution
- Correct the system Date/Time.
- Update the root certificates.
- Related Document: Correcting Agent issues caused by out of date root certificates
Could not find any recognizable digits.
Error
[Window Title]
Script Importer
[Main Instruction]
The script 'C:\test.ps1' failed to import.
[Content]
Could not find any recognizable digits.
[OK]
Cause
- The GUID in the ps1 file has a non-hexadecimal value.
Solution
- Verify the GUID in the ps1 file contains only hexadecimal values (A-F, 0-9).
The following required fields are empty:...
[Window Title]
Script Importer
[Main Instruction]
The script 'C:\test.ps1' failed to import.
[Content]
The following required fields are empty: purpose
[OK]
Cause
- The listed element/node is does not contain any information.
Solution
- Enter information into the listed element/node
Example: In the listed example, the node 'Purpose' did not contain content. Adding something between the opening and closing tags fixes this issue.
The required element '...' is missing.
[Window Title]
Script Importer
[Main Instruction]
The script 'C:\test.ps1' failed to import.
[Content]
The required element 'purpose' is missing.
[OK]
Cause
- The listed element is missing from the ps1 file. Certain elements are required, and if they are missing they cause this issue. See this document on required elements.
Solution
- Add the listed/missing element.
Example: In the listed example, the element 'Purpose' was not in the ps1 file. Adding the element back into the ps1 file within the Description tags fixes the issue.
Related Information |
---|
Guidelines for Creating Custom ITScripts
Affected Product(s) |
---|
Shavlik Protect 9.x