# Queues

{% hint style="danger" %}
Queues are deprecated and will be removed in version 5. They have been replaced by [Computer Groups](/v4-beta/platform/computers.md#computer-groups).
{% endhint %}

You can assign computers to queues by using application settings. By default, every computer is assigned to the default queue and a queue specific to the computer itself. When you assign a computer to a custom queue, that queue will be available in the admin console and you can use the queue for ad-hoc script execution and schedules.&#x20;

{% hint style="warning" %}
Queues with no active computers will queue jobs indefinitely.&#x20;
{% endhint %}

## Configure a Queue

To a configure a computer to a specific queue, use the UniversalAutomation \ Queues setting.&#x20;

### appsettings.json

Assign a machine to a queue using an appsettings.json file.&#x20;

```powershell
"UniversalAutomation": {
    "Queues": ["windows7"],
}
```

### Environment Variable&#x20;

Assign a machine to a queue using an environment variable.&#x20;

```powershell
$ENV:UniversalAutomation__Queues = "windows7"
```

## Using a Custom Queue

Custom queues will be available within the Computer drop down in the script Run dialog, and trigger, script and schedule properties.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.powershelluniversal.com/v4-beta/automation/queues.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
