简体   繁体   English

批处理文件查找已连接的Citrix服务器

[英]Batch file find connected Citrix server

I would like to create a diagnostic batch file that will output what Citrix server and application a users is connected to. 我想创建一个诊断批处理文件,该文件将输出用户连接到的Citrix服务器和应用程序。

Currently I have to open Citrix connection center to find this information. 目前,我必须打开Citrix连接中心才能找到此信息。 But I would like to record this server and application information so I can use it for problem tracking. 但是我想记录此服务器和应用程序信息,以便可以将其用于问题跟踪。

Is there any way to interface with Citrix on the client side with dos or powershell to output this information? 是否可以通过dos或powershell在客户端与Citrix交互以输出此信息?

例

I tried to find a command line arguments that would but did not find anything that would work. 我试图找到一个命令行参数,但不会找到任何可行的方法。

I was able to find simple work around, I found this command line tool that takes screenshots. 我能够找到简单的解决方法,我发现了这个带截图的命令行工具。 Although not the best solution, the script will open connection manager and waits 3 seconds and then takes a screenshot. 尽管不是最佳解决方案,但脚本将打开连接管理器,等待3秒钟,然后截图。 Citrix really needs to add command line for support. Citrix确实需要添加命令行以获得支持。

https://github.com/chuntaro/screenshot-cmd https://github.com/chuntaro/screenshot-cmd

start "" "C:\\Program Files (x86)\\Citrix\\ICA Client\\concentr.exe" & ping 127.0.0.1 -n 3 > nul & \\server\\screenshot-cmd.exe -wt "Citrix Connection Center" -o \\server\\TEMP\\citrixshot.png & taskkill /IM concentr.exe >nul 开始“”“ C:\\ Program Files(x86)\\ Citrix \\ ICA Client \\ concentr.exe”&ping 127.0.0.1 -n 3> nul&\\ server \\ screenshot-cmd.exe -wt“ Citrix连接中心” -o \\ server \\ TEMP \\ citrixshot.png和taskkill / IM concentr.exe> nul

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

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