# Examples

## Parallels RAS PowerShell - Examples

This section is organized into the following sub-sections:

[**Basic Example**](https://docs.parallels.com/landing/ras-powershell-api-guide/examples/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**](https://docs.parallels.com/landing/ras-powershell-api-guide/examples/farm) expands the basic example and shows how to modify objects, handle multiple objects and groups, and manage default settings.

[**Publishing Example**](https://docs.parallels.com/landing/ras-powershell-api-guide/examples/publishing) demonstrates how to manage published resources and use filtering options.

[**VDI Example**](https://docs.parallels.com/landing/ras-powershell-api-guide/examples/vdi) demonstrates how to add a Provider, and publish a desktop from a VDI Template.

[**Status Info Example**](https://docs.parallels.com/landing/ras-powershell-api-guide/examples/statusinfo) demonstrates how to retrieve status information of an RDS, Gateway, Broker, Site and Provider.

[**RAS Agent Example**](https://docs.parallels.com/landing/ras-powershell-api-guide/examples/rasagent) demonstrates how to manage RAS Agent operations.

[**RDS Template Example**](https://docs.parallels.com/landing/ras-powershell-api-guide/examples/rdstemplate) demonstrates how to add an RDS Template and use it in an RDS Group.

[**Connection Broker Promote Example**](https://docs.parallels.com/landing/ras-powershell-api-guide/examples/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).

© 2026 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.
