我想知道最好的方法来找到打印机在激光打印机或喷墨打印机上打印页面所花费的时间。
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
}
}