简体   繁体   English

安装Citrix VDA时调用命令错误

[英]Invoke-command error when install Citrix VDA

I'm looking to install the Citrix VDA remotely. 我希望远程安装Citrix VDA。 I ran this same command on the app server and it installed like I would expect. 我在应用服务器上运行了相同的命令,并按预期安装了它。 But now when I try to install it remotely with the invoke-command I get an error. 但是现在当我尝试使用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

You should either put dcc.domain.com in single quotes: 'ddc.domain.com' or fix those double quotes. 您应该将dcc.domain.com放在单引号中:'ddc.domain.com'或修复那些双引号。 To use double quotes in a double quoted string, you'll need to double them up: 要在双引号字符串中使用双引号,您需要将其加倍:

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM