

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

# AppserverClient Command Line Interface

## setsmartsizing

changes smart-sizing runtime settings for an RDP connection session.

**Category: RDP-Connections**


```
AppServerClientCLI setsmartsizing -id rdp:5 -type disabled/scaletofit/resize
```
* **` id (mandatory) `** Specify the RDP connection ID to use.
* **` type (mandatory) `** Determine which type of sizing will be used.
## Return codes:
  ok
  NotAvailable
  InvalidId
  InvalidArgs
  InvalidState
  Exception
## Examples:
  AppServerClientCLI setsmartsizing -id rdp:5 -type disabled
## Notes:
  Can be used with RDP connections only, and the session must be running.
## See also:
[connectrdpobj](connectrdpobj.md)
[disconnectrdpobj](disconnectrdpobj.md)
[disconnectallrdp](disconnectallrdp.md)
[getsmartsizing](getsmartsizing.md)
