This file contains hidden or 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 -RunAsAdministrator | |
if($(Get-Service W3SVC).Status -eq 'Running'){ | |
Write-Host "W3SVC is running and will be stopped" | |
Stop-Service W3SVC | |
Write-Host "W3SVC is stopped." -BackgroundColor Red | |
} | |
else { | |
Write-Host "W3SVC is already stopped" -BackgroundColor DarkGray |
This file contains hidden or 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 -RunAsAdministrator | |
[CmdletBinding()] | |
Param ( | |
[Parameter(Mandatory = $true, | |
Position=0, | |
HelpMessage = "Name of the IIS Site the new URLs should be associated to")] | |
[ValidateNotNullOrEmpty()] | |
[string] |
This file contains hidden or 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
[CmdletBinding()] | |
param ( | |
[Parameter(Mandatory = $true, HelpMessage="value used to filter to the specific images for pushing")] | |
[string] | |
$imageFilter, | |
[Parameter(Mandatory = $true, HelpMessage="full registry path the images will be pushed to")] | |
[string] | |
$targetRegistry, | |
[Parameter(Mandatory = $false, HelpMessage="image tag value if not 'latest'")] | |
[string] |
This file contains hidden or 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
COMPOSE_PROJECT_NAME=TestingLicenseFileMount | |
SITECORE_DOCKER_REGISTRY=scr.sitecore.com/sxp/ | |
SITECORE_VERSION=10.0-20H2 | |
SITECORE_ADMIN_PASSWORD=Password12345 | |
SQL_SA_PASSWORD=Password12345 | |
REPORTING_API_KEY= | |
TELERIK_ENCRYPTION_KEY= | |
SITECORE_IDSECRET= | |
SITECORE_ID_CERTIFICATE= | |
SITECORE_ID_CERTIFICATE_PASSWORD=QY4inXePJnde |
This file contains hidden or 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
Write-Host "Runnng this script will install/enable the optional Windows features of Hyper-V and Containers." | |
Write-Host "After the Windows features are enabled this script will force a system reboot." -ForegroundColor Magenta | |
if($(Get-WindowsOptionalFeature -FeatureName Microsoft-Hyper-V -Online).State -ieq 'disabled') | |
{ | |
Write-Host "Installing Microsoft Hyper V feature." -ForegroundColor DarkCyan | |
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All -NoRestart | |
} | |
if($(Get-WindowsOptionalFeature -FeatureName Containers -Online).State -ieq 'disabled') |
This file contains hidden or 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
/// <summary> | |
/// Solr Suggester Implementation via Sitecore API | |
/// </summary> | |
/// <param name="term"></param> | |
/// <returns></returns> | |
public IEnumerable<string> GetSuggestions(string term) | |
{ | |
if (term.Length < 3) | |
return Enumerable.Empty<string>(); |
This file contains hidden or 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
[HttpPost] | |
public JsonResult PerformLocationSearch() | |
{ | |
var searchParams = new LocationSearchParameters(); | |
if (searchParams.SearchParamsExist) | |
{ | |
int totalResult = 0; | |
var searchResults = _locationSearchHelper.PerformLocationSearch(searchParams, out totalResult).ToList(); | |
if (searchResults != null && searchResults.Any()) |
This file contains hidden or 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
############################## | |
#.SYNOPSIS | |
# Creates a HTTP to HTTPS URL redirect rule in the given site's web.config | |
# | |
#.DESCRIPTION | |
# Creates a HTTP to HTTPS URL redirect rule in the given site's web.config | |
# | |
#.PARAMETER SiteBinding | |
# Value of the target sites IIS binding. | |
# |
This file contains hidden or 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
#define parameters | |
##CUSTOM TO THE ENVIRONMENT - THE FOLLOWING ALL SHOULD BE UPDATED TO REFLECT YOUR LOCAL MACHINE | |
###Value that will be used as the prefix for Sitecore URL, db prefix and Solr core prefixes | |
$prefix = "easysitecore20" | |
###Path to the working directory, where this file has been saved to | |
$PSScriptRoot = "C:\\Sc9Install\\EasyInstall" | |
###Path to the Sitecore License File | |
$SitecoreLicense = "C:\\SitecoreVersions\\license.xml" | |
###Name that Solr will run as |
This file contains hidden or 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
## | |
## private functions | |
## | |
# | |
# If necessary, download a file and unzip it to the specified location | |
# | |
function downloadAndUnzipIfRequired | |
{ | |
Param( |
NewerOlder