Created
October 20, 2017 04:47
-
-
Save ivansharamok/48ce60475d176511eeae16bf254e6dea to your computer and use it in GitHub Desktop.
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
#Requires -Modules SitecoreInstallFramework | |
[CmdletBinding()] | |
param( | |
[Parameter(Mandatory=$true)] $Hostname, | |
[Parameter(Mandatory=$false)] $User="admin", | |
[Parameter(Mandatory=$false)] $Password="b" | |
) | |
# Invoke service page to populate indexes with default fields | |
Invoke-SitecoreUrlTask -SitecoreInstanceRoot $Hostname -SitecoreActionPath "sitecore/admin/PopulateManagedSchema.aspx?indexes=all" -Username $User -Password $Password |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment