Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #define parameters
- $prefix = "S9U1Demo"
- $PSScriptRoot = "C:Resourcefiles"
- $XConnectCollectionService = "$prefix.xconnect"
- $sitecoreSiteName = "$prefix.Site"
- $SolrUrl = "https://localhost:8983/solr"
- $SolrRoot = "C:Solr-6.6.2"
- $SolrService = "solr-6.6.2"
- $SqlServer = "CLDBHPMKJSQLEXPRESS"
- $SqlAdminUser = "Sitecore9"
- $SqlAdminPassword="test"
- #install client certificate for xconnect
- $certParams = @{
- Path = "$PSScriptRootxconnect-createcert.json"
- CertificateName = "$prefix.xconnect_client"
- }
- Install-SitecoreConfiguration @certParams -Verbose
- #install solr cores for xdb
- $solrParams = @{
- Path = "$PSScriptRootxconnect-solr.json"
- SolrUrl = $SolrUrl
- SolrRoot = $SolrRoot
- SolrService = $SolrService
- CorePrefix = $prefix
- }
- Install-SitecoreConfiguration @solrParams
- #deploy xconnect instance
- $xconnectParams = @{
- Path = "$PSScriptRootxconnect-xp0.json"
- Package = "$PSScriptRootSitecore 9.0.1 rev. 171219 (OnPrem)_xp0xconnect.scwdp.zip"
- LicenseFile = "$PSScriptRootlicense.xml"
- Sitename = $XConnectCollectionService
- XConnectCert = $certParams.CertificateName
- SqlDbPrefix = $prefix
- SqlServer = $SqlServer
- SqlAdminUser = $SqlAdminUser
- SqlAdminPassword = $SqlAdminPassword
- SolrCorePrefix = $prefix
- SolrURL = $SolrUrl
- }
- Install-SitecoreConfiguration @xconnectParams
- #install solr cores for sitecore
- $solrParams = @{
- Path = "$PSScriptRootsitecore-solr.json"
- SolrUrl = $SolrUrl
- SolrRoot = $SolrRoot
- SolrService = $SolrService
- CorePrefix = $prefix
- }
- Install-SitecoreConfiguration @solrParams
- #install sitecore instance
- $xconnectHostName = "$prefix.xconnect"
- $sitecoreParams = @{
- Path = "$PSScriptRootsitecore-XP0.json"
- Package = "$PSScriptRootSitecore 9.0.1 rev. 171219 (OnPrem)_single.scwdp.zip"
- LicenseFile = "$PSScriptRootlicense.xml"
- SqlDbPrefix = $prefix
- SqlServer = $SqlServer
- SqlAdminUser = $SqlAdminUser
- SqlAdminPassword = $SqlAdminPassword
- SolrCorePrefix = $prefix
- SolrUrl = $SolrUrl
- XConnectCert = $certParams.CertificateName
- Sitename = $sitecoreSiteName
- XConnectCollectionService = "https://$XConnectCollectionService"
- }
- Install-SitecoreConfiguration @sitecoreParams
Add Comment
Please, Sign In to add comment