Orchestrator Version 2018.4.1, Powershell version 19.4.0.18 (tested on 19.1.0.17 too)
When we try to edit a robot password we get the following message :
Edit-UiPathRobot -Id $robot.Id -Password "123456"
Edit-UiPathRobot : 'LicenseKey' cannot be null.
At line:1 char:1
Edit-UiPathRobot -Id $robot.Id -Password "123456"
+ CategoryInfo : NotSpecified: (:) [Edit-UiPathRobot], ValidationException
+ FullyQualifiedErrorId : Microsoft.Rest.ValidationException,UiPath.PowerShell.Cmdlets.EditRobot
To confirm, Cmdlet Get-UIPathRobot -Id return an object without a LicenceKey:
```
Id : 82
LicenseKey :
MachineName : Machinename
Name : POC robot
Description :
Username : global\pocrobot
Type : Development
HostingType : Standard
CredentialType :
```
Hello,
Orchestrator Version 2018.4.1, Powershell version 19.4.0.18 (tested on 19.1.0.17 too)
When we try to edit a robot password we get the following message : Edit-UiPathRobot -Id $robot.Id -Password "123456" Edit-UiPathRobot : 'LicenseKey' cannot be null. At line:1 char:1
We checked with api call GET on https://orchestratorurl/odata/Robots return the following :
We found https://orchestratorurl/odata/Robots/UiPath.Server.Configuration.OData.GetMachineNameToLicenseKeyMappings() to extract Machine/License key pair then was able to execute the following :
PUT https://orchestratorurl/odata/Robots(82)
I think that the Get-UiPathRobot should query GetMachineNameToLicenseKeyMapping to fill the licenskey or the Edit-UiPathRobot should do it on edition.