首页 文章

安装Citrix VDA时发生Invoke-command错误

提问于
浏览
0

我想远程安装Citrix VDA . 我在应用服务器上运行了同样的命令,它像我期望的那样安装 . 但是现在当我尝试使用invoke-command远程安装它时,我得到一个错误 .

Invoke-Command -computer appserver.domain.com -scriptblock {start-process -FilePath "C:\XenDesktop 7.15\x64\XenDesktop Setup\XenDesktopVDASetup.exe" -ArgumentList "/noreboot /quiet /components VDA,plugins /masterimage /baseimage /enable_remote_assistance /enable_hdx_ports /optimize /controllers "ddc.domain.com""}

A positional parameter cannot be found that accepts argument 'ddc.domain.com'.
+ CategoryInfo          : InvalidArgument: (:) [Start-Process], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.StartProcessCommand
+ PSComputerName        : appserver.domain.com

2 回答

  • 0

    您应该将dcc.domain.com放在单引号中:'ddc.domain.com'或修复这些双引号 . 要在双引号字符串中使用双引号,您需要将它们加倍:

    -ArgumentList "/noreboot /quiet /components VDA,plugins /masterimage /baseimage /enable_remote_assistance /enable_hdx_ports /optimize /controllers ""ddc.domain.com"""
    
  • 0
    -ArgumentList '/noreboot /quiet /components VDA,plugins /masterimage /baseimage /enable_remote_assistance /enable_hdx_ports /optimize /controllers "ddc.domain.com"'
    

相关问题