Skip to content

Instantly share code, notes, and snippets.

@ivansharamok
Created October 20, 2017 04:47
Show Gist options
  • Save ivansharamok/48ce60475d176511eeae16bf254e6dea to your computer and use it in GitHub Desktop.
Save ivansharamok/48ce60475d176511eeae16bf254e6dea to your computer and use it in GitHub Desktop.
#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