# Examples

## Parallels RAS PowerShell - Examples

This section is organized into the following sub-sections:

[**Basic Example**](basic) demonstrates how to start a session, add\
major objects to a site, publish a desktop, activate a license, apply\
the changes, and finally end the session.

[**Farm Example**](farm) expands the basic example and shows how to\
modify objects, handle multiple objects and groups, and manage default\
settings.

[**Publishing Example**](publishing) demonstrates how to manage\
published resources and use filtering options.

[**VDI Example**](vdi) demonstrates how to add a Provider, and\
publish a desktop from a VDI Template.

[**Status Info Example**](statusinfo) demonstrates how to retrieve\
status information of an RDS, Gateway, Broker, Site and Provider.

[**RAS Agent Example**](rasagent) demonstrates how to manage RAS\
Agent operations.

[**RDS Template Example**](rdstemplate) demonstrates how to add an\
RDS Template and use it in an RDS Group.

[**Connection Broker Promote Example**](papromote) demonstrates how\
to promote a backup Connection Broker (Broker) when the primary\
Connection Broker is down.

You can find more scripts and examples from Parallels and RAS Community\
on[**GitHub**](https://github.com/Parallels/RAS-PowerShell/blob/master/Samples/README.md).

© 2025 Parallels International GmbH. Parallels and the Parallels logo\
are trademarks or registered trademarks of Parallels International GmbH\
in Canada, the U.S., and/or elsewhere.
