Created
July 6, 2021 18:30
-
-
Save Kaidja/31674dde00ec816698e10447dcb8ae3c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$AllLogs = Get-WinEvent -ListLog * | |
$PrinterLogs = $AllLogs | where LogName -eq "Microsoft-Windows-PrintService/Operational" | |
$PrinterLogs.IsEnabled = $True | |
$PrinterLogs.SaveChanges() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment