# vdmadmin
## 1 访问 vdmadmin
1. 在 [连接服务器](app://obsidian.md/horizon-connection-server) 以管理员打开 Cmd
2. `cd C:\Program Files\VMware\VMware View\Server\tools\bin`
## 2 使用 vdmadmin
- 检查连接服务器列表 (Pod)
- `vdmadmin -H -list -monitorid CBMonitor -xml -n`
- 检查连接服务器运行状况
- `vdmadmin -H -monitorid CBMonitor -instanceid <connection-server> -xml`
- 检查 Horizon Agent 状态
- `vdmadmin -A -d <pool> -m <machine> -getstatus -n`
- Horizon Agent 收集日志
- `vdmadmin -A -getDCT -outfile <log-bundle.zip> -d <pool> -m <machine>`
- 检查所有计算机 - `vdmadmin -M`
- 检查特定计算机状态 - `vdmadmin -M -m <machine> -n`
### 2.1 启用 timingProfiler
- `vdmadmin -I -timingProfiler -enable`
### 2.2 从搜索列表中排除域
- 检查域配置 - `vdmadmin -N domains -list -w`
- 排除域 - `vdmadmin -N -domains -exclude -domain <domain-name> -add`
### 2.3 重置 Horizon Agent 配对密钥
- `vdmadmin -A -d <desktop-pool> -name -m <desktop> -resetkey`
---
> [!info] 本页面永久链接 https://fillgaps.pro/vdv-references/vdv-tools/vdmadmin
> [!info] 本页面如有纠正或补充建议, 请发[邮件](mailto:
[email protected])或公众号私信
---
## 3 参考资源
- VMware 文档 [[vdv-docs-contents|>>]]
- [使用 vdmadmin 命令](https://docs.vmware.com/cn/VMware-Horizon/2312/horizon-console-administration/GUID-D66A2341-E672-48CC-8D19-16EB2285CEEF.html)
- [在 Horizon Console 中配置事件数据库](https://docs.vmware.com/cn/VMware-Horizon/2312/horizon-installation/GUID-BB44ADF4-5B1E-48C2-ACD1-789034488A2F.html)
- VMware 知识库 [[vdv-kb-contents|>>]]
- [Using the vdmadmin command to exclude or include a domain on a search list for Horizon View Administrator (2006292)](https://kb.omnissa.com/s/article/2006292)
- [使用 vdmadmin 命令在 View Administrator 或安全服务器的搜索列表中排除或包括域 (2006292)](https://kb.omnissa.com/s/article/2006292?lang=zh_CN)
- VMware 技术资源 [[vdv-tec-resources-contents|>>]]
- 专家资源 [[vdv-sme-resources-contents|>>]]
- 其他资源 [[other-resources|>>]]
- [Remarkable Ways of Managing Horizon Connection Servers with “vdmadmin” Utility – CloudThat Resources](https://www.cloudthat.com/resources/blog/remarkable-ways-of-managing-horizon-connection-servers-with-vdmadmin-utility)
- [Terence Luk: VMware Horizon 7.6.0 agent unable to contact Connection Server with error: “com.vmware.vdi.messagesecurity.MessageSecurityException: Paired key does not exist”](https://terenceluk.blogspot.com/2018/12/vmware-horizon-760-agent-unable-to.html)