Files
Obsidian/博客/其他/check-credentials.ps1

15 lines
380 B
PowerShell

# Check Windows Credentials for Halo Token
$output = & cmdkey /list 2>&1
# Find halo-related credentials
$haloCreds = $output | Select-String -Pattern "halo" -CaseSensitive:$false
if ($haloCreds) {
Write-Host "Found Halo credentials:"
$haloCreds
} else {
Write-Host "No Halo credentials found"
}
# Show all generic credentials
Write-Host "`nAll credentials:"
$output