简体   繁体   English

在没有任何用户提示的情况下安装CitrixReceiver.exe

[英]Installing CitrixReceiver.exe without any user prompts

I'm trying to install CitrixReceiver.exe silently via a PowerShell v5 script so the user doesn't get prompted for anything. 我正在尝试通过PowerShell v5脚本静默安装CitrixReceiver.exe,因此用户不会收到任何提示。

Start-Process "C:\HelpDesk\CitrixReceiver.exe" -ArgumentList '/silent' -wait

The script this is in is always ran with administrator privileges. 它所在的脚本始终以管理员权限运行。 But, there is a windows security prompt that appears with the options of "run" and "cancel". 但是,会出现一个Windows安全提示,其中显示“run”和“cancel”选项。 I am running windows 10 enterprise, so when I go to the .exe file and go to it's properties, there is no option to "unblock" the file like stated in another similar question I found. 我正在运行Windows 10企业版,所以当我转到.exe文件并转到它的属性时,没有选项“解锁”该文件,就像我发现的另一个类似问题中所述。 I've also tried using the /quiet and /qb arguments but the prompt still appears. 我也尝试使用/ quiet和/ qb参数,但仍然出现提示。 How can I get this security prompt to stop appearing? 如何让此安全提示停止显示?

Try this in an administrator command prompt: 在管理员命令提示符中尝试此操作:

C:\HelpDesk\CitrixReceiver.exe /q:a /c:"install /q"

I'm not sure if this will work in powershell, but it worked in a regular prompt for a different executable that I had to install quietly earlier today. 我不确定这是否适用于PowerShell,但它可以定期提示我今天早些时候必须安装的不同可执行文件。 You could always save it in a batch file and then call it from powershell if it doesn't work directly in powershell. 您可以始终将其保存在批处理文件中,然后如果它不能直接在PowerShell中工作,则从powershell调用它。

More info on these switches and quietly installing an exe file can be found here . 可以在此处找到有关这些开关的更多信息以及安静地安装exe文件。

Citrix Receiver supports the "/silent" switch however you need to specify other parameters as well. Citrix Receiver支持“/ silent”开关,但您也需要指定其他参数。 One example is: 一个例子是:

C:\HelpDesk\CitrixReceiver.exe ENABLEPRELAUNCH=TRUE ALLOWADDSTORE=S ENABLE_SSON=YES ALLOWSAVEPWD=A UseCategoryAsStartMenuPath=True /STORE0="PNAgent;https://testserver.net/Citrix/PNAgent/config.xml;on;My PNAgent Site" /silent /includeSSON /noreboot

All the installation switches and instructions are avaible at Citrix' site: http://docs.citrix.com/en-us/receiver/windows/4-3/receiver-windows-install-wrapper/receiver-windows-cfg-command-line-42.html 所有安装开关和说明均可在Citrix的网站上找到: http//docs.citrix.com/en-us/receiver/windows/4-3/receiver-windows-install-wrapper/receiver-windows-cfg-command -line-42.html

However uses will still have to login the first time they launch the application, and if no store is specified they'll also have to input the store url. 但是,用户仍然必须在他们第一次启动应用程序时登录,如果没有指定商店,他们还必须输入商店网址。

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

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