# savefavorites

![Parralels](https://www.parallels.com/static/pl/fileadmin/res/img/navigation/pl-logo-dk.png)

## AppserverClient Command Line Interface

### savefavorites

saves a comma separated list of the published items added to Favorites.

**Category: RAS-Connections**

```
AppServerClientCLI savefavorites -id ras:5 -favorites 2,5,10 [-synch] [-window 12345]  
```

### Arguments

* **`id (mandatory)`** Specify the RAS connection ID to use.
* **`favorites (mandatory)`** Specify the published items to save in Favorites.
* **`synch (optional)`** Return once data is processed by the backend. See notes for further information.
* **`window (optional)`** Specify the window handle that will be used as the parent to any UI required.

### Return codes:

ok - Command was successful\
NotAvailable - Communication with the client backend failed, ensure that the client is running\
InvalidId - Invalid connection, object or session ID\
InvalidArgs - Some arguments are missing or invalid\
ElevationAccess - CLI process is running at a higher process privilege\
Exception - System problem

### Examples:

AppServerClientCLI savefavorites

### Notes:

With the synch on, this method will return once the data is processed by the backend, but before it is sent to the RAS server.\
If the RAS server is not reached or failed, you will not be notified.

### See also:

[logonras](https://docs.parallels.com/landing/ras-windows-cli-guide/v20/commands/logonras)\
[logoffras](https://docs.parallels.com/landing/ras-windows-cli-guide/v20/commands/logoffras)\
[logoffallras](https://docs.parallels.com/landing/ras-windows-cli-guide/v20/commands/logoffallras)\
[logoffrassession](https://docs.parallels.com/landing/ras-windows-cli-guide/v20/commands/logoffrassession)\
[startrasobj](https://docs.parallels.com/landing/ras-windows-cli-guide/v20/commands/startrasobj)\
[disconnectras](https://docs.parallels.com/landing/ras-windows-cli-guide/v20/commands/disconnectras)\
[disconnectallras](https://docs.parallels.com/landing/ras-windows-cli-guide/v20/commands/disconnectallras)\
[getloggedrasinfo](https://docs.parallels.com/landing/ras-windows-cli-guide/v20/commands/getloggedrasinfo)\
[getraspolicyinfo](https://docs.parallels.com/landing/ras-windows-cli-guide/v20/commands/getraspolicyinfo)\
[getpublicipinfo](https://docs.parallels.com/landing/ras-windows-cli-guide/v20/commands/getpublicipinfo)\
[clearpublicipinfo](https://docs.parallels.com/landing/ras-windows-cli-guide/v20/commands/clearpublicipinfo)
