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

14 lines
480 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.

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