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
$rootPath = ""master:/sitecore/content/SiteRoot" | |
Write-Host "Root Path: $($rootPath)" | |
Get-ChildItem -Path $rootPath -Recurse | Foreach-Object{ | |
$id = $_.ID | |
$item = Get-Item -Path master: -ID $id | |
Write-Host "Checking item $($item.Name)-$($id)" | |
Get-ChildItem -Path $item.Parent.Paths.FullPath | Where-Object{ $_.ID.Guid -ne $id.Guid -and $_.Name -eq $item.Name } | Foreach-Object { | |
Write-Host "DUPLICATED - $($_.Paths.FullPath) - $($_.ID.Guid.ToString())" | |
} | |
} |
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
USE [master] | |
GO | |
CREATE DATABASE [database_name] ON | |
( FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Data\<database name>.mdf' ), | |
( FILENAME = N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Data\<database name>.ldf' ) | |
FOR ATTACH ; | |
GO |
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
sc delete sc1031xconnect.dev.local-MarketingAutomationService | |
sc delete sc1031xconnect.dev.local-ProcessingEngineService | |
sc delete sc1031xconnect.dev.local-IndexWorker |
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
New-SelfSignedCertificate -FriendlyName self.signed.sc93sc.dev.local -DnsName self.signed.sc93sc.dev.local -CertStoreLocation Cert:\LocalMachine\My -KeyUsage DigitalSignature |
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
Get-ChildItem 'HKLM:\SOFTWARE\Microsoft\NET Framework Setup\NDP' -Recurse | Get-ItemProperty -Name version -EA 0 | Where { $_.PSChildName -Match '^(?!S)\p{L}'} | Select PSChildName, version |
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
<?xml version="1.0"?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"> | |
<sitecore> | |
<sites> | |
<site name="your-site-name" | |
patch:after="site[@name='modules_website']" | |
targetHostName="your-site-name.dev.local" | |
enableTracking="true" | |
virtualFolder="/" | |
physicalFolder="/" |