Skip to content

Instantly share code, notes, and snippets.

@isaadansari
Last active April 29, 2018 07:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save isaadansari/63bd6ee4a1a80b40dcc0113739f4bb1b to your computer and use it in GitHub Desktop.
Save isaadansari/63bd6ee4a1a80b40dcc0113739f4bb1b to your computer and use it in GitHub Desktop.
Sitecore 9 prerequisites powershell commands
# Powershell Policy allow to run commands
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
# Add the Sitecore MyGet repository to PowerShell
Register-PSRepository -Name SitecoreGallery -SourceLocation https://sitecore.myget.org/F/sc-powershell/api/v2
# Install the Sitecore Install Framwork module
Install-Module SitecoreInstallFramework
# Install the Sitecore Fundamentals module (provides additional functionality for local installations like creating self-signed certificates)
Install-Module SitecoreFundamentals
# Update Module SitecoreInstallFramework
Update-Module SitecoreInstallFramework -Force
# Trusted reop PSGallery
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
# Trusted reop SitecoreGallery
Set-PSRepository -Name SitecoreGallery -InstallationPolicy Trusted
# Import the modules into your current PowerShell context (if necessary)
Import-Module SitecoreFundamentals
Import-Module SitecoreInstallFramework
# Checking prerequisites for sitecore installation framework
Get-InstalledModule
# if Sitecore.Pathfinder and Sqlsrever does not exist
Install-Module Sitecore.Pathfinder
Install-Module SqlServer
# Helpful commands to verify the prerequisites
$PSversiontable
Get-PSRepository
Get-InstalledModule
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment