Created
April 8, 2019 11:36
-
-
Save MartinMiles/e7e9c44d29cfceb7a39b4e7ba8b1e76d to your computer and use it in GitHub Desktop.
This file contains 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
#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