Skip to content

Instantly share code, notes, and snippets.

@Kaidja
Created July 6, 2021 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kaidja/31674dde00ec816698e10447dcb8ae3c to your computer and use it in GitHub Desktop.
Save Kaidja/31674dde00ec816698e10447dcb8ae3c to your computer and use it in GitHub Desktop.
$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