

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

# AppserverClient Command Line Interface

## updateconnection

changes credentials and (optionally) hardware ID.

**Category: Connections**




```  
AppServerClientCLI updateconnection -id ras:5 -username user -password pwd [ -hwid dummyhwid ]  
```
## Arguments  
* **` id (mandatory) `** Specify the connection ID to update.  
* **` username (mandatory) `** Specify the new username.  
* **` password (mandatory) `** Specify the new password.  
* **` hwid (optional) `** Specify a device hardware ID (could be a fake one).

## 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  
  Exception - System problem

## Examples:  
  AppServerClientCLI updateconnection -id ras:5 -username user -password pwd  
  AppServerClientCLI updateconnection -id ras:5 -username user -password pwd -hwid myhwid



## See also:  
[listconnections](listconnections.md)    
[addconnection](addconnection.md)    
[duplicateconnection](duplicateconnection.md)    
[deleteconnection](deleteconnection.md)    
[getshareddevice](getshareddevice.md)    
[setshareddevice](setshareddevice.md)    
[clearshareddevice](clearshareddevice.md)  
