gpt4 book ai didi

PowerShell 4.0 添加打印机

转载 作者:行者123 更新时间:2023-12-02 00:01:03 25 4
gpt4 key购买 nike

我刚刚在我的 Win7 SP1 机器上安装了 PowerShell 4.0(从 2.0 native 版本升级)。PowerShell 3.0 应该包含一系列方便的打印机特定功能,例如 Add-Printer、Add-PrinterDriver 等,但在我的盒子上运行“Get-Command”并没有显示我正在使用的任何命令寻找。

我是否必须安装 PowerShell 3.0 才能获取它们?

最佳答案

“PrintManagement”模块,其中包括您提到的命令,可用于 Windows 8/Windows Server 2012 上的 PowerShell v3从某种意义上说,它与操作系统相关,而不是直接与 PowerShell 版本相关。

    CommandType     Name                                               ModuleName                                                                         
----------- ---- ----------
Function Add-Printer printmanagement
Function Add-PrinterDriver printmanagement
Function Add-PrinterPort printmanagement
Function Get-PrintConfiguration printmanagement
Function Get-Printer printmanagement
Function Get-PrinterDriver printmanagement
Function Get-PrinterPort printmanagement
Function Get-PrinterProperty printmanagement
Function Get-PrintJob printmanagement
Function Read-PrinterNfcTag printmanagement
Function Remove-Printer printmanagement
Function Remove-PrinterDriver printmanagement
Function Remove-PrinterPort printmanagement
Function Remove-PrintJob printmanagement
Function Rename-Printer printmanagement
Function Restart-PrintJob printmanagement
Function Resume-PrintJob printmanagement
Function Set-PrintConfiguration printmanagement
Function Set-Printer printmanagement
Function Set-PrinterProperty printmanagement
Function Suspend-PrintJob printmanagement
Function Write-PrinterNfcTag printmanagement

关于PowerShell 4.0 添加打印机,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21343313/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com