> 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/powershell/remote-desktop-manager-powershell/batch-edit-folders-with-custom-powershell-commands.md).

# Batch edit folders with custom PowerShell commands

In Remote Desktop Manager, to edit several or all folders in a specific vault, you have to use the [Advanced search](https://docs.devolutions.net/rdm/commands/view/search/advanced/) feature.

1. Go to ***View – Search – Advanced search*** (or access it using the <kbd>F11</kbd> keyboard shortcut).

   ![](https://cdnweb.devolutions.net/docs/RDMW2054_2024_2.png)
2. Set the first search condition to ***Connection type***, then further specify the ***Folder*** type in the second drop-down menu.

   ![](https://cdnweb.devolutions.net/docs/RDMW2055_2024_2.png)
3. Click ***Search***.
4. Select the folders you want to edit in the results.
   * Use <kbd>Shift</kbd>+click to select several folders one at a time.
   * Use <kbd>Ctrl</kbd>+<kbd>A</kbd> to select all the folders at once.
5. Right-click on your selection and select ***Edit – Edit (special actions)***.

   ![](https://cdnweb.devolutions.net/docs/RDMW2056_2024_2.png)
6. Select the ***Custom PowerShell command*** special action, then click ***Execute***.

   ![](https://cdnweb.devolutions.net/docs/RDMW2057_2024_2.png)
7. Enter your PowerShell command then click ***Ok***.

The command will run on all folders and edit them accordingly.


---

# 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 dynamically by asking a question.

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

```
GET https://docs.devolutions.net/powershell/remote-desktop-manager-powershell/batch-edit-folders-with-custom-powershell-commands.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.
