In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The management requirement of the company is to see which employee prints, and the solution:
First, go to the print server in Windows and start the print log. To do this, open Event Viewer and navigate to Applications and Services Logs\ Microsoft\ windows\ Print Service\ Optional
Right-click on this and select Enabled Log
The above methods can also be implemented through Powershell statements.
Get-WinEvent-ListLog Microsoft-Windows-PrintService/Operational-OutVariable PrinterLog |
Select-Object-Property LogName, IsClassicLog, IsEnabled
$PrinterLog.set_IsEnabled ($true)
$PrinterLog.SaveChanges ()
Get-WinEvent-ListLog Microsoft-Windows-PrintService/Operational-OutVariable PrinterLog |
Select-Object-Property LogName, IsClassicLog, IsEnabled
First run the first command and find that the attribute value is not enabled, then force it to be enabled by the command, and then check it again.
The following can be answered at once through this command.
Get-WinEvent-FilterHashTable @ {LogName= "Microsoft-Windows-PrintService/Operational"; ID=307; StartTime= (Get-Date). AddDays (- 1)} | Format-Table-Property TimeCreated, @ {label='UserName';expression= {$_ .properties [2] .value}}, @ {label='ComputerName';expression= {$_ .properties [3] .value}}, @ {label='PrinterName' Expression= {$_ .properties [4] .value}, @ {label='PrintSize';expression= {$_ .properties [6] .value}, @ {label='Pages';expression= {$_ .properties [7] .value}}
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.