Skip to content

Instantly share code, notes, and snippets.

@a-v-k
Created February 24, 2014 15:49
Show Gist options
  • Save a-v-k/9190889 to your computer and use it in GitHub Desktop.
Save a-v-k/9190889 to your computer and use it in GitHub Desktop.
get windows activation attempts list
Get-EventLog -LogName Application -Source "Software Protection Platform Service" |? { $_.EventID -eq 12288 } | select TimeGenerated, @{Name='Result';Expression={$_.ReplacementStrings[0].Split(",")[0].Trim()}}, @{Name='Server';Expression={$_.ReplacementStrings[0].Split(",")[2].Trim()}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment