Manage Chocolatey Packages Crate
What does the Manage Chocolatey Packages Crate do?
This Crate allows you to install or uninstall specific software via Chocolatey on a chosen client's device, directly from your PSA ticket.
Crate prerequisites
Before unpacking this Crate, you must have your PSA integrated with Rewst.
Workflow breakdown
The workflow begins with the START task using the noop action, which serves as the entry point and immediately transitions to the next step.
The list_computers task executes the [REWST - TASK] List Computers action to retrieve a list of computers from the default RMM system for the specified organization, creating a mapping of computer IDs to labels for later use in ticket descriptions.
If the list_computers task succeeds, it publishes a computers_map dictionary for fast lookup and proceeds to the next step; if it fails, it sets an empty dictionary but continues the workflow execution.
The run_powershell_via_rmm task executes the [REWST - TASK] Run Powershell via RMM action with items iteration, running PowerShell scripts on each computer ID provided in the input with a concurrency limit of 5 simultaneous executions.
Regardless of success or failure, the run_powershell_via_rmm task transitions to the is_ticket_id_provided task, which uses the noop action to check if a ticket ID was provided in the workflow input.
If a ticket ID is provided, the workflow transitions to the update_ticket_internal_note task, which executes the [REWST - TASK] Update Ticket Internal Note action to add the execution results as an internal note to the existing PSA ticket.
If no ticket ID is provided, the workflow transitions to the psa_create_ticket task, which executes the [REWST - PROCESS] PSA: Create Ticket action to create a new PSA ticket with the Chocolatey package management results.
Both the update_ticket_internal_note and psa_create_ticket tasks transition to the END task on success, or to the FAILED task on failure, both using the noop action.
The FAILED task, if reached, transitions to the END task to complete the workflow execution.
The END task uses the noop action and publishes an automation log template before completing the workflow, serving as the final step regardless of the execution path taken.
Unpack the Manage Chocolatey Packages Crate
Navigate to Crates > Crate Marketplace in the left side menu of the Rewst platform.
Search for
Manage Chocolatey Packages.
Click on the Crate tile to begin unpacking.
Click Unpack Crate.
Click Continue.
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 trigger criteria or for integration overrides. Ensure that Enabled is toggled on.
Click Unpack.
Use the form
Navigate to Automations > Forms.
Search for the form named
Chocolatey: Manage Packages.Click ⋮ and select Usages.
Click View Direct URLs.
Click the link that corresponds to your desired organization.
In the Organization drop-down of the form, choose the org you'd like to use to run the form.
Select your desired Action.
Enter the name of the Chocolatey package to process in the Package Name field.
Select which computers to run the action on in the Computers drop-down selector.
Select an existing ticket to log the output of the workflow. If no choice is made, Rewst will create a new ticket.
Click Submit.

Last updated
Was this helpful?

