---
sourceDocument: Australia ServiceNow AI Platform Capabilities
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/servicenow-platform

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia ServiceNow AI Platform Capabilities

ft:clusterId :

    - platcap

bundleId :

    - platcap

workflow :

    - Platform


---

# Attach a script file to a file synchronized MID Server

# Attach a script file to a file synchronized MID Server {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 Minuten Lesedauer

You can attach a script file to synchronize to a connected MID Server. Windows Internet Explorer enhanced
security blocks downloaded files that it determines are potentially dangerous. However
synchronizing the files avoids this security problem.

## Vorbereitungen

Role required: admin

|-|
|   |
[ ]

{#mid-server-script-attach__table_yfh_kv4_nhb}

## Warum und wann dieser Vorgang ausgeführt wird

Enhanced security in Windows browsers, such as Internet Explorer, blocks downloaded files that it determines are potentially dangerous. This would block files downloaded for use by the MID Server. You would need to unblock each file manually through the browser.

To get around this
issue, use file synchronization. File synchronization requires you to proactively
take script files from your instance and save them on the MID Server. The files on
the instance and the MID server stay synchronized, but there is no longer any need
for the MID Server to download the whole file. File synchronization also protects
any updates you make in those script files from being overwritten during the upgrade
of an instance.

You can attach multiple files, but the last attached file gets synchronized to the MID Server. If you delete the attachment, the script file becomes inactive, and the synchronized file is deleted from the MID Server. {#mid-server-script-attach__ph_mid-script-file-context}

## Prozedur

1. Navigate to AllMID ServerScript Files.
2. Open the file to which you would like to attach the script file, or click New to create a new file.
3. Select Use attachment, and then click the paperclip icon to add the attachment.  
   When Use attachment is checked, an attached script file overrides the script contained in the Script field. If this check box is cleared, the script in the Script field is used instead of the attachment.

   The script file attachment name must match
   the MID Server script file name, since the record can contain other
   attachments.
   {#mid-server-script-attach__step_step3}
{#mid-server-script-attach__step_step3}
4. Click Update to initiate the synchronization process.  
   Ensure that the file name matches the script name. If you receive the error message: File type not permitted or mime type does not match the file content, request that your administrator turn off mime type validation on attachments. The system property glide.security.file.mime_type.validation controls this setting. {#mid-server-script-attach__step_step4}
{#mid-server-script-attach__step_step4}
**Zugehörige Konzepte**   

* [MID Server certificate check policies](https://servicenow-prod.fluidtopics.net/VBqU5CHqCSU2m2xJd2a6uA "MID Server uses four kinds of security checks to secure external traffic. The security checks use TLS/SSL certificate validation, hostname validation, Certificate Revocation List (CRL), and Online Certificate Status Protocol (OCSP) validation to improve security. Control these security checks with the MID Server certificate check policies table.")
* [MID Server authentication credentials and SOAP requests](https://servicenow-prod.fluidtopics.net/80f2cul5Bjz0opflAxzxPg#mid-authentication-soap-requests "Set basic authentication credentials to update the web service invocation data. For added security, you can enforce basic authentication on each incoming SOAP request to the MID Server.")
* [MID Server unified key store](https://servicenow-prod.fluidtopics.net/zWbtuI59iqjA5LfLDw8VPA#mid-unified-keystore "The MID Server unified key store allows all products on the MID Server to use common certificates and key pairs. This feature allows applications to use the same secure communication channel to the MID Server that the MID Server uses to connect to the instance.")
* [MID Server command audit log](https://servicenow-prod.fluidtopics.net/hMnNVhNJPmpY4gLr76lWAg "The command audit log records the commands run by the MID Server for the Discovery application. Review the commands to check for anomalies or errors.")
* [MID Server FIPS Enforced Mode](https://servicenow-prod.fluidtopics.net/dqBc9MICWmUraTd809_RJw#mid-fips-enforced "The MID Server supports the National Security Cloud (NSC) IL-5 environment, which requires all utilized cryptography to be FIPS validated. The MID server can be run in FIPS Enforced Mode, where only cryptographic algorithms which are FIPS validated are utilized.")
* [MID Server Governance](https://servicenow-prod.fluidtopics.net/aFXIuu3zlxcmFMjRZPM1Ug "Improve MID Server security by setting an automatic timeout to invalidate and shut down inactive MID Servers. You can enable this feature and set the inactivity timeout period globally and for each MID Server.")  
**Zugehörige Tasks**   

* [Encrypt or decrypt MID Server configuration file values](https://servicenow-prod.fluidtopics.net/iCgc9bn4JQYK9vgd1wAC6w "The value of any MID Server parameter in the config.xml file can be encrypted. The attributes for all encrypted values are managed from within the configuration file, including the security attribute of the login password.")
* [Enable MID Server mutual authentication](https://servicenow-prod.fluidtopics.net/UdSuWRmz6ZGA~Y6dkWvyeQ "Configure the MID Server to use a client certificate for authenticating to the instance. This avoids the need to create a basic authentication credentials in the Key Store for the MID Server's configuration.")
* [MID Server Azure Key Vault integration](https://servicenow-prod.fluidtopics.net/q98R6SSVMU1wN5ZSqPpYrw#mid_azure_key_vault_integration "The MID Server integration with the Azure Key vault enables Orchestration, Discovery, and Service Mapping to run without storing any credentials on the instance.")
* [Rekey a MID Server](https://servicenow-prod.fluidtopics.net/pL97YclPNbf5hsjR6JhaEA "Rekey a MID Server to generate a new private key. Private keys are used to decrypt automation credentials, so that MID Servers can transmit information securely. Key pairs are initially generated when a MID Server is validated, and MID Servers should be rekeyed periodically to meet security requirements.")
* [Add SSL certificates for the MID Server](https://servicenow-prod.fluidtopics.net/Wze_LuvGY3XWJMv9a~ORjg#add-ssl-certificates "Configure the MID Server to connect to a source over SSL.")  
**Zugehörige Verweise**   

* [MID Server configuration file security](https://servicenow-prod.fluidtopics.net/pExtHd2xoAcm8Vh~FXV9oQ "Sensitive MID Server configuration data can be protected using several different schemes, including internal and external data encryption and external data storage.")
* [MID Server SSH cryptographic algorithms](https://servicenow-prod.fluidtopics.net/6XDl6hCCpG2wR7zHUqkWng "The MID Server utilizes SSH clients to perform many discovery actions. During the SSH handshake, both the client and server first determine which algorithms both parties support, then client picks the highest priority algorithm. For the Host Key Algorithm, the client picks highest priority algorithm which both parties support that matches the key type.")

## Enable script file synchronization for Windows enhanced security {#ariaid-title2}

Windows Internet Explorer
enhanced security blocks downloaded files that it determines are potentially
dangerous.

Script files synchronized with the MID Server are stored on the instance in the MID Server
Script File ` [ecc_agent_script_file]` table, which you can access in the MID ServerScript Files module.

When the MID Server first connects to the instance, the instance creates a directory called
\\scripts in the MID Server root. The instance then creates a parent
directory in the path \\scripts\\\<parent name\> using definitions from
the ecc_agent_script_file table. Finally, the instance creates the script files themselves
inside the parent directory using the records from the ecc_agent_script_file table.

The record for the parent directory looks like this:

<br />

The instance creates each script file in the parent directory on the MID Server using the
record Name from the ecc_agent_script_file table as the file name and the
Script field payload as the file contents. A script file record looks like
this:  

<br />

The synchronization of the script file continues to work as if the script was manually added to the form.

See [Attach a script file to a file synchronized MID Server](https://servicenow-prod.fluidtopics.net/vu1Hjk_D3VmPooctXzxerQ#mid-server-script-attach "You can attach a script file to synchronize to a connected MID Server. Windows Internet Explorer enhanced security blocks downloaded files that it determines are potentially dangerous. However synchronizing the files avoids this security problem.") for instructions on how to attach a
script file.  
Hinweis:  
The MID Server Script File \[ecc_agent_script_file\] table is domain separated. You can create versions of these policies that only a MID Server from the same domain can use. For instructions, see [Set up domain separation for MID servers](https://servicenow-prod.fluidtopics.net/Z4Sc8y19Sj5JoG0VJj1bLQ#t_SetUpDomainSeparationForDiscovery "Set up domain separation through the MID server user role and the MID Server configuration file.").

