Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save MartinMiles/e7e9c44d29cfceb7a39b4e7ba8b1e76d to your computer and use it in GitHub Desktop.
Save MartinMiles/e7e9c44d29cfceb7a39b4e7ba8b1e76d to your computer and use it in GitHub Desktop.
#Set-ExecutionPolicy "RemoteSigned" -Scope Process -Confirm:$false
#Set-ExecutionPolicy "RemoteSigned" -Scope CurrentUser -Confirm:$false
Set-ExecutionPolicy Unrestricted
Import-Module -Name SPE
$session = New-ScriptSession -Username admin -Password b -ConnectionUri http://platform.dev.local
Invoke-RemoteScript -ScriptBlock {
#Write-Verbose "Hello from the other side" -Verbose 4>&1
#"data"
#Write-Verbose "Goodbye from the other side" -Verbose 4>&1
#"data"
#Write-Verbose "Goodbye from the other side" -Verbose 4>&1
Get-Item -Path "master:\content\Careers\Home"
} -Session $session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment