Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#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
You can’t perform that action at this time.