Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@michaellwest
Created June 30, 2015 13:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaellwest/f1d8fce1656ec5bbfb7d to your computer and use it in GitHub Desktop.
Save michaellwest/f1d8fce1656ec5bbfb7d to your computer and use it in GitHub Desktop.
The following example remotely executes a script in Sitecore using a reusable session.
# The following example remotely executes a script in Sitecore using a reusable session.
$session = New-ScriptSession -Username admin -Password b -ConnectionUri http://remotesitecore
Invoke-RemoteScript -Session $session -ScriptBlock { Get-User -id admin }
Name Domain IsAdministrator IsAuthenticated
---- ------ --------------- ---------------
sitecore\admin sitecore True False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment