Created
June 19, 2019 23:36
-
-
Save richardszalay/93b7c03e7e92c26ffab09693750c9811 to your computer and use it in GitHub Desktop.
ConvertFrom-XdbIndexToken
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
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