Skip to content

Instantly share code, notes, and snippets.

@dustindortch
Last active November 7, 2017 19:09
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 dustindortch/e106040c224294a161f47f7eb8885eeb to your computer and use it in GitHub Desktop.
Save dustindortch/e106040c224294a161f47f7eb8885eeb to your computer and use it in GitHub Desktop.
Using the Event Log with PowerShell - Writing Event Log Entries 2
Write-EventLog -LogName "Provisioning" `
-Source "Licensing" `
-EntryType Error -EventId 3300 `
-Message "No licenses available for user: ${UserPrincipalName}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment