Files
tldr/pages.zh/windows/get-wuapiversion.md

14 lines
486 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 获取-WUApi版本
> 获取Windows Update Agent版本。属于外部`PSWindowsUpdate`模块。
> 此命令只能在PowerShell下运行。
> 更多信息:<https://github.com/mgajda83/PSWindowsUpdate>。
- 获取当前安装的Windows Update Agent版本
`Get-WUApiVersion`
- 通过电子邮件SMTP发送当前配置数据
`Get-WUApiVersion -SendReport -PSWUSettings @{SmtpServer="{{smtp_server}}"; Port={{smtp_port}} From="{{sender_email}}" To="{{receiver_email}}"}`