Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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