Failed to Publish Image to PVS server, Unidesk Agent error: "The specified service does not exist"

Failed to Publish Image to PVS server, Unidesk Agent error: "The specified service does not exist"

book

Article ID: CTX222626

calendar_today

Updated On:

Description

When publishing a Citrix App Layering image to PVS, you might get an error like this - 
 

Error: The operation being requested was not performed because the user has not logged on to the network. The specified service does not exist.

You may also see 'Access is Denied'. This is recorded in the Unidesk Agent log on the PVS server in C:\Program Files (x86)\Unidesk\Agent\Logs. 
 
2017-03-28 11:46:51,994 ERROR 19 HandlerHelper: 'Application Error while processing 'Command' 'InvokePowerShellScriptCommand'': 'DefaultTitle="", MessageID="PowerShellSimpleError", {CategoryData={[PowerShellExceptionCategory { Command = "Start-BitsTransfer -DisplayName 'Unidesk Agent File Transfer: id=c2b5d790-13cd-11e7-b0b8-8175137493b2' -Source 'http://10.0.0.10:3009/api/FileTransfers/c2b5b080-13cd-11e7-b0b8-8175137493b2' -Destination 'E:\Store1\PVSimage_2017-03-28_11-46-51.vhd' -RetryInterval 60 -RetryTimeout 300 -Asynchronous", Message = "The operation being requested was not performed because the user has not logged on to the network. The specified service does not exist. (Exception from HRESULT: 0x800704DD)", ServerAddress = <null>, ExceptionType = "COMException" }]}'
2017-03-28 11:46:51,994 ERROR 19 HandlerHelper: Title: Error  Message: The operation being requested was not performed because the user has not logged on to the network. The specified service does not exist. (Exception from HRESULT: 0x800704DD)  Details:

It is also recorded in the ELM logs in unidesk-pvs-connector.log.json.log:
 
[2017-03-28T10:31:12.304Z] ERROR: AgentClientService/1331 on localhost.localdomain: (reqNum=1575)
    Command failed, throwing: {
        "$type": "Uni.Core.Contract.Results.LocalizedError, Uni.Core",
        "Title": "Error",
        "Message": "The operation being requested was not performed because the user has not logged on to the network. The specified service does not exist. (Exception from HRESULT: 0x800704DD)",
        "Details": "",
        "CategoryData": {
            "$type": "Uni.Core.Contract.Results.PowerShellExceptionCategory, Uni.Core",
            "Command": "Start-BitsTransfer -DisplayName 'Unidesk Agent File Transfer: id=30fd0c10-13c3-11e7-9c7c-71b2212cd4ee' -Source 'http://10.0.0.10:3009/api/FileTransfers/30fce500-13c3-11e7-9c7c-71b2212cd4ee' -Destination 'E:\\Store1\\PVSimage_2017-03-28_10-31-11.vhd' -RetryInterval 60 -RetryTimeout 300 -Asynchronous",
            "Message": "The operation being requested was not performed because the user has not logged on to the network. The specified service does not exist. (Exception from HRESULT: 0x800704DD)",
            "ServerAddress": null,
            "ExceptionType": "COMException"
        },
        "InnerError": null
    }


 

Resolution

On the PVS Server, verify that the Unidesk Agent service is set to run as Local System. 

On the PVS server, make sure UAC is enabled and set to 'Default'. 

On the PVS server, run Powershell as Administrator and run the following command: 

enable-PSRemoting

Allow it to make any changes.

Stop and start the Unidesk Agent service