Skip to content

Instantly share code, notes, and snippets.

@crossan007
Last active August 17, 2017 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crossan007/f89b734374f32e516736c6d6b818ad15 to your computer and use it in GitHub Desktop.
Save crossan007/f89b734374f32e516736c6d6b818ad15 to your computer and use it in GitHub Desktop.
SharePoint AllDocStreams Content To File String
function Convert-FromHex
{
Process
{
     $_ -replace '^0x', '' -split "(?<=\G\w{2})(?=\w{2})" | %{ [Convert]::ToByte( $_, 16 ) } | %{ $([char]$_) }
}
}
$(<SharePoint.dbo.AllDocStreams.Content> | Convert-FromHex) -Join ""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment