使用Powershell 统计Widnows打印服务器用户打印数量
Get-WinEvent -FilterHashTable @{LogName="Microsoft-Windows-PrintService/Operational"; ID=307; StartTime=(Get-Date).AddDays(-1)} |Format-Table -Property TimeCreated,
@{label='UserName';expression={$_.properties.value}},
@{label='ComputerName';expression={$_.properties.value}},
@{label='PrinterName';expression={$_.properties.value}},
@{label='PrintSize';expression={$_.properties.value}},
@{label='Pages';expression={$_.properties.value}}
页:
[1]