Created
September 11, 2026 07:45
-
-
Save blacknon/bfa7c9ca5a0505e65dd610abdcb79eb0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 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 |
Author
Author
reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers{8FD7E19C-3BF7-489B-A72C-846AB3678C96}"
reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v ExcludedCredentialProviders
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
reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers{8FD7E19C-3BF7-489B-A72C-846AB3678C96}"
reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v ExcludedCredentialProviders
Write-Host "=== Smart Card Credential Provider ==="
reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\Credential Providers{8FD7E19C-3BF7-489B-A72C-846AB3678C96}"
Write-Host "`n=== Excluded Credential Providers ==="
reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v ExcludedCredentialProviders
Write-Host "`n=== Require Smart Card ==="
reg query "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v scforceoption