Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ConvertFrom-XdbIndexToken
param(
[string]$Token = (Read-Host "Enter xdbtokenbytes_s value")
)
$bytes = [Convert]::FromBase64String($Token)
$ms = [System.IO.MemoryStream]::new($bytes, 0, $bytes.Length)
$bf = [System.Runtime.Serialization.Formatters.Binary.BinaryFormatter]::new()
$dict = $bf.Deserialize($ms);
Write-Output $dict
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment