> For the complete documentation index, see [llms.txt](https://docs.devolutions.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.devolutions.net/unigetui/for-it-teams/organization/devolutions-agent.md).

# Install approved apps without admin rights

Create a package policy with the Devolutions UniGetUI policy editor, and let standard users install the apps you approve without admin rights or UAC prompts.

Standard users can't run most installers on Windows. With Devolutions Agent, they don't need to: Devolutions UniGetUI hands the operation to the Agent, which checks it against **your policy** and runs it with the rights it needs. Users get the apps they're allowed to have, and nothing else.

{% hint style="info" %}
Windows only. Requires Devolutions Agent with its UniGetUI Package Broker feature.
{% endhint %}

## How it works

1. A user clicks ***Install***, ***Update*** or ***Uninstall*** in Devolutions UniGetUI.
2. Instead of showing a UAC prompt, Devolutions UniGetUI sends the request to the package broker in Devolutions Agent.
3. Before sending it, Devolutions UniGetUI checks the request against what the Agent accepts, for example the installation options, the architecture and the elevation. A request the Agent would refuse isn't sent: the operation fails with ***The package broker cannot accept this request*** and the list of options to change.
4. The Agent checks that the request comes from a signed, unmodified Devolutions UniGetUI, then compares it with the package policy you defined: which apps, sources, operations and versions are allowed.
5. If the policy allows it, the Agent runs the operation and Devolutions UniGetUI shows its progress and output as usual. If not, the operation fails with ***Operation denied by policy***, the reason you wrote in the rule and the rule ID.

**It's fail-closed.** If the Agent isn't installed, isn't running, or can't be reached, the operation fails. Devolutions UniGetUI never falls back to a UAC prompt. And if a user turns the broker off in Devolutions UniGetUI, they're back to UAC prompts they can't approve without administrator credentials, so they gain nothing.

Operations of WinGet, Chocolatey, Scoop, Windows PowerShell, PowerShell 7, pip, npm, Bun, Cargo, .NET Tool and vcpkg can go through the Agent. Apps that Devolutions UniGetUI only detects on the computer (source ***Local PC***) aren't sent to it. A brokered operation that doesn't finish within one hour is reported as failed, even if it may still be running in the Agent.

## Set up the broker

{% stepper %}
{% step %}

### Install Devolutions Agent with the package broker

The package broker is the ***UniGetUI Package Broker*** feature of the Devolutions Agent installer. It's off by default.

1. Select ***UniGetUI Package Broker*** in the Devolutions Agent installer, or add `F.PackageBroker` to `ADDLOCAL` in a silent installation. `ADDLOCAL` installs only the features it lists:

```powershell
msiexec /i DevolutionsAgent.msi /qn ADDLOCAL=F.Agent,F.Updater,F.Session,F.PackageBroker
```

2. Deploy it to the computers. See [Deploy Devolutions Agent silently](https://docs.devolutions.net/agent/deploy-devolutions-agent-silently).

The feature sets `PackageBroker.Enabled` to `true` in `%ProgramData%\Devolutions\Agent\agent.json`. The Agent reads its policy from `%ProgramData%\Devolutions\PackageBroker\package-broker-policy.json`, unless `PackageBroker.PolicyPath` in `agent.json` points to another file. Until a valid policy exists, the Agent refuses every package operation.
{% endstep %}

{% step %}

### Install Devolutions UniGetUI for all users

[Install Devolutions UniGetUI for all users](https://docs.devolutions.net/unigetui/for-it-teams/organization/deploy.md) (`/ALLUSERS`), in `C:\Program Files\UniGetUI`. The Agent only accepts requests from a signed Devolutions UniGetUI that standard users can't modify, and creating or editing the policy from Devolutions UniGetUI also requires this installation.
{% endstep %}

{% step %}

### Turn on the broker in Devolutions UniGetUI

1. Go to ***Settings*** – ***Administrator rights and other dangerous settings***.
2. Turn on ***Delegate package operations to the Devolutions Agent broker***.

From now on, install, update and uninstall operations go through the Agent. Until a valid package policy is installed, they fail with ***Package operations are paused***.

To turn it on for your users from a script, run `UniGetUI.exe --enable-setting UseAgentBroker` in each user's session. In the [terminal UI](https://docs.devolutions.net/unigetui/reference/terminal-ui.md), the option is ***Delegate package operations to the Devolutions Agent***.
{% endstep %}
{% endstepper %}

## Create and edit the package policy

The package policy lists what users may install, update and uninstall. You create and change it in Devolutions UniGetUI, with the package broker policy editor.

1. Go to ***Settings*** – ***Administrator rights and other dangerous settings***.
2. Click ***Inspect active package broker policy***.
3. If the ***State*** shows that no policy file exists, click ***Create***. To change the active policy, click ***Edit***.
4. Replace the ***Policy ID*** (`new-policy` in a new policy) with your own, for example `contoso-workstations`.
5. Replace the ***Publisher*** (`Your organization`) with your organization's name.
6. Optionally, enter a ***Support URL*** where users can ask for an exception. To add a description, select ***Description*** and type it.
7. Under ***Enforcement***, expand ***Advanced*** and leave the ***Default decision*** on ***Deny***, so anything you don't explicitly allow is blocked.
8. Click ***Add rule*** for each group of apps you want to allow. A new rule is a disabled ***Deny*** rule.
9. In each rule, set ***Decision*** to ***Allow*** and choose its match criteria.
10. Select the check box in the rule header to enable the rule.
11. Click ***Save*** and approve the Windows administrator prompt.

The ***Policy ID*** can't be changed when you edit a policy. To start over with another ID, click ***Replace identity*** instead of ***Edit***.

To change a rule later, open the editor with ***Edit***. Each rule has ***Duplicate***, ***Move up***, ***Move down*** and ***Delete*** buttons. To review or change the whole policy as JSON, click ***Raw JSON*** at the top of the editor, and ***Structured*** to go back to the guided fields.

{% hint style="info" %}
Rolling out for the first time? Under ***Enforcement*** – ***Advanced***, set ***Audit mode*** to ***Yes***. The Agent logs what it would deny but lets everything through. Once the logs look right, set it back to ***No***.
{% endhint %}

You can also deploy the policy file with your usual tool instead of saving it from each computer: create it once in the editor, copy the result from the ***Canonical policy JSON*** section of the inspection page, then copy the file to the policy path of each computer. The Agent reloads the file when it changes. It accepts only a file and folder that only SYSTEM and the Administrators group can write to, and treats any other file as invalid.

### What a policy can control

Each rule is set to ***Allow*** or ***Deny*** and applies to the requests that match it. Rules are evaluated in order: the first enabled rule that matches decides, and ***Move up*** and ***Move down*** change the order. When no enabled rule matches, the ***Default decision*** applies. Leave a criterion empty to match everything.

<table><thead><tr><th width="220">CONTROL</th><th>EXAMPLES</th></tr></thead><tbody><tr><td><strong>Package identifiers</strong></td><td>Exact identifiers (<code>Mozilla.Firefox</code>) or identifier patterns with <code>*</code> and <code>?</code> (<code>Contoso.*</code>).</td></tr><tr><td><strong>Source names</strong></td><td>Only the <code>winget</code> source, or your internal Chocolatey feed. Available when exactly one package manager that supports sources is selected.</td></tr><tr><td><strong>Operations</strong></td><td>Allow updates for everything, but installs only for a short list.</td></tr><tr><td><strong>Package versions</strong></td><td>Exact versions, or a range with a minimum and a maximum version, with or without prereleases. Version criteria don't apply to uninstalls.</td></tr><tr><td><strong>Scopes, architectures, execution privilege</strong></td><td>User or machine installs; x86, x64, Arm64 or neutral packages; standard or elevated requests.</td></tr><tr><td><strong>Request characteristics</strong></td><td>Interactive installs, skipped hash checks, prereleases, custom parameters, custom install location, pre/post commands, stopping running apps, uninstalling the previous version. Each one is <em><strong>Does not matter</strong></em>, <em><strong>Yes</strong></em> or <em><strong>No</strong></em>.</td></tr></tbody></table>

When a request detail is unknown, for example a version that the package manager chooses during the installation, Deny rules match the request and Allow rules don't.

On an ***Allow*** rule, expand ***Additional safety limits*** and select ***Add safety limits to this Allow rule*** to restrict what a matching request may do, for example to forbid custom parameters or to accept only some install folders.

{% hint style="danger" %}
Skipping hash checks, custom parameters and pre/post commands can run arbitrary code with elevated rights. Keep them off in your Allow rules unless you've reviewed a specific need.
{% endhint %}

You can also limit when the whole policy applies with ***Valid from*** and ***Valid until***. Outside this period, the Agent rejects package operations.

## Check that it works

Install an allowed app and a forbidden one from a standard user account. The first should install without any prompt; the second should fail with ***Operation denied by policy***.

## Inspect the active policy

Anyone can check what's enforced on a computer, which helps when a user reports a denied app.

1. Go to ***Settings*** – ***Administrator rights and other dangerous settings***.
2. Click ***Inspect active package broker policy***.
3. Review the ***Package broker policy*** section, then the rules. Click ***Refresh*** after a policy change.

<table><thead><tr><th width="260">FIELD</th><th>WHAT IT TELLS YOU</th></tr></thead><tbody><tr><td><strong>State</strong></td><td>Whether a valid policy is in effect, missing, or invalid. An invalid policy must be fixed or replaced by an administrator outside Devolutions UniGetUI.</td></tr><tr><td><strong>Configured path</strong> / <strong>Path source</strong></td><td>Where the Agent reads the policy file, and whether that's its default location or a path set in the Agent configuration.</td></tr><tr><td><strong>Agent write capability</strong></td><td>Whether the Agent lets the policy be changed: <strong>Writable</strong>, <strong>Read-only</strong> or <strong>Unsupported</strong>.</td></tr><tr><td><strong>Policy changes from this app</strong> / <strong>Reason</strong></td><td>Whether you can edit the policy from this Devolutions UniGetUI, and why not. Editing requires the Agent's permission and an all-users installation.</td></tr><tr><td><strong>Elevation required</strong></td><td>Whether saving asks for Windows administrator approval.</td></tr></tbody></table>

Below the rules, ***Canonical policy JSON*** shows the policy exactly as the Agent reads it. Click ***Copy to clipboard*** to copy it, for example to send it to support.

If the page shows ***Devolutions Agent is unavailable***, check that the Agent is installed and its service is running, then click ***Refresh***.

## What users see

For users, nothing changes: they install and update apps as usual, without UAC prompts. When something goes wrong, the operation fails with one of these messages:

<table><thead><tr><th width="280">MESSAGE</th><th>WHAT TO DO</th></tr></thead><tbody><tr><td><strong>Operation denied by policy</strong></td><td>The policy doesn't allow this app, source, operation or version. The rule's reason and ID are shown. Ask your administrator.</td></tr><tr><td><strong>The package broker cannot accept this request</strong></td><td>Devolutions UniGetUI didn't send the request, because the Agent would refuse some of its options. The options are listed. Change the installation options of the package, or choose another package or source.</td></tr><tr><td><strong>The package broker rejected the request</strong></td><td>The Agent didn't accept one of the options of the operation. The details are shown. Change the installation options of the package.</td></tr><tr><td><strong>Package operations are paused</strong></td><td>No valid package policy is installed. Ask your administrator.</td></tr><tr><td><strong>The Devolutions Agent refused this operation</strong></td><td>The Agent doesn't allow the operation right now, for example because the policy is outside its <em><strong>Valid from</strong></em> and <em><strong>Valid until</strong></em> period. Ask your administrator.</td></tr><tr><td><strong>UniGetUI is not authorized to use the Devolutions Agent</strong></td><td>The Agent only accepts signed, unmodified copies of Devolutions UniGetUI. Install an official release for all users.</td></tr><tr><td><strong>Administrator rights are required</strong></td><td>The Agent accepts this request only from an administrator running with elevated rights.</td></tr><tr><td><strong>Agent broker unavailable</strong></td><td>Devolutions Agent isn't installed or isn't running.</td></tr><tr><td><strong>The Devolutions Agent is busy</strong></td><td>The Agent is handling too many requests. Try again in a moment.</td></tr><tr><td><strong>The request is too large</strong></td><td>The custom arguments or commands of the operation are too long. Shorten them.</td></tr><tr><td><strong>Operation unsupported by broker</strong></td><td>The Agent doesn't support this operation or option.</td></tr><tr><td><strong>Broker communication error</strong></td><td>The Agent didn't answer in time, or returned an unexpected response. Try again in a moment.</td></tr><tr><td><strong>The module conflicts with installed commands</strong></td><td>A Windows PowerShell module needs the <code>-AllowClobber</code> option, which can't be used through the Agent. Ask your administrator.</td></tr><tr><td><strong>Operation failed via broker</strong></td><td>The Agent accepted the request but the operation failed or didn't finish in time. Open the operation output for details.</td></tr></tbody></table>

## If it doesn't work

* Every operation fails with ***Agent broker unavailable***: the Agent service is stopped or missing, or its ***UniGetUI Package Broker*** feature isn't installed. See [An update or installation fails](https://docs.devolutions.net/unigetui/help/troubleshooting/update-or-install-fails.md).
* Every operation fails with ***UniGetUI is not authorized to use the Devolutions Agent***: Devolutions UniGetUI is installed for the current user only, or it isn't an official release. [Reinstall it for all users](https://docs.devolutions.net/unigetui/for-it-teams/organization/deploy.md).
* You can't click ***Create*** or ***Edit***: read the ***Reason*** field. Usually Devolutions UniGetUI isn't installed for all users, or the Agent doesn't allow policy changes.
* A user needs support: [Send logs to support](https://docs.devolutions.net/unigetui/help/troubleshooting/send-logs-to-support.md).

## Next

* [Lock down risky settings](https://docs.devolutions.net/unigetui/for-it-teams/organization/restrict-settings.md)
* [Standardize workstations](https://docs.devolutions.net/unigetui/for-it-teams/organization/standard-workstations.md)
* [Devolutions Agent documentation](https://docs.devolutions.net/agent)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.devolutions.net/unigetui/for-it-teams/organization/devolutions-agent.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
