

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

# AppserverClient Command Line Interface

## disconnectsession

disconnects a session created from a RAS or RDP connection.

**Category: Sessions**




```  
AppServerClientCLI disconnectsession -id session:545567  
```
## Arguments  
* **` id (mandatory) `** Specify a session ID to disconnect.

## Return codes:  
  ok - Command was successful  
  NotAvailable - Communication with the client backend failed, ensure that the client is running  
  InvalidArgs - Some arguments are missing or invalid  
  InvalidId - Invalid connection, object or session ID  
  Exception - System problem

## Examples:  
  AppServerClientCLI disconnectsession -id session:545567



## See also:  
[sendkeys](sendkeys.md)    
[sendmouseevents](sendmouseevents.md)    
[sendkeyboardevents](sendkeyboardevents.md)    
[getsessionsinfo](getsessionsinfo.md)    
[uploadfile](uploadfile.md)    
[downloadfile](downloadfile.md)  
