Skip to content

Instantly share code, notes, and snippets.

@blacknon
Created September 11, 2026 07:45
Show Gist options
  • Select an option

  • Save blacknon/bfa7c9ca5a0505e65dd610abdcb79eb0 to your computer and use it in GitHub Desktop.

Select an option

Save blacknon/bfa7c9ca5a0505e65dd610abdcb79eb0 to your computer and use it in GitHub Desktop.
Get-WinEvent -FilterHashtable @{
LogName = 'System'
StartTime = (Get-Date).AddMinutes(-10)
} |
Where-Object {
$_.ProviderName -eq 'Microsoft-Windows-Smartcard-Server'
} |
Select-Object TimeCreated, Id, LevelDisplayName, Message |
Format-List
@blacknon

Copy link
Copy Markdown
Author

$w=New-Object -ComObject WScript.Shell; while($true){$w.SendKeys('{SCROLLLOCK}'); Start-Sleep -Milliseconds 100; $w.SendKeys('{SCROLLLOCK}'); Start-Sleep -Seconds 300}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment