Created
June 30, 2015 13:29
-
-
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.
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
# 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