如何在Windows 2012 R2 Core 中添加打印端口监视器驱动程序?

How to add print port monitor driver in Windows 2012 R2 Core?

我有一个打印端口监视器驱动程序(inf 和 dll 文件),我想安装在 Windows Server 2012 R2 Core 上。

在具有桌面环境的完整服务器上,我通过 运行 printui.exe /s,select 端口选项卡,添加端口,然后添加新端口类型。

但是,在 Windows 2012 R2 Core printui.exe /s 上 returns 没有显示打印服务器属性。

这是我安装的:

PS C:\Users\justin> Get-WindowsFeature *print*

Display Name                                            Name
------------                                            ----
[X] Print and Document Services                         Print-Services
    [X] Print Server                                    Print-Server
    [ ] Distributed Scan Server                         Print-Scan-Server
    [ ] Internet Printing                               Print-Internet
    [ ] LPD Service                                     Print-LPD-Service

printui.exe 显示打印服务器属性还需要其他组件吗?

有没有办法通过命令行来完成?我查看了 C:\windows\System32\Printing_Admin_Scripts\ 下的脚本,其中 none 似乎与我的问题有关。

使用pnputil for managing drivers from the commandline (source).

pnputil.exe -i -a "C:\path\to\your.inf"