Skip to content

Instantly share code, notes, and snippets.

View varunvns's full-sized avatar
🎯
Focusing

Varun Shringarpure varunvns

🎯
Focusing
View GitHub Profile
Param(
$solrVersion = "7.2.1",
$installFolder = "c:\solr\solrnode1",
$solrPort = "8983",
$solrHost = "solr1.uhgcloud.com",
$solrSSL = $false,
$nssmVersion = "2.24",
$JREVersion = "1.8.0_111",
$solrInstanceName ="solrnode1",
$zooKeeperNode1 = "zookeeper1",
Param(
$zooKeeperInstanceName = "zookeeperNode1",
$zooKeeperVersion = "3.4.14",
$installFolder = "c:\ZooKeeper\FirstNode",
$zooKeeperNode = "1",
$zooKeeperPort = "2141",
$zooKeeperHost = "zookeeper1",
$zooKeeperSSL = $true,
$nssmVersion = "2.24",
$JREVersion = "1.8.0_111",
@varunvns
varunvns / install-SC9Update1.ps1
Created August 10, 2018 17:50
PowerShell Script to Install Sitecore 9 Update 1
#Thank you Sitecore for the Script in the Installation Guide of Sitecore Experience Platform 9 Update 1
#define parameters
$prefix = "SC-XC901"
$PSScriptRoot = "C:\Varun\Sitecore-Plain-Instance-Repository\SC-XC-9\Powershell-Scripts"
$XConnectCollectionService = "$prefix.xconnect"
$sitecoreSiteName = "$prefix.sc"
$SolrUrl = "https://solr:9192/solr"
$SolrRoot = "C:\Solr\SC9\solr-6.6.2"
$SolrService = "solr-6.6.2"
$SqlServer = ".\sqlexpress16sp1"
@varunvns
varunvns / install-SC9Update2.ps1
Last active August 10, 2018 17:51
PowerShell Script to Install Sitecore 9 Update 1
#Thank you Sitecore for the Script in the Installation Guide of Sitecore Experience Platform 9 Update 2
#define parameters
$prefix = "SC-902"
$PSScriptRoot = "C:\Varun\Sitecore-Plain-Instance-Repository\SC-9-Update-2\PowerShell-Scripts"
$XConnectCollectionService = "$prefix.xconnect"
$sitecoreSiteName = "$prefix.sc"
$SolrUrl = "https://solr:9393/solr"
$SolrRoot = "c:\solr\SC902\solr-6.6.2"
$SolrService = "solrSC902"
$SqlServer = ".\sqlexpress16sp1"
@varunvns
varunvns / install-solr.ps1
Last active May 10, 2019 09:57
Install As Many Solr instances on the same machine you want!
Param(
$solrVersion = "6.6.2",
$installFolder = "c:\solr\SC902",
$solrPort = "9393",
$solrHost = "solr",
$solrSSL = $true,
$nssmVersion = "2.24",
$JREVersion = "1.8.0_111",
$solrInstanceName ="solrSC902"
)
@varunvns
varunvns / Add-Website-Binding.ps1
Last active November 25, 2017 14:27
Add Website Binding to Hostfile
<#
.SYNOPSIS
This PowerShell Scrip Adds the website name given by the user to the Hosts file pointing to 127.0.0.1
Author: Varun Shringarpure
#>
Write-Host "Hosts File prior to adding the website binding"
Get-Content C:\Windows\System32\drivers\etc\hosts
@varunvns
varunvns / Add-Helix-Module.ps1
Last active November 25, 2017 14:28
Add Helix Module with TDS
<#
.SYNOPSIS
This script contains the Add-Feature and Add-Foundation methods which can be used to add a new module to a Sitecore Helix based Visual Studio solution.
The Visual Studio solution should contain a add-helix-module-configuration.json file containing variables which this script will use.
The Add-Feature and Add-Foundation methods can be run from the Pacakge Console Manager as long as this script is loaded in the relevant PowerShell profile.
Run $profile in the Pacakge Manager Console to verify the which profile is used.
Author: Varun Shringarpure