Create a Script
A script runs configuration tasks on Windows endpoints, such as setting registry values, joining a domain, or removing an application. You build a script from PowerBricks, so you don’t need to write any code.
Create the script
Section titled “Create the script”-
Go to Windows → Applications and select the Scripts tab.
-
Click New.

-
Optionally, under Source Files, upload files that the script can download and use when it runs, for example a configuration file. Upload every file that a PowerBrick uses, such as the file in Copy File. If a file is missing, the installation fails. See Script or Company App Install Fails Because a File Is Missing.
-
Enter a Name and a Version. Don’t use characters that aren’t allowed in Windows file names, such as
|or:. If you do, the script stays in Sending on the endpoints. See Company App and Script Problems. -
Under PowerBricks, open the PowerBricks Editor and add the bricks to the Install sequence. The Install sequence runs when you assign the script, also when the script removes software. The Uninstall sequence runs only when you uninstall the script from the endpoint. If Install is empty, the script fails with
Failed Missing bricks. See PowerBricks and Company App and Script Problems. -
Optionally, add a Description and an Icon.
-
Select the Installation Tier. Standard is the default. See Installation Tiers.
-
Select the Release status. Testing is the default.
-
Click Create.
The Create button stays unavailable until the required fields are filled in. Hover over it to see which fields are missing.
Scripts don’t have Architecture or Language settings.
To create a script from one that was exported with Export for CapaOne, select
Import script on the New page and select the exported .zip file. If you’ve already filled
in fields, CapaOne asks you to confirm, because the imported script overwrites them.
Manage scripts
Section titled “Manage scripts”The Scripts tab lists each script’s Name, Version, Release Status, and the number of Endpoints and Groups it’s assigned to. Scripts share the storage shown at the top of the tab with Company Apps.
The row menu has Assignment (Direct or Groups), Edit, Duplicate,
View content, Export for CapaInstaller, Export for CapaOne, and Delete.
Export for CapaOne downloads the script as a .zip file that you can import again.
Next steps
Section titled “Next steps”Assign the script to endpoints or groups. See Assign and Redeploy Windows Applications.
To run the script on a schedule, or on all endpoints that match a filter, use a workflow with the Install script action. See Automation.