Last active
February 10, 2021 15:46
-
-
Save MartinMiles/cf7425b5f71cf22f5a4bec31abb0f525 to your computer and use it in GitHub Desktop.
SPE Remoting (1. Install Sitecore module; 2. Install remoting module into $PSHome\Modules; 3. Weaken security ie. ShieldsDown.config )
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 | |
Import-Module -Name SPE | |
$session = New-ScriptSession -Username admin -Password b -ConnectionUri https://platform | |
Invoke-RemoteScript -ScriptBlock { | |
Get-Item -Path "master:\content\Home" | |
} -Session $session |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment