Skip to content

Instantly share code, notes, and snippets.

@MartinMiles
Last active February 10, 2021 15:46
Show Gist options
  • Save MartinMiles/cf7425b5f71cf22f5a4bec31abb0f525 to your computer and use it in GitHub Desktop.
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 )
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