Created
August 6, 2015 20:55
-
-
Save michaellwest/179e7f2af3b6bb68a566 to your computer and use it in GitHub Desktop.
Read all bytes of a file from the Sitecore PowerShell Extensions remoting service.
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
Import-Module -Name SPE | |
$session = New-ScriptSession -Username admin -Password b -ConnectionUri http://console | |
$bytes = Invoke-RemoteScript -Session $session -ScriptBlock { | |
[System.IO.File]::ReadAllBytes("$($SitecoreDataFolder)packages\SPE Remoting-3.1.zip") | |
} | |
[System.IO.File]::WriteAllBytes("C:\temp\SPE Remoting-3.1.zip", $bytes) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment