Skip to content

Instantly share code, notes, and snippets.

@richardszalay
Created June 19, 2019 23:36
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richardszalay/93b7c03e7e92c26ffab09693750c9811 to your computer and use it in GitHub Desktop.
Save richardszalay/93b7c03e7e92c26ffab09693750c9811 to your computer and use it in GitHub Desktop.
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