# Run PowerShell Script on Selected Devices Crate

{% hint style="info" %}
If you’re new to Crates, read through our introductory Crate documentation [here](https://docs.rewst.help/prebuilt-automations/crates). Find the Crate in our Crate Marketplace.
{% endhint %}

## What does the Run PowerShell Script on Selected Devices Crate do?

This Crate allows for instant, managed execution of stored PowerShell scripts, streamlining your operations. Run PowerShell scripts effortlessly on selected devices within your specified organizations.

### How the Crate works

The Crate contains a form that is used to choose your device and trigger the running of the script.

* From the available list of PowerShell scripts in Rewst, choose the one to be executed.
* Specify the target devices and organizations where the script should run.
* The selected script is run on the chosen devices, within the targeted organizations, then updates or creates a ticket.

## Crate prerequisites

Before unpacking this Crate, you'll need to successfully integrate both your [PSA](https://docs.rewst.help/integrations/top-5-integration-types-get-started-with-integrations-in-rewst#psa-integrations) and [RMM](https://docs.rewst.help/integrations/top-5-integration-types-get-started-with-integrations-in-rewst#rmm-integrations) with Rewst.&#x20;

## Unpack the Run PowerShell Script on Selected Devices Crate

1. Navigate to **Marketplace > Crates** in the left side menu of the Rewst platform.
2. Search for `Run PowerShell Script on Selected Devices`**.**\
   \
   ![](https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FDC566WUCkQi2C6pMMtl6%2FScreenshot%202025-09-22%20at%209.32.25%E2%80%AFAM.png?alt=media\&token=d785367c-3586-439b-bc76-b81e7c496432)<br>
3. Click on the Crate tile to begin unpacking.
4. Click **Continue**.
5. Note that you have the option under the **Form Submission** accordion menu to activate the Crate for all future organizations in addition to the current one. You may also set activation to certain [tags](https://docs.rewst.help/documentation/settings/tags-in-rewst), [trigger criteria](https://docs.rewst.help/documentation/automations/intro-to-triggers/trigger-criteria), or for integration overrides.
6. Ensure that **Enabled** is toggled on.
7. Click **Unpack**.

### Use the Crate

1. Navigate to **Automations > Assets > Forms** in the left side menu of your Rewst platform.
2. Search for `Run Ad-Hoc PowerShell on Computer`.
3. Click **⋮ > Usages > View Direct URLs**.&#x20;
4. Click on the link for the organization which contains your relevant user. This will launch the form in a new tab.
5. Choose your desired information from the relevant drop-down selector fields:
   1. Your relevant Rewst **Organization**&#x20;
   2. The **Existing Ticket** in your PSA&#x20;
   3. The computer or computers where the script will be run
   4. The PowerShell script, included in the list in the **Rewst Script** field
6. Click **Submit**.

<figure><img src="https://1835401289-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FAQQ1EHVcEsGKBPVHmiav%2Fuploads%2FYIebGlPuKByL7InePeok%2FScreenshot%202025-09-22%20at%209.39.55%E2%80%AFAM.png?alt=media&#x26;token=acc43b34-f6e7-4a1a-856d-de5394942e4d" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Got an idea for a new Crate? Rewst is constantly adding new Crates to our Crate Marketplace. Submit your idea or upvote existing ideas here in our [Canny feedback collector](https://rewst.canny.io/crates).
{% endhint %}
