用 Get-PrinterPort 查看打印机端口配置
路由器重启后打印机掉线?先列出本机所有打印机端口,看看 TCP/IP 端口指向的 IP 是否已过期。
在 PowerShell 中运行 `Get-PrinterPort | Select-Object Name, Description` 即可列出所有已配置的打印机端口。
01命令
命令
$ Get-PrinterPort | Select-Object Name, Description02作用说明
路由器重启后打印机突然打不了,多半是 TCP/IP 端口还指向打印机原来的 IP 地址。Get-PrinterPort 会列出 Windows 配置的全部端口——USB 端口、raw TCP/IP 端口、WSD 端口——并显示名称和描述。先看清端口现状,再决定是重建端口还是把打印机指向新地址。
03风险
04撤销
✓无需撤销——该命令不会改变持久状态。
05来源
- Get-PrinterPort cmdlet | Microsoft Learn依据: Get-PrinterPort lists the printer ports configured on the computer, exposing Name and Description.
- PrintManagement module | Microsoft Learn依据: PrintManagement collects the printer cmdlets including Get-PrinterPort.
最后验证: 2026-09-19 · 分类: 系统与设置