> Source: [sk140852](https://support.checkpoint.com/results/sk/sk140852)

# sk140852 - What is the recommended location for placing custom scripts?

| Property | Value |
|----------|-------|
| Solution ID | sk140852 |
| Date Created | 2018-11-21 |
| Last Modified | 2024-07-17 |
| Technical Level | General |
| Products | SmartConsole |
| Versions | R81.20, R81.10 (EOS), R81 (EOS) |

## Solution

Many users are using custom scripts for various purposes. When placing those scripts under the wrong place they might get deleted during an upgrade process.

Check Point's recommendation is to use the Script Repository available in SmartConsole.   
As Check Point Objects, they will survive all upgrades.

Later you can run those scripts on Security Gateways by right-clicking them. You can also run them with the Security Management API referring only to the name of the Script object with the parameter "script".

![](https://sc1.checkpoint.com/sc//SolutionsStatics/NEW_SK_NOID1542796320283/repository11811210239.png)

### ![](https://sc1.checkpoint.com/sc//SolutionsStatics/NEW_SK_NOID1542796320283/repository21811210240.png)
Additional information

1. Where are these scripts actually stored at and who has access to these? Only the admin who created it?   
   Scripts are stored in internal Management database. The access to the scripts is controlled via permissions profile.  

2. How do these work within SmartTasks?  
   Once the script is uploaded to the repository, it is available for use in SmartTasks. Shell and Python scripts are supported.

<br />

**Limitation:**   

The value configured in SmartConsole \> Global properties \> Advanced \> Configure \> Central Device Management \> "device_settings_max_script_length_in_KB" field is not applied.  
**The upper limit is always 8 kilobytes.**

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
