喷墨/激光打印机-打印页面所花费的时间

时间:2019-06-27 14:15:17

标签: powershell powershell-3.0 powershell-4.0 powershell-remoting

我想知道最好的方法来找到打印机在激光打印机或喷墨打印机上打印页面所花费的时间。

function Get-Print-Jobs {
    [CmdletBinding()]

    Param (
        [Parameter(Position=1)][String]$serverName = "MIL-SIM-SD01"
    )

    Process {


        Get-WMIObject Win32_PerfFormattedData_Spooler_PrintQueue -ComputerName $serverName |
        Select Name , JobErrors, Jobs, MaxJobsSpooling, 
        MaxReferences, NotReadyErrors, OutOfPaperErrors, References, TotalJobsPrinted, TotalPagesPrinted | Export-Csv -Path \\MIL-USERS-03\Users5$\AAlHamidi\printers.csv -Encoding ASCII
    }
}

0 个答案:

没有答案