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
# | |
# Sitecore will be restarted becasue of change configuration file, please refresh browser! | |
# | |
$configDisabled = Join-Path -Path $AppPath -ChildPath "App_Config\Include\Feature\z.SPE.Sync.Enabler.Gulp.config.disabled" | |
$configEnabled = $configDisabled -replace '.disabled','' | |
if( Test-Path $configDisabled ) | |
{ | |
$response = Show-Confirm -Title "Enable Creative Exchange Live.`r`nSitecore will be restarted because file $configDisabled will be renamed.`r`nWould you like to continue?" | |
if( $response -eq 'yes') |
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
param( | |
[Parameter(Mandatory=$true)] | |
[string]$url, | |
[Parameter(Mandatory=$true)] | |
[string]$target | |
) | |
function Fetch-WebsiteCredentials | |
{ | |
$file = "dev.creds.xml" |
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
# | |
# PSSolrService.ps1 | |
# | |
<# region Description | |
############################################################################### | |
# # | |
# File name PSService.ps1 # | |
# # | |
# Description A sample service in a standalone PowerShell script # | |
# # |
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
if( -not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) | |
{ | |
Write-Warning -Message "Please run this script with Administrator rights" | |
return | |
} |
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
Param( | |
$solrVersion = "6.6.2", | |
$installFolder = "c:\solr", | |
$solrPort = "8983", | |
$solrHost = "solr", | |
$solrSSL = $true, | |
$nssmVersion = "2.24", | |
$JREVersion = "1.8.0_151" | |
) |
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
# Gets all processes listening on TCP port 443 | |
(Get-NetTCPConnection -LocalPort 443 -State Listen | Select-Object @{Name="Id";Expression={$_.OwningProcess}} | Get-Process).ProcessName |
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
#Initialize-AWSDefaults | |
Get-S3Bucket -BucketName [Name] | |
$items = Get-ChildItem -Path "C:\Users\Administrator\Desktop" -Filter *.bak | |
foreach( $item in $items ) | |
{ | |
Write-S3Object -BucketName [Name] -File "C:\Users\Administrator\Desktop\$item" | |
} |
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
# ############################################################################# | |
# Set-AzureStorageForSitecore | |
# | |
# AUTHOR: Robert Senktas | |
# BLOG: http://lets-share.senktas.net/2017/09/sitecore-on-azure-storagepreparation.html | |
# | |
# ############################################################################# | |
#Requires –Modules sitecore-automation | |
#Requires -Modules Azure |
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
<# | |
.Synopsis | |
Copies an item access rights from one identity to another identity. | |
.EXAMPLE | |
Copy-ItemAcl -FromIdentity 'SUPER\ROBSONAUTOMATOR' -ToIdentity 'LAZY\ONE' -Path "/sitecore/content/Home" | |
.Author | |
Robert Senktas | |
#> | |
function Copy-ItemAcl{ | |
[CmdletBinding()] |
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
# ############################################################################# | |
# Test-SitecoreAzureDeployment | |
# | |
# AUTHOR: Robert Senktas | |
# BLOG: http://lets-share.senktas.net/2017/07/sitecore-on-azure-test-sitecoreazuredeployment.html | |
# | |
# COMMENT: Check if all resources required to deploy Sitecore on Azure are supported in Location region | |
# This function is part of Sitecore Automation Module | |
# ############################################################################# | |
function Test-SitecoreAzureDeployment |