<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>PowerShell Archives - Blog IT</title>
	<atom:link href="https://blogit.create.pt/tag/powershell/feed/" rel="self" type="application/rss+xml" />
	<link>https://blogit.create.pt/tag/powershell/</link>
	<description>Create IT blogger community</description>
	<lastBuildDate>Thu, 10 Feb 2022 11:13:06 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>
	<item>
		<title>How to install a SharePoint 2019 farm using PowerShell and AutoSPInstaller Step by Step (Part 2)</title>
		<link>https://blogit.create.pt/miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-2/</link>
					<comments>https://blogit.create.pt/miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-2/#comments</comments>
		
		<dc:creator><![CDATA[Miguel Isidoro]]></dc:creator>
		<pubDate>Sun, 09 Dec 2018 18:32:03 +0000</pubDate>
				<category><![CDATA[SharePoint 2019]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[AutoSPInstaller]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[PowerShell]]></category>
		<guid isPermaLink="false">https://blogit.create.pt/?p=7998</guid>

					<description><![CDATA[<p>This post is the second part of a two part step by step tutorial on how to install SharePoint 2019 in a fully automated way using PowerShell. To read the first part, click here. Introduction The SharePoint world is rapidly moving into the Cloud with SharePoint Online and Office 365, but a new SharePoint Server [&#8230;]</p>
<p>The post <a href="https://blogit.create.pt/miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-2/">How to install a SharePoint 2019 farm using PowerShell and AutoSPInstaller Step by Step (Part 2)</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>This post is the second part of a two part step by step tutorial on how to install SharePoint 2019 in a fully automated way using PowerShell.</p>



<p>To read the first part, click <a href="https://blogit.create.pt////miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-1/" target="_blank" rel="noreferrer noopener" aria-label="To read the first part, click here. (opens in a new tab)">here</a>.</p>



<h1 class="wp-block-heading" id="introduction">Introduction</h1>



<p>The SharePoint world is rapidly moving into the Cloud with SharePoint Online and Office 365, but a new SharePoint Server release was recently announced by Microsoft with improved hybrid support.&nbsp;To learn more about all the new features in SharePoint 2019, click&nbsp;<a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2018/11/01/meet-the-new-modern-sharepoint-server-sharepoint-2019-rtm-is-here/" target="_blank">here.</a></p>



<p class="has-text-align-left">Before installing a SharePoint 2019 farm, it is important to be familiar with its requirements. To learn more about SharePoint 2019 hardware and software requirements, click <a rel="noreferrer noopener" aria-label=" (opens in a new tab)" href="https://docs.microsoft.com/en-us/sharepoint/install/hardware-and-software-requirements-2019" target="_blank">here</a>.</p>



<p>Installing a SharePoint farm can be a complex task and the installation process is composed by a series of steps:</p>



<ul class="wp-block-list"><li>Downloading and installing SharePoint prerequisites</li><li>Downloading and installing the SharePoint binaries</li><li>Downloading and installing the lastest SharePoint updates</li><li>Downloading and installing the required language packs (optional, necessary if you want the SharePoint interface to be presented in a language other than English)</li><li>Configuring the SharePoint farm using SharePoint Products and Configuration Wizard</li></ul>



<p>All the above steps are time consuming and can be error prone if, for example, you miss to download any of the prerequisites.</p>



<p>Fortunately, it is possible to fully automate a SharePoint farm installation using PowerShell by using a script called&nbsp;<a rel="noreferrer noopener" href="https://autospinstaller.com/" target="_blank">AutoSPInstaller</a>. The installation process can be divided in two major steps:</p>



<ul class="wp-block-list"><li>Downloading the SharePoint installation package, click <a href="https://blogit.create.pt////miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-1/" target="_blank" rel="noreferrer noopener" aria-label="Downloading the SharePoint installation package, click here for more details Installing SharePoint and configuring the SharePoint farm (opens in a new tab)">here</a> for more details</li><li>Installing SharePoint and configuring the SharePoint farm</li></ul>



<p>In this post, I will talk about the second part of the process: installing SharePoint and configuring the SharePoint farm.</p>



<p><a href="https://autospinstaller.com/" target="_blank" rel="noreferrer noopener" aria-label="AutoSPInstaller&nbsp;can be used to install a SharePoint farm in the following versions of SharePoint: (opens in a new tab)">AutoSPInstaller</a>&nbsp;can be used to install a SharePoint farm in the following versions of SharePoint:</p>



<ul class="wp-block-list"><li>SharePoint 2010</li><li>SharePoint 2013</li><li>SharePoint 2016</li><li>SharePoint 2019 (to learn more about all the new features in SharePoint 2019, click <a href="https://blogit.create.pt////miguelisidoro/2018/11/01/meet-the-new-modern-sharepoint-server-sharepoint-2019-rtm-is-here/" target="_blank" rel="noreferrer noopener">here)</a></li></ul>



<p>The example in this post is based on SharePoint 2019 with the following farm topology:</p>



<ul class="wp-block-list"><li>1 SharePoint 2019 Server </li><li>1 Database Server</li></ul>



<h1 class="wp-block-heading" id="managed-accounts-and-pre-installation-requisites">Managed Accounts and Pre-Installation Requisites</h1>



<p>This is a critical step to ensure a successful SharePoint installation. Before the AutoSPInstaller script is executed, all the necessary managed accounts must be created and the appropriate permissions must be properly granted to each account. If any of these permissions is not granted, you will probably encounter problems during the installation. From my experience doing SharePoint installations, creating these accounts with all the required permissions ensures a fast and successful SharePoint installation. Here is the list of accounts and required permissions before installation:</p>



<figure class="wp-block-table"><table><tbody><tr><td><strong>Name</strong></td><td><strong>Description</strong></td><td><strong>Local Rights</strong></td><td><strong>Domain Rights</strong></td></tr><tr><td>sp_farm</td><td>The server farm account is used to perform the following tasks:<br>-Configure and manage the server farm.<br>-Act as the application pool identity for the SharePoint Central Administration Web site.<br>-Run the Microsoft SharePoint Foundation Workflow Timer Service.</td><td>SecurityAdmin and DB_Creator rights on the SQL Instance</td><td>Domain User</td></tr><tr><td>sp_admin</td><td>The server farm account is used to perform the following tasks:<br>-Setup<br>-SharePoint Products Configuration Wizard</td><td>Local Administrator on all the SharePoint Servers. SysAdmin, SecurityAdmin and DB_Creator rights on the SQL Instance.<br>Must be na account with permissions to add rules to the local firewall.</td><td>Domain User</td></tr><tr><td>sp_pool</td><td>The Pool account is used to run the Web Application Pools</td><td>None</td><td>Domain User</td></tr><tr><td>sp_services</td><td>The Services Account is used to run the Service Application Pool</td><td>None</td><td>Domain User</td></tr><tr><td>sp_crawl</td><td>The Default Content Access Account for the Search Service Application</td><td>None</td><td>Domain User</td></tr><tr><td>sp_search</td><td>Service Account to run the SharePoint Search “Windows Service”</td><td>Local Administrator and SysAdmin rights on the SQL instance</td><td>Domain User</td></tr><tr><td>sp_mysitepool</td><td>Used for the My Sites Web Application</td><td>None</td><td>Domain User</td></tr><tr><td>sp_userprofilesync</td><td>The User Profile Synchronization Account</td><td>None</td><td><a rel="noreferrer noopener" aria-label=" (opens in a new tab)" href="http://bit.ly/TSE7xs" target="_blank">Replicating Directory Changes permission on the domain.</a></td></tr><tr><td>wf_service</td><td>WorkFlow Manager Service Account</td><td>Local Administrator and SysAdmin rights on the SQL instance.</td><td>Domain User</td></tr><tr><td>sp_portalsuperuser</td><td>Object Cache Service Account. The goals of the object cache are to reduce the load on the computer on which SQL Server is running, and to improve request latency and throughput. These user account must be properly configured to ensure that the object cache works correctly.</td><td>None.<br>SharePoint: Must be an account that has Full Control access to the Web application.</td><td>Domain User</td></tr><tr><td>sp_portalsuperreader</td><td>Object Cache Service Account. The goals of the object cache are to reduce the load on the computer on which SQL Server is running, and to improve request latency and throughput. These user account must be properly configured to ensure that the object cache works correctly.</td><td>None.<br>SharePoint: Must be an account that has Full Read access to the Web application.</td><td>Domain User</td></tr></tbody></table></figure>



<p><strong><br>Important Notes:&nbsp;</strong></p>



<ul class="wp-block-list"><li>To avoid problems executing the AutoSPInstaller script, ensure&nbsp;that the passwords of the above accounts do not contain any special characters (ex: $,%,&amp;,/. etc)</li><li>The above table contains a proposal to name the accounts for the SharePoint installation. If you choose to use different names, ensure that the account names do not exceed 20 characters since NETBIOS names have a limit of 20 characters</li><li>After installation, the permissions for the SharePoint installation will have to be verified again and will be different from the above table. SharePoint configuration, service application and content databases will be created and some of the managed accounts listed in the above table will have to have permissions on some of those databases. For more details, please click <a href="https://docs.microsoft.com/en-us/sharepoint/install/account-permissions-and-security-settings-in-sharepoint-server-2016" target="_blank" rel="noreferrer noopener">here</a>.</li></ul>



<h1 class="wp-block-heading" id="download-autospinstaller-powershell-script">Download AutoSPInstaller PowerShell script</h1>



<p>To download the latest version of AutoSPInstaller, click <a href="https://github.com/brianlala/AutoSPInstaller" target="_blank" rel="noreferrer noopener">here</a>.</p>



<p>The files should be extracted to&nbsp;C:\SP\Automation, assuming that the SharePoint 2019 installation files downloaded with AutoSPSourceBuilder were saved to C:\SP\2019.</p>



<p>This is the folder structure that AutoSPInstaler uses:</p>



<p><strong>\SP\Automation\AutoSPInstallerLaunch.bat</strong><br><strong>\SP\Automation\AutoSPInstallerInput.xml</strong><br><strong>\SP\Automation\AutoSPInstallerMain.ps1\SP\AutoSPInstallerMain.ps1</strong><br><strong>\SP\Automation\AutoSPInstallerModule.psm1</strong><br><strong>\SP\Automation\AutoSPInstallerConfigureRemoteTarget.ps1</strong><br><strong>\SP\201x\SharePoint\&lt;installation files &amp; folders&gt;</strong><br><strong>\SP\201x\SharePoint\PreRequisiteInstallerFiles\</strong><br><strong>\SP\201x\SharePoint\Updates\</strong><br><strong>\SP\201x\LanguagePacks\xx-xx\ </strong><br><strong>\SP\201x\LanguagePacks\xx-xx\Updates\ </strong><br><strong>\SP\201x\Updates\</strong></p>



<p>In this example, the root folder of the installation is&nbsp;C:\SP.</p>



<figure class="wp-block-image"><img fetchpriority="high" decoding="async" width="448" height="146" src="https://blogit.create.pt////wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FolderStructure.png" alt="" class="wp-image-7976" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FolderStructure.png 448w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FolderStructure-300x98.png 300w" sizes="(max-width: 448px) 100vw, 448px" /></figure>



<h1 class="wp-block-heading" id="creating-the-autospinstaller-configuration-file">Creating the AutoSPInstaller configuration file</h1>



<p>The next step, is to configure the AutoSPInstaller input configuration file that can be done in the <a href="https://autospinstaller.com" target="_blank" rel="noreferrer noopener" aria-label="The next step, is to configure the AutoSPInstaller input configuration file that can be done in the AutoSPInstaller web site.&nbsp; The end result of the configurations set in the AutoSPInstaller web site is the download of an XML file (AutoSPInstallerInput.xml) that contains all the settings required to configure the SharePoint farm. The AutoSPInstallerInput.xml file contains among other configurations: (opens in a new tab)">AutoSPInstaller web site</a>.&nbsp; The end result of the configurations set in the AutoSPInstaller web site is the download of an XML file (AutoSPInstallerInput.xml) that contains all the settings required to configure the SharePoint farm. The AutoSPInstallerInput.xml file contains among other configurations:</p>



<ul class="wp-block-list"><li>SharePoint version to install</li><li>The SharePoint product key</li><li>The Farm Account and all Managed Accounts and their credentials</li><li>The database instance that will support the SharePoint environment</li><li>The web applications we want to create (ex: Intranet. My Site, etc)</li><li>The service applications we want to enable and their configurations</li><li>Outgoing email settings for the farm</li><li>Database names: this is extremely useful since it allows us to have complete control over the names of all the databases that will be created during the SharePoint farm configuration and avoid having databases with unclear names containing GUIDs which is the default behavior if we configure the farm using SharePoint Products Configuration Wizard (PSConfig)</li></ul>



<figure class="wp-block-image"><img decoding="async" width="944" height="374" src="https://blogit.create.pt////wp-content/uploads/2018/07/AutoSPInstaller_DBs.jpg" alt="" class="wp-image-2154" srcset="https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_DBs.jpg 944w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_DBs-300x119.jpg 300w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_DBs-768x304.jpg 768w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_DBs-696x276.jpg 696w" sizes="(max-width: 944px) 100vw, 944px" /></figure>



<p>The AutoSPInstallerInput.xml file should be&nbsp;placed in&nbsp;C:\SP\Automation.</p>



<h1 class="wp-block-heading" id="installing-sharepoint">Installing SharePoint</h1>



<p>After the AutoSPInstallerInput.xml file is configured, it&#8217;s time to install SharePoint!</p>



<p><strong>IMPORTANT:</strong> the following steps should be executed using the <strong>sp_admin</strong> account.</p>



<p>Follow the following steps:</p>



<p>1. Run AutoSPInstallerLaunch.bat from the command line (run as administrator).</p>



<figure class="wp-block-image"><img decoding="async" width="580" height="166" src="https://blogit.create.pt////wp-content/uploads/2018/12/AutoSPInstaller_SP2019_Launch.png" alt="" class="wp-image-7958" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_Launch.png 580w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_Launch-300x86.png 300w" sizes="(max-width: 580px) 100vw, 580px" /></figure>



<p>AutoSPInstallerLaunch.bat will launch a PowerShell window that will install SharePoint and configure the farm using as an input the AutoSPInstaller XML configuration file (AutoSPInstallerInput.xml) previously configured using the AutoSPInstaller web site.</p>



<p>2. After the PowerShell window is launched, the following will happen:</p>



<ul class="wp-block-list"><li>Managed accounts credentials will be validated. If any of the credentials is incorrect, the script will stop</li><li>SharePoint prerequisites will be installed</li><li>SharePoint will be installed</li><li>SharePoint language packs will be installed</li><li>SharePoint updates will be installed</li></ul>



<p>The PowerShell script will start by validating all managed managed accounts configuration and if everything is OK, the SharePoint installation is started, beginning with the installation of all required prerequisites.</p>



<figure class="wp-block-image"><img decoding="async" width="1024" height="609" src="https://blogit.create.pt////wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallPreRequisites-1024x609.png" alt="" class="wp-image-7956" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallPreRequisites-1024x609.png 1024w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallPreRequisites-300x179.png 300w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallPreRequisites-768x457.png 768w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallPreRequisites-696x414.png 696w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallPreRequisites-1068x636.png 1068w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallPreRequisites-706x420.png 706w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallPreRequisites.png 1220w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>After prerequisites are installed, the script will install SharePoint.</p>



<figure class="wp-block-image"><img decoding="async" width="1006" height="724" src="https://blogit.create.pt////wp-content/uploads/2018/12/AutoSPInstaller_SP2019_Install.png" alt="" class="wp-image-7977" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_Install.png 1006w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_Install-300x216.png 300w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_Install-768x553.png 768w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_Install-696x501.png 696w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_Install-584x420.png 584w" sizes="(max-width: 1006px) 100vw, 1006px" /></figure>



<p>The SharePoint installation assumes that all prerequisites were successfully installed. If any of the prerequisites was not successfully installed, an error similar to the following may occur.</p>



<figure class="wp-block-image"><img decoding="async" width="672" height="424" src="https://blogit.create.pt////wp-content/uploads/2018/12/AutoSPInstaller_SP2019_Error.png" alt="" class="wp-image-7973" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_Error.png 672w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_Error-300x189.png 300w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_Error-666x420.png 666w" sizes="(max-width: 672px) 100vw, 672px" /></figure>



<p>To solve this error, there are two valid approaches:</p>



<ul class="wp-block-list"><li>Run AutoSPInstaller from the beginning so that the missing prerequisite(s) are installed</li><li>If the error remains, install the missing prerequisite(s) manually</li></ul>



<p>If no errors occur or after the prerequisites errors are solved, the PowerShell script will continue to do its magic until all SharePoint binaries are installed.</p>



<figure class="wp-block-image"><img decoding="async" width="1008" height="722" src="https://blogit.create.pt////wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallBeforeFarmConfig.png" alt="" class="wp-image-7978" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallBeforeFarmConfig.png 1008w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallBeforeFarmConfig-300x215.png 300w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallBeforeFarmConfig-768x550.png 768w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallBeforeFarmConfig-696x499.png 696w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallBeforeFarmConfig-586x420.png 586w" sizes="(max-width: 1008px) 100vw, 1008px" /></figure>



<p>After SharePoint binaries are installed, it&#8217;s time to configure the farm!</p>



<h1 class="wp-block-heading" id="configuring-the-sharepoint-farm">Configuring the SharePoint Farm</h1>



<p>After SharePoint is installed, the script will ask if we want to proceed with farm configuration. To proceed, select &#8220;y&#8221; and click ENTER. The script will, among others, perform the following actions:</p>



<ul class="wp-block-list"><li>Create all managed accounts</li><li>Configure IIS and SharePoint ULS log file paths</li><li>Create the configured web applications (ex: Intranet, My Site)</li><li>Configure the service applications</li><li>Configure outgoing email settings for the farm</li></ul>



<figure class="wp-block-image"><img decoding="async" width="1024" height="605" src="https://blogit.create.pt////wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallStartFarmConfig-1024x605.png" alt="" class="wp-image-7957" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallStartFarmConfig-1024x605.png 1024w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallStartFarmConfig-300x177.png 300w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallStartFarmConfig-768x454.png 768w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallStartFarmConfig-696x411.png 696w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallStartFarmConfig-1068x631.png 1068w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallStartFarmConfig-711x420.png 711w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_InstallStartFarmConfig.png 1222w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<figure class="wp-block-image"><img decoding="async" width="1024" height="605" src="https://blogit.create.pt////wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FarmConfiguration-1024x605.png" alt="" class="wp-image-7974" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FarmConfiguration-1024x605.png 1024w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FarmConfiguration-300x177.png 300w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FarmConfiguration-768x454.png 768w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FarmConfiguration-696x411.png 696w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FarmConfiguration-1068x631.png 1068w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FarmConfiguration-711x420.png 711w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FarmConfiguration.png 1218w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>The PowerShell script will continue until the SharePoint farm is configured.</p>



<figure class="wp-block-image"><img decoding="async" width="1024" height="606" src="https://blogit.create.pt////wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FinishInstall-1024x606.png" alt="" class="wp-image-7975" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FinishInstall-1024x606.png 1024w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FinishInstall-300x177.png 300w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FinishInstall-768x454.png 768w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FinishInstall-696x412.png 696w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FinishInstall-1068x632.png 1068w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FinishInstall-710x420.png 710w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPInstaller_SP2019_FinishInstall.png 1224w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>After the farm configuration is completed, the Central Administration will be opened and SharePoint is installed!</p>



<figure class="wp-block-image"><img decoding="async" width="975" height="635" src="https://blogit.create.pt////wp-content/uploads/2018/12/SP2019_CentralAdmin.png" alt="" class="wp-image-7969" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_CentralAdmin.png 975w, https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_CentralAdmin-300x195.png 300w, https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_CentralAdmin-768x500.png 768w, https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_CentralAdmin-696x453.png 696w, https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_CentralAdmin-645x420.png 645w" sizes="(max-width: 975px) 100vw, 975px" /></figure>



<p>If you configured a web application to be created, the image below shows how a modern Team Site will look like in your SharePoint 2019 environment.</p>



<figure class="wp-block-image"><img decoding="async" width="974" height="674" src="https://blogit.create.pt////wp-content/uploads/2018/12/SP2019_TeamSite.png" alt="" class="wp-image-7972" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_TeamSite.png 974w, https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_TeamSite-300x208.png 300w, https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_TeamSite-768x531.png 768w, https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_TeamSite-100x70.png 100w, https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_TeamSite-218x150.png 218w, https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_TeamSite-696x482.png 696w, https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_TeamSite-607x420.png 607w" sizes="(max-width: 974px) 100vw, 974px" /></figure>



<p><strong>IMPORTANT NOTE:</strong> It is recommended that you don&#8217;t delete the Default Web Site. If you do, the &#8220;SharePoint Web Services&#8221; IIS site created during the SharePoint installation will be created with ID 1 and the SharePoint configuration will stop this site because it is trying to stop the Default Web Site that has ID 1. If you delete the Default Web Site, make sure you change the &#8220;SharePoint Web Services&#8221; web site ID to a unique value different from 1.</p>



<h1 class="wp-block-heading" id="multi-server-installation-sharepoint-servers">Multi-Server Installation (SharePoint servers)</h1>



<p>If you want to install SharePoint 2019 in multiple servers there is a number of considerations that you have to take into account. Some of the most important decisions are:</p>



<ul class="wp-block-list"><li>What is your farm topology and the number of servers you want to consider (WFEs, Application Servers and Database Servers)</li><li>Which services and service applications will be provisioned for each server</li><li>Will you be using MinRoles or will you use a custom installation where you will be manually selecting the services and service applications that will be provisioned for each server?</li></ul>



<p>If you use MinRoles, these will supersede the individual service and service application selection for each server in the farm. These are the available MinRoles:</p>



<ul class="wp-block-list"><li>Front-end</li><li>Application</li><li>Distributed cache</li><li>Search</li><li>Custom (allows for a more granular selection of what services are provisioned in each server)</li><li>Single-server farm (the only configuration where SQL Server may be installed in the same server as SharePoint 2019, configuration not detailed here, reference the &lt;Database&gt; section in the AutoSPInstallerInput.xml file at the <a href="https://autospinstaller.com/" target="_blank" rel="noreferrer noopener">AutoSPInstaller web site</a>)</li><li>Front-end with Distributed Cache (merge of Front-end and Distributed cache MinRoles)</li><li>Application with Search (merge of Application and Search MinRoles)</li></ul>



<p>Each of the MinRoles automatically provisions a specific set of services and service applications. If you want to learn more about MinRoles, click <a rel="noreferrer noopener" aria-label="here (opens in a new tab)" href="https://docs.microsoft.com/en-us/sharepoint/administration/description-of-minrole-and-associated-services-in-sharepoint-server-2016" target="_blank">here</a>.</p>



<p>Once farm topology and service/service application distribution is decided, we are ready to install SharePoint 2019 in multiple servers. For the installation process, you basically have two options:</p>



<ul class="wp-block-list"><li>Use Remote Installation</li><li>Install SharePoint individually in each SharePoint server</li></ul>



<h3 class="wp-block-heading" id="autospinstaller-input-file-configuration-for-multi-server-installation-notes-when-not-using-minroles">AutoSPInstaller Input File Configuration for Multi-Server Installation Notes when not using MinRoles</h3>



<p>If you decide not to use MinRoles and go for a Custom installation (which allows for a more granular selection of what services are provisioned in each server), you must ensure that the AutoSPInstaller XML input file in all servers is configured as Custom.</p>



<p>When configuring AutoSPInstaller in the <a rel="noreferrer noopener" href="https://autospinstaller.com/" target="_blank">AutoSPInstaller web site</a> not to to use MinRoles, you will typically have a configuration similar to the one below.</p>



<div class="wp-block-image"><figure class="aligncenter"><img decoding="async" width="591" height="613" src="https://blogit.create.pt////wp-content/uploads/2019/10/AutoSPInstaller_MultiServerConfig_MinRoles.jpg" alt="" class="wp-image-11669" srcset="https://blogit.create.pt/wp-content/uploads/2019/10/AutoSPInstaller_MultiServerConfig_MinRoles.jpg 591w, https://blogit.create.pt/wp-content/uploads/2019/10/AutoSPInstaller_MultiServerConfig_MinRoles-289x300.jpg 289w, https://blogit.create.pt/wp-content/uploads/2019/10/AutoSPInstaller_MultiServerConfig_MinRoles-405x420.jpg 405w" sizes="(max-width: 591px) 100vw, 591px" /></figure></div>



<div class="wp-block-image"><figure class="aligncenter"><img decoding="async" width="583" height="450" src="https://blogit.create.pt////wp-content/uploads/2019/10/AutoSPInstaller_MultiServerConfig_FarmServices.jpg" alt="" class="wp-image-11670" srcset="https://blogit.create.pt/wp-content/uploads/2019/10/AutoSPInstaller_MultiServerConfig_FarmServices.jpg 583w, https://blogit.create.pt/wp-content/uploads/2019/10/AutoSPInstaller_MultiServerConfig_FarmServices-300x232.jpg 300w, https://blogit.create.pt/wp-content/uploads/2019/10/AutoSPInstaller_MultiServerConfig_FarmServices-544x420.jpg 544w" sizes="(max-width: 583px) 100vw, 583px" /></figure></div>



<p>This seems correct but the generated XML configuration will have the following configuration in the &lt;ServerRoles&gt; section:</p>



<ul class="wp-block-list"><li>&lt;<strong>Custom </strong>Provision=&#8221; <strong>false</strong>&#8221; /&gt;</li><li>&lt;<strong>SingleServerFarm </strong>Provision=&#8221;<strong>localhost</strong> &#8221; /&gt; </li></ul>



<p>With the configuration above, each server will be installed with a single server role and you will only be able to join the first server to the farm. When you try to add the remaining servers, the AutoSPInstaller PowerShell script instead of adding the servers to the farm, will try to recreate the farm, which will result in the error below. </p>



<figure class="wp-block-image"><img decoding="async" width="1073" height="368" src="https://i0.wp.com/blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError_AutoSPInstaller_Error.jpg?fit=696%2C239&amp;ssl=1" alt="" class="wp-image-11679" srcset="https://blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError_AutoSPInstaller_Error.jpg 1073w, https://blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError_AutoSPInstaller_Error-300x103.jpg 300w, https://blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError_AutoSPInstaller_Error-768x263.jpg 768w, https://blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError_AutoSPInstaller_Error-1024x351.jpg 1024w, https://blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError_AutoSPInstaller_Error-696x239.jpg 696w, https://blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError_AutoSPInstaller_Error-1068x366.jpg 1068w" sizes="(max-width: 1073px) 100vw, 1073px" /></figure>



<p>If you try to add the server manually to the farm, you will get the error below.</p>



<figure class="wp-block-image"><img decoding="async" width="676" height="581" src="https://blogit.create.pt////wp-content/uploads/2019/10/SPFarmJoinError.jpg" alt="" class="wp-image-11675" srcset="https://blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError.jpg 676w, https://blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError-300x258.jpg 300w, https://blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError-489x420.jpg 489w" sizes="(max-width: 676px) 100vw, 676px" /></figure>



<p>To solve this, you must edit the XML configuration to configure the servers as &#8220;Custom&#8221; and not &#8220;SingleServerFarm&#8221;, using a configuration similar to the following example (specific configuration depends on the number of servers and roles for each server):</p>



<ul class="wp-block-list"><li>&lt;<strong>Custom </strong>Provision=&#8221;<strong>localhost</strong>&#8221; /&gt;</li><li>&lt;<strong>SingleServerFarm </strong>Provision=&#8221;<strong>false</strong>&#8221; /&gt; </li></ul>



<pre class="wp-block-code"><code>&lt;ServerRoles&gt;
    &lt;Custom Provision="localhost" /&gt;
    &lt;WebFrontEnd Provision="false" /&gt;
    &lt;WebFrontEndWithDistributedCache Provision="false" /&gt;
    &lt;SingleServerFarm Provision="false" /&gt;
    &lt;Search Provision="false" /&gt;
    &lt;Application Provision="false" /&gt;
    &lt;ApplicationWithSearch Provision="false" /&gt;
    &lt;DistributedCache Provision="false" /&gt;
&lt;/ServerRoles&gt;</code></pre>



<h2 class="wp-block-heading" id="remote-installation">Remote Installation</h2>



<p>In this approach, SharePoint will be installed using AutoSPInstaller on all servers from one of the SharePoint servers. The script will first install SharePoint locally on the server where the script is being executed and will then install SharePoint remotely on the other servers (all at once or one by one depending on AutoSPInstaller configuration file). The installation on the remote servers is performed using PowerShell Remoting and Windows Remote Management (WinRM). WinRM must be enabled for each of the servers where SharePoint will be installed remotely. To learn more about Remote Install (example for SharePoint 2013 but valid for SharePoint 2019 in what regards to remote installation), click <a href="https://www.c5insight.com/Resources/Blog/tabid/148/entryid/586/using-autospinstaller-to-build-a-three-tier-sharepoint-2013-farm-part-1.aspx" target="_blank" rel="noreferrer noopener" aria-label=" (opens in a new tab)">here</a>.</p>



<h2 class="wp-block-heading" id="install-sharepoint-individually-in-each-sharepoint-server">Install SharePoint individually in each SharePoint server</h2>



<p>This option doesn&#8217;t require WinRM to be enabled on any of the servers but requires instead that the AutoSPInstaller installation folder (C:\SP in this post) is copied to all servers. Additionally, there are some important notes to consider:</p>



<ul class="wp-block-list"><li>SharePoint bits must be installed on all servers&nbsp;<strong>but farm configuration must only be done once all servers have the SharePoint bits installed</strong>. You may Install the SharePoint bits (all steps before the &#8220;Configuring the SharePoint Farm&#8221; in this post) in all servers at the same time but you must stop the installation process once you are asked to continue with farm configuration</li><li>After the SharePoint bits are installed on all servers, you may proceed to the &#8220;Configuring the SharePoint Farm&#8221; section of this post&nbsp;<strong>BUT this must be done server by server, one at a time, sequentially</strong>. The&nbsp;AutoSPInstaller configuration file will determine what services and service applications are going to be provisioned on each server:<ul><li>When you run the farm configuration in the first server, the farm will be created and the services and service applications that are configured to run on that server will be provisioned</li><li>When you run the farm configuration on the other servers, each server will be added to the farm and&nbsp;the services and service applications that are configured to run on that server will be provisioned</li></ul></li></ul>



<p>To read the first part of this two part step by step tutorial, click&nbsp;<a rel="noreferrer noopener" aria-label="To read the first part, click&nbsp;here. (opens in a new tab)" href="https://blogit.create.pt////miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-1/" target="_blank">here</a>.</p>



<h1 class="wp-block-heading" id="mce_20">Related Articles</h1>



<p>To learn why your business should migrate to SharePoint Online and Office 365, click <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/07/29/why-your-business-should-migrate-to-sharepoint-online-and-office-365-the-value-offer-part-1/" target="_blank">here</a> and <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/07/29/why-your-business-should-migrate-to-sharepoint-online-and-office-365-the-value-offer-part-2/" target="_blank">here</a>.</p>



<p>If you want to convert your tenant&#8217;s root classic site into a modern SharePoint site, click <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/08/27/how-to-modernize-your-tenant-root-site-collection-in-office-365-using-invoke-spositeswap/" target="_blank">here</a>. </p>



<p>If you are new to SharePoint and Office 365 and want to learn all about it, take a look at these <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2018/10/17/sharepoint-and-office-365-learning-resources/" target="_blank">learning resources</a>.</p>



<p>If you are work in a large organization who is using Office 365 or thinking to move to Office 365 and is considering between a single or multiple Office 365 tenants, I invite you to read <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/01/07/pros-and-cons-of-single-tenant-vs-multiple-tenants-in-office-365/" target="_blank">this article</a>.</p>



<p>To learn more about all the new features in SharePoint 2019, click <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2018/11/01/meet-the-new-modern-sharepoint-server-sharepoint-2019-rtm-is-here/" target="_blank">here.</a></p>



<p>If you want to learn how to upgrade a SharePoint 2013 farm to SharePoint 2019, click <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/03/06/how-to-upgrade-from-sharepoint-2013-to-sharepoint-2019-step-by-step-part-1/" target="_blank">here </a>and <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/03/06/how-to-upgrade-from-sharepoint-2013-to-sharepoint-2019-step-by-step-part-2/" target="_blank">here</a>.</p>



<p>If you want to learn all the steps and precautions necessary to successfully keep your SharePoint farm updated and be ready to start your move to the cloud, click <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/04/08/how-to-install-sharepoint-cumulative-updates-in-a-sharepoint-farm-step-by-step/" target="_blank">here</a>. </p>



<p>If you learn how to greatly speed up your SharePoint farm update process to ensure your SharePoint farm keeps updated and you stay one step closer to start your move to the cloud, click <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/05/02/how-to-speed-up-the-installation-of-sharepoint-cumulative-updates-using-powershell-step-by-step/" target="_blank">here</a>.</p>



<p>If you want to know all about the latest SharePoint and Office 365 announcements from SharePoint Conference 2019, click <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/06/05/whats-new-for-sharepoint-and-office-365-from-sharepoint-conference-2019-part-1/" target="_blank">here </a>and <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/06/05/whats-new-for-sharepoint-and-office-365-from-sharepoint-conference-2019-part-2/" target="_blank">here</a>.</p>



<p>If SharePoint 2019 is still not an option, you can learn more about how to install a SharePoint 2016 farm in an automated way using PowerShell, click <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-1/" target="_blank">here</a> and <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-2/" target="_blank">here</a>.</p>



<p>If you are involved in a SharePoint upgrade and want to learn more about the upgrade process, click <a rel="noreferrer noopener" aria-label="here  (opens in a new tab)" href="https://blogit.create.pt////miguelisidoro/2019/02/04/sharepoint-upgrade-upgrading-a-sharepoint-2010-farm-to-sharepoint-2016-step-by-step-part-1/" target="_blank">here </a>and <a href="https://blogit.create.pt////miguelisidoro/2019/02/04/sharepoint-upgrade-upgrading-a-sharepoint-2010-farm-to-sharepoint-2016-step-by-step-part-2/" target="_blank" rel="noreferrer noopener" aria-label="here (opens in a new tab)">here</a>.</p>



<p>Happy SharePointing!</p>


<p><!--EndFragment--></p>
<p></p><p>The post <a href="https://blogit.create.pt/miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-2/">How to install a SharePoint 2019 farm using PowerShell and AutoSPInstaller Step by Step (Part 2)</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blogit.create.pt/miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-2/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>How to install a SharePoint 2019 farm using PowerShell and AutoSPInstaller Step by Step (Part 1)</title>
		<link>https://blogit.create.pt/miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-1/</link>
					<comments>https://blogit.create.pt/miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-1/#comments</comments>
		
		<dc:creator><![CDATA[Miguel Isidoro]]></dc:creator>
		<pubDate>Sun, 09 Dec 2018 17:06:10 +0000</pubDate>
				<category><![CDATA[SharePoint 2019]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[AutoSPInstaller]]></category>
		<category><![CDATA[AutoSPSourceBuilder]]></category>
		<category><![CDATA[Deployment]]></category>
		<category><![CDATA[PowerShell]]></category>
		<guid isPermaLink="false">https://blogit.create.pt/?p=7951</guid>

					<description><![CDATA[<p>This post is the first part of a two part step by step tutorial on how to install SharePoint 2019 in a fully automated way using PowerShell. To read the second part, click&#160;here. Introduction The SharePoint world is rapidly moving into the Cloud with SharePoint Online and Office 365, but a new SharePoint Server release [&#8230;]</p>
<p>The post <a href="https://blogit.create.pt/miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-1/">How to install a SharePoint 2019 farm using PowerShell and AutoSPInstaller Step by Step (Part 1)</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>This post is the first part of a two part step by step tutorial on how to install SharePoint 2019 in a fully automated way using PowerShell.</p>



<p>To read the second part, click&nbsp;<a href="https://blogit.create.pt////miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-2/" target="_blank" rel="noreferrer noopener" aria-label="To read the second part, click&nbsp;here. (opens in a new tab)">here</a>.</p>



<h1 class="wp-block-heading">Introduction</h1>



<p>The SharePoint world is rapidly moving into the Cloud with SharePoint Online and Office 365, but a new SharePoint Server release was recently announced by Microsoft with improved hybrid support.&nbsp;To learn more about all the new features in SharePoint 2019, click&nbsp;<a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2018/11/01/meet-the-new-modern-sharepoint-server-sharepoint-2019-rtm-is-here/" target="_blank">here.</a></p>



<p>Before installing a SharePoint 2019 farm, it is important to be familiar with its requirements. To learn more about SharePoint 2019 hardware and software requirements, click <a rel="noreferrer noopener" href="https://docs.microsoft.com/en-us/sharepoint/install/hardware-and-software-requirements-2019" target="_blank">here</a>. </p>



<p>Installing a SharePoint farm can be a complex task and the installation process is composed by a series of steps:</p>



<ul class="wp-block-list"><li>Downloading and installing SharePoint prerequisites</li><li>Downloading and installing the SharePoint binaries</li><li>Downloading and installing the lastest SharePoint updates</li><li>Downloading and installing the required language packs (optional, necessary if you want the SharePoint interface to be presented in a language other than English)</li><li>Configuring the SharePoint farm using SharePoint Products and Configuration Wizard</li></ul>



<p>All the above steps are time consuming and can be error prone if, for example, you miss to download any of the prerequisites.</p>



<p>Fortunately, it is possible to fully automate a SharePoint farm installation using PowerShell by using a script called <a href="https://autospinstaller.com/" target="_blank" rel="noreferrer noopener">AutoSPInstaller</a>. The installation process can be divided in two major steps:</p>



<ul class="wp-block-list"><li>Downloading the SharePoint installation package</li><li>Installing SharePoint and configuring the SharePoint farm</li></ul>



<p>This process can be used for the following versions of SharePoint:</p>



<ul class="wp-block-list"><li>SharePoint 2010</li><li>SharePoint 2013</li><li>SharePoint 2016</li><li>SharePoint 2019 (to learn more about all the new features in SharePoint 2019, click <a href="https://blogit.create.pt////miguelisidoro/2018/11/01/meet-the-new-modern-sharepoint-server-sharepoint-2019-rtm-is-here/" target="_blank" rel="noreferrer noopener">here)</a></li></ul>



<p>In this post, I will talk about the first part of the process: downloading the SharePoint installation package and I will use SharePoint 2019 as an example.</p>



<h1 class="wp-block-heading">Downloading the SharePoint installation package</h1>



<p>The download process will be managed by a script called <a href="https://github.com/brianlala/AutoSPSourceBuilder" target="_blank" rel="noreferrer noopener">AutoSPSourceBuilder</a> that will download the SharePoint installation package and all its dependencies and will create a folder structure ready to be used in&nbsp;<a href="https://autospinstaller.com/" target="_blank" rel="noreferrer noopener">AutoSPInstaller</a>. The <a href="https://github.com/brianlala/AutoSPSourceBuilder" target="_blank" rel="noreferrer noopener">AutoSPSourceBuilder</a> script will download:</p>



<ul class="wp-block-list"><li>All SharePoint prerequisites</li><li>The latest SharePoint updates</li><li>If specified. the desired language pack</li></ul>



<p>To download the SharePoint 2019 installation package, follow the steps below:</p>



<ol class="wp-block-list"><li>Download&nbsp;<a href="https://www.microsoft.com/en-us/download/details.aspx?id=57462" target="_blank" rel="noreferrer noopener" aria-label="Download&nbsp;SharePoint 2019. (opens in a new tab)">SharePoint 2019</a>.</li></ol>



<figure class="wp-block-image"><img decoding="async" width="782" height="194" src="https://blogit.create.pt////wp-content/uploads/2018/12/SP2019_Download.png" alt="" class="wp-image-7970" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_Download.png 782w, https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_Download-300x74.png 300w, https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_Download-768x191.png 768w, https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_Download-696x173.png 696w" sizes="(max-width: 782px) 100vw, 782px" /></figure>



<p>2. Download&nbsp;<a href="https://github.com/brianlala/AutoSPSourceBuilder" target="_blank" rel="noreferrer noopener">AutoSPSourceBuilder</a>. After download, the folder should contain the following structure.</p>



<figure class="wp-block-image"><img decoding="async" width="592" height="152" src="https://blogit.create.pt////wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_Files.png" alt="" class="wp-image-7960" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_Files.png 592w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_Files-300x77.png 300w" sizes="(max-width: 592px) 100vw, 592px" /></figure>



<p>3. Mount the&nbsp;SharePoint 2019 .iso image.</p>



<figure class="wp-block-image"><img decoding="async" width="506" height="186" src="https://blogit.create.pt////wp-content/uploads/2018/12/SP2019_Mount.png" alt="" class="wp-image-7971" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_Mount.png 506w, https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_Mount-300x110.png 300w" sizes="(max-width: 506px) 100vw, 506px" /></figure>



<p>After mount, the mounted drive will have SharePoint installation files.</p>



<figure class="wp-block-image"><img decoding="async" width="580" height="398" src="https://blogit.create.pt////wp-content/uploads/2018/12/SP2019_Binaries.png" alt="" class="wp-image-7968" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_Binaries.png 580w, https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_Binaries-300x206.png 300w, https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_Binaries-100x70.png 100w, https://blogit.create.pt/wp-content/uploads/2018/12/SP2019_Binaries-218x150.png 218w" sizes="(max-width: 580px) 100vw, 580px" /></figure>



<p>4. Run the following script in a PowerShell window (run as administrator).</p>



<p><strong>.\AutoSPSourceBuilder.ps1 -GetPrerequisites $true -SharePointVersion “2019” -Languages “pt-pt” -LocationForUpdates C:\SP\2019\Updates</strong></p>



<p>This script will download SharePoint 2019 with all prerequisites and (if available) the Portuguese language pack. Change the &#8220;Languages&#8221; parameter to the Language Pack you want to include in your installation and the LocationForUpdates parameter to the desired location where AutoSPSourceBuilder will download the SharePoint updates that will be included in the SharePoint installation.</p>



<p>The script will start by detecting the SharePoint image that was previously downloaded. If successfully detected, it will extract the SharePoint installation files from the mounted image to the C:\SP\2019 folder.</p>



<figure class="wp-block-image"><img decoding="async" width="860" height="732" src="https://blogit.create.pt////wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_StartDownload.png" alt="" class="wp-image-7966" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_StartDownload.png 860w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_StartDownload-300x255.png 300w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_StartDownload-768x654.png 768w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_StartDownload-696x592.png 696w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_StartDownload-493x420.png 493w" sizes="(max-width: 860px) 100vw, 860px" /></figure>



<p>5. Once the SharePoint installation files extraction is completed, you will be asked to select the SharePoint update that you want to include on your installation package. Select the latest available package (all SharePoint 2019 updates are cumulative and include all updates contained in the previous updates). At this time, only one update is available.</p>



<figure class="wp-block-image"><img decoding="async" width="852" height="708" src="https://blogit.create.pt////wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_UpdateDownload.png" alt="" class="wp-image-7967" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_UpdateDownload.png 852w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_UpdateDownload-300x249.png 300w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_UpdateDownload-768x638.png 768w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_UpdateDownload-696x578.png 696w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_UpdateDownload-505x420.png 505w" sizes="(max-width: 852px) 100vw, 852px" /></figure>



<p>6. After selecting the update, the script will resume and start downloading the SharePoint prerequisites. the selected language pack and the selected SharePoint update.</p>



<figure class="wp-block-image"><img decoding="async" width="860" height="734" src="https://blogit.create.pt////wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_PreRequisitesDownloadStart.png" alt="" class="wp-image-7965" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_PreRequisitesDownloadStart.png 860w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_PreRequisitesDownloadStart-300x256.png 300w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_PreRequisitesDownloadStart-768x655.png 768w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_PreRequisitesDownloadStart-696x594.png 696w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_PreRequisitesDownloadStart-492x420.png 492w" sizes="(max-width: 860px) 100vw, 860px" /></figure>



<figure class="wp-block-image"><img decoding="async" width="858" height="734" src="https://blogit.create.pt////wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_PreRequisitesDownload.png" alt="" class="wp-image-7964" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_PreRequisitesDownload.png 858w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_PreRequisitesDownload-300x257.png 300w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_PreRequisitesDownload-768x657.png 768w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_PreRequisitesDownload-696x595.png 696w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_PreRequisitesDownload-491x420.png 491w" sizes="(max-width: 858px) 100vw, 858px" /></figure>



<p>7. After completion, the PowerShell window should look like the image below. At this time, the Portuguese language pack is still not available.</p>



<figure class="wp-block-image"><img decoding="async" width="862" height="734" src="https://blogit.create.pt////wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_DownloadFinished.png" alt="" class="wp-image-7959" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_DownloadFinished.png 862w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_DownloadFinished-300x255.png 300w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_DownloadFinished-768x654.png 768w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_DownloadFinished-696x593.png 696w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_DownloadFinished-493x420.png 493w" sizes="(max-width: 862px) 100vw, 862px" /></figure>



<p>The end result will be a structure of folders and files that will contain all the necessary files&nbsp;to install SharePoint with <a href="https://autospinstaller.com/" target="_blank" rel="noreferrer noopener" aria-label="The end result will be a structure of folders and files that will contain all the necessary files&nbsp;to install SharePoint with AutoSPInstaller. (opens in a new tab)">AutoSPInstaller</a>.</p>



<p>Root folder:</p>



<figure class="wp-block-image"><img decoding="async" width="472" height="128" src="https://blogit.create.pt////wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_FolderStructure.png" alt="" class="wp-image-7961" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_FolderStructure.png 472w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_FolderStructure-300x81.png 300w" sizes="(max-width: 472px) 100vw, 472px" /></figure>



<p>SharePoint bits folder (slipstreamed installation structure):</p>



<figure class="wp-block-image"><img decoding="async" width="580" height="422" src="https://blogit.create.pt////wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_FolderStructure_SP.png" alt="" class="wp-image-7962" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_FolderStructure_SP.png 580w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_FolderStructure_SP-300x218.png 300w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_FolderStructure_SP-324x235.png 324w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_FolderStructure_SP-577x420.png 577w" sizes="(max-width: 580px) 100vw, 580px" /></figure>



<p>Updates folder:</p>



<figure class="wp-block-image"><img decoding="async" width="446" height="86" src="https://blogit.create.pt////wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_FolderStructure_Updates.png" alt="" class="wp-image-7963" srcset="https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_FolderStructure_Updates.png 446w, https://blogit.create.pt/wp-content/uploads/2018/12/AutoSPSourceBuilder_SP2019_FolderStructure_Updates-300x58.png 300w" sizes="(max-width: 446px) 100vw, 446px" /></figure>



<p> <br>To read the second part of this two part step by step tutorial, click&nbsp;<a rel="noreferrer noopener" aria-label="To read the second part, click&nbsp;here. (opens in a new tab)" href="https://blogit.create.pt////miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-2/" target="_blank">here</a>.</p>



<h1 class="wp-block-heading" id="mce_25">Related Articles</h1>



<p>If you want to convert your tenant&#8217;s root classic site into a modern SharePoint site, click <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/08/27/how-to-modernize-your-tenant-root-site-collection-in-office-365-using-invoke-spositeswap/" target="_blank">here</a>. </p>



<p>To learn why your business should migrate to SharePoint Online and Office 365, click <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/07/29/why-your-business-should-migrate-to-sharepoint-online-and-office-365-the-value-offer-part-1/" target="_blank">here</a> and <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/07/29/why-your-business-should-migrate-to-sharepoint-online-and-office-365-the-value-offer-part-2/" target="_blank">here</a>.</p>



<p>If you are new to SharePoint and Office 365 and want to learn all about it, take a look at these <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2018/10/17/sharepoint-and-office-365-learning-resources/" target="_blank">learning resources</a>.</p>



<p>If you are work in a large organization who is using Office 365 or thinking to move to Office 365 and is considering between a single or multiple Office 365 tenants, I invite you to read <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/01/07/pros-and-cons-of-single-tenant-vs-multiple-tenants-in-office-365/" target="_blank">this article</a>.</p>



<p>To learn more about all the new features in SharePoint 2019, click <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2018/11/01/meet-the-new-modern-sharepoint-server-sharepoint-2019-rtm-is-here/" target="_blank">here.</a></p>



<p>If you want to learn how to upgrade a SharePoint 2013 farm to SharePoint 2019, click <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/03/06/how-to-upgrade-from-sharepoint-2013-to-sharepoint-2019-step-by-step-part-1/" target="_blank">here </a>and <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/03/06/how-to-upgrade-from-sharepoint-2013-to-sharepoint-2019-step-by-step-part-2/" target="_blank">here</a>.</p>



<p>If you want to learn all the steps and precautions necessary to successfully keep your SharePoint farm updated and be ready to start your move to the cloud, click <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/04/08/how-to-install-sharepoint-cumulative-updates-in-a-sharepoint-farm-step-by-step/" target="_blank">here</a>. </p>



<p>If you learn how to greatly speed up your SharePoint farm update process to ensure your SharePoint farm keeps updated and you stay one step closer to start your move to the cloud, click <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/05/02/how-to-speed-up-the-installation-of-sharepoint-cumulative-updates-using-powershell-step-by-step/" target="_blank">here</a>. </p>



<p>If you want to know all about the latest SharePoint and Office 365 announcements from SharePoint Conference 2019, click <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/06/05/whats-new-for-sharepoint-and-office-365-from-sharepoint-conference-2019-part-1/" target="_blank">here </a>and <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/06/05/whats-new-for-sharepoint-and-office-365-from-sharepoint-conference-2019-part-2/" target="_blank">here</a>.</p>



<p>If SharePoint 2019 is still not an option, you can learn more about how to install a SharePoint 2016 farm in an automated way using PowerShell, click <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-1/" target="_blank">here</a> and <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-2/" target="_blank">here</a>.</p>



<p>If you are involved in a SharePoint upgrade and want to learn more about the upgrade process, click <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/02/04/sharepoint-upgrade-upgrading-a-sharepoint-2010-farm-to-sharepoint-2016-step-by-step-part-1/" target="_blank">here </a>and <a rel="noreferrer noopener" href="https://blogit.create.pt////miguelisidoro/2019/02/04/sharepoint-upgrade-upgrading-a-sharepoint-2010-farm-to-sharepoint-2016-step-by-step-part-2/" target="_blank">here</a>. </p>



<p>Happy SharePointing!</p>
<p>The post <a href="https://blogit.create.pt/miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-1/">How to install a SharePoint 2019 farm using PowerShell and AutoSPInstaller Step by Step (Part 1)</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blogit.create.pt/miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-1/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>SharePoint 2016: Changing logo for all sites in a site collection using PowerShell</title>
		<link>https://blogit.create.pt/miguelisidoro/2018/10/24/sharepoint-2016-changing-logo-for-all-sites-in-a-site-collection-using-powershell/</link>
					<comments>https://blogit.create.pt/miguelisidoro/2018/10/24/sharepoint-2016-changing-logo-for-all-sites-in-a-site-collection-using-powershell/#respond</comments>
		
		<dc:creator><![CDATA[Miguel Isidoro]]></dc:creator>
		<pubDate>Wed, 24 Oct 2018 21:07:22 +0000</pubDate>
				<category><![CDATA[SharePoint 2016]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SharePoint2016]]></category>
		<guid isPermaLink="false">https://blogit.create.pt/?p=7624</guid>

					<description><![CDATA[<p>Hello, In a SharePoint 2010 to SharePoint 2016 migration project I was recently involved in, I noticed that in the new SharePoint 2016 Portal, the logo URL in all sites was pointing to an invalid URL. The Problem The reason for this is that the Logo URL was pointing to a URL in the SharePoint [&#8230;]</p>
<p>The post <a href="https://blogit.create.pt/miguelisidoro/2018/10/24/sharepoint-2016-changing-logo-for-all-sites-in-a-site-collection-using-powershell/">SharePoint 2016: Changing logo for all sites in a site collection using PowerShell</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hello,</p>
<p>In a SharePoint 2010 to SharePoint 2016 migration project I was recently involved in, I noticed that in the new SharePoint 2016 Portal, the logo URL in all sites was pointing to an invalid URL.</p>
<h1>The Problem</h1>
<p>The reason for this is that the Logo URL was pointing to a URL in the SharePoint hive (_layouts virtual directory) and the _layouts virtual directory URL has changed from SharePoint 2010 to SharePoint 2016:</p>
<ul>
<li>SharePoint 2010 Layouts root virtual directory URL: /_layouts</li>
<li>SharePoint 2016 Layouts root virtual directory URL: /_layouts/15</li>
</ul>
<h1>The Solution</h1>
<p>Since the site collection has a lot of subsites and I would like to avoid having to change the logo URL manually one by one, I built a small PowerShell script that will loop all the sub sites in the site collection and change the Logo URL for each one. Here is the script:</p>
<div>
<pre><strong>$sitelogo</strong> = "/_layouts/15/Images/logo.jpg"

<strong>$site</strong> = "https://intranet"

<strong>$sites</strong> = new-object Microsoft.SharePoint.SPSite($site)

foreach (<strong>$web</strong> in <strong>$sites</strong>.Allwebs) {

<strong>$webUrl</strong> = <strong>$web</strong>.Url

"Changing site logo url at <strong>$webUrl</strong>"

<strong>$web</strong>.SiteLogoUrl = <strong>$sitelogo</strong>

<strong>$web</strong>.Update()

}

<strong>$sites</strong>.Dispose()</pre>
</div>
<p><strong>NOTE:</strong> This script should also be valid for SharePoint 2013 and SharePoint 2019.</p>
<p>Hope this helps!</p>
<div>
<h1>Related Articles</h1>
<p>If you want to convert your tenant&#8217;s root classic site into a modern SharePoint site, click <a href="https://blogit.create.pt////miguelisidoro/2019/08/27/how-to-modernize-your-tenant-root-site-collection-in-office-365-using-invoke-spositeswap/" target="_blank" rel="noreferrer noopener">here</a>.</p>
<p>To learn why your business should migrate to SharePoint Online and Office 365, click <a href="https://blogit.create.pt////miguelisidoro/2019/07/29/why-your-business-should-migrate-to-sharepoint-online-and-office-365-the-value-offer-part-1/" target="_blank" rel="noreferrer noopener">here</a> and <a href="https://blogit.create.pt////miguelisidoro/2019/07/29/why-your-business-should-migrate-to-sharepoint-online-and-office-365-the-value-offer-part-2/" target="_blank" rel="noreferrer noopener">here</a>.</p>
<p>If you are a SharePoint administrator or a SharePoint developer who wants to learn more about how to install a SharePoint 2019 farm in an automated way using PowerShell, I invite you to click <a href="https://blogit.create.pt////miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-1/" target="_blank" rel="noopener noreferrer">here</a> and <a href="https://blogit.create.pt////miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-2/" target="_blank" rel="noopener noreferrer">here</a>.</p>
<p>If you want to learn how to upgrade a SharePoint 2013 farm to SharePoint 2019, click <a href="https://blogit.create.pt////miguelisidoro/2019/03/06/how-to-upgrade-from-sharepoint-2013-to-sharepoint-2019-step-by-step-part-1/" target="_blank" rel="noreferrer noopener">here </a>and <a href="https://blogit.create.pt////miguelisidoro/2019/03/06/how-to-upgrade-from-sharepoint-2013-to-sharepoint-2019-step-by-step-part-2/" target="_blank" rel="noreferrer noopener">here</a>.</p>
<p>If you want to learn all the steps and precautions necessary to successfully keep your SharePoint farm updated and be ready to start your move to the cloud, click <a href="https://blogit.create.pt////miguelisidoro/2019/04/08/how-to-install-sharepoint-cumulative-updates-in-a-sharepoint-farm-step-by-step/" target="_blank" rel="noreferrer noopener">here</a>.</p>
<p>If you learn how to greatly speed up your SharePoint farm update process to ensure your SharePoint farm keeps updated and you stay one step closer to start your move to the cloud, click <a href="https://blogit.create.pt////miguelisidoro/2019/05/02/how-to-speed-up-the-installation-of-sharepoint-cumulative-updates-using-powershell-step-by-step/" target="_blank" rel="noreferrer noopener" aria-label="here (opens in a new tab)">here</a>.</p>
<p>If SharePoint 2019 is still not an option, you can learn more about how to install a SharePoint 2016 farm in an automated way using PowerShell, click <a href="https://blogit.create.pt////miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-1/" target="_blank" rel="noreferrer noopener">here</a> and <a href="https://blogit.create.pt////miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-2/" target="_blank" rel="noreferrer noopener">here</a>.</p>
<p>If you are involved in a SharePoint upgrade and want to learn more about the upgrade process, click <a href="https://blogit.create.pt////miguelisidoro/2019/02/04/sharepoint-upgrade-upgrading-a-sharepoint-2010-farm-to-sharepoint-2016-step-by-step-part-1/" target="_blank" rel="noreferrer noopener">here </a>and <a href="https://blogit.create.pt////miguelisidoro/2019/02/04/sharepoint-upgrade-upgrading-a-sharepoint-2010-farm-to-sharepoint-2016-step-by-step-part-2/" target="_blank" rel="noreferrer noopener">here</a>.</p>
<p>If you want to know all about SharePoint 2019, the new version of SharePoint Server, click <a href="https://blogit.create.pt////miguelisidoro/2018/11/01/meet-the-new-modern-sharepoint-server-sharepoint-2019-rtm-is-here/" target="_blank" rel="noopener noreferrer">here</a>.</p>
<p>If you are new to SharePoint and Office 365 and want to learn all about it, take a look at these <a href="https://blogit.create.pt////miguelisidoro/2018/10/17/sharepoint-and-office-365-learning-resources/" target="_blank" rel="noopener noreferrer">learning resources</a>.</p>
<p>If you are work in a large organization who is using Office 365 or thinking to move to Office 365 and are considering between a single or multiple Office 365 tenants, I invite you to read <a href="https://blogit.create.pt////miguelisidoro/2019/01/07/pros-and-cons-of-single-tenant-vs-multiple-tenants-in-office-365/" target="_blank" rel="noreferrer noopener">this article</a>.</p>
<p>If you want to know all about the latest SharePoint and Office 365 announcements from SharePoint Conference 2019, click <a href="https://blogit.create.pt////miguelisidoro/2019/06/05/whats-new-for-sharepoint-and-office-365-from-sharepoint-conference-2019-part-1/" target="_blank" rel="noreferrer noopener">here </a>and <a href="https://blogit.create.pt////miguelisidoro/2019/06/05/whats-new-for-sharepoint-and-office-365-from-sharepoint-conference-2019-part-2/" target="_blank" rel="noreferrer noopener">here</a>.</p>
<p>Happy SharePointing!</p>
</div>
<p>The post <a href="https://blogit.create.pt/miguelisidoro/2018/10/24/sharepoint-2016-changing-logo-for-all-sites-in-a-site-collection-using-powershell/">SharePoint 2016: Changing logo for all sites in a site collection using PowerShell</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blogit.create.pt/miguelisidoro/2018/10/24/sharepoint-2016-changing-logo-for-all-sites-in-a-site-collection-using-powershell/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How to install a SharePoint 2016 farm using PowerShell and AutoSPInstaller Step by Step (Part 2)</title>
		<link>https://blogit.create.pt/miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-2/</link>
					<comments>https://blogit.create.pt/miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-2/#comments</comments>
		
		<dc:creator><![CDATA[Miguel Isidoro]]></dc:creator>
		<pubDate>Sat, 28 Jul 2018 23:32:14 +0000</pubDate>
				<category><![CDATA[SharePoint 2016]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[AutoSPInstaller]]></category>
		<category><![CDATA[Deployment]]></category>
		<guid isPermaLink="false">http://blogit.create.pt/miguelisidoro/?p=1974</guid>

					<description><![CDATA[<p>This post is the second part of a two part step by step tutorial on how to install SharePoint 2016 in a fully automated way using PowerShell. To read the first part, click here. Introduction Before installing a SharePoint 2016 farm, it is important to be familiar with its requirements. To learn more about SharePoint [&#8230;]</p>
<p>The post <a href="https://blogit.create.pt/miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-2/">How to install a SharePoint 2016 farm using PowerShell and AutoSPInstaller Step by Step (Part 2)</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[This post is the second part of a two part step by step tutorial on how to install SharePoint 2016 in a fully automated way using PowerShell.

To read the first part, click <a href="https://blogit.create.pt////miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-1/" target="_blank" rel="noopener noreferrer">here</a>.
<h1>Introduction</h1>
Before installing a SharePoint 2016 farm, it is important to be familiar with its requirements. To learn more about SharePoint 2016 hardware and software requirements, click <a href="https://docs.microsoft.com/en-us/sharepoint/install/hardware-and-software-requirements" target="_blank" rel="noreferrer noopener" aria-label=" (opens in a new tab)">here</a>.

Installing a SharePoint farm can be a complex task and the installation process is composed by a series of steps:
<ul>
 	<li>Downloading and installing SharePoint prerequisites</li>
 	<li>Downloading and installing the SharePoint binaries</li>
 	<li>Downloading and installing the lastest SharePoint updates</li>
 	<li>Downloading and installing the required language packs (optional, necessary if you want the SharePoint interface to be presented in a language other than English)</li>
 	<li>Configuring the SharePoint farm using SharePoint Products and Configuration Wizard</li>
</ul>
All the above steps are time consuming and can be error prone if, for example, you miss to download any of the prerequisites.

Fortunately, it is possible to fully automate a SharePoint farm installation using PowerShell by using a script called <a href="https://autospinstaller.com/" target="_blank" rel="noopener noreferrer">AutoSPInstaller</a>. The installation process can be divided in two major steps:
<ul>
 	<li>Downloading the SharePoint installation package, click <a href="https://blogit.create.pt////miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-1/" target="_blank" rel="noopener noreferrer">here</a> for more details</li>
 	<li>Installing SharePoint and configuring the SharePoint farm</li>
</ul>
In this post, I will talk about the second part of the process: installing SharePoint and configuring the SharePoint farm.

<a href="https://autospinstaller.com/" target="_blank" rel="noopener noreferrer">AutoSPInstaller</a> can be used to install a SharePoint farm in the following versions of SharePoint:
<ul>
 	<li>SharePoint 2010</li>
 	<li>SharePoint 2013</li>
 	<li>SharePoint 2016</li>
 	<li>SharePoint 2019 (to learn more about all the new features in SharePoint 2019, click <a href="https://blogit.create.pt////miguelisidoro/2018/11/01/meet-the-new-modern-sharepoint-server-sharepoint-2019-rtm-is-here/" target="_blank" rel="noopener noreferrer">here)</a></li>
</ul>
The example in this post is based on SharePoint 2016 with the following farm topology:

<!-- /wp:post-content --> <!-- wp:list -->
<ul>
 	<li>1 SharePoint 2016 Server</li>
 	<li>1 Database Server</li>
</ul>
<h1>Managed Accounts and Pre-Installation Requisites</h1>
This is a critical step to ensure a successful SharePoint installation. Before the AutoSPInstaller script is executed, all the necessary managed accounts must be created and the appropriate permissions must be properly granted to each account. If any of these permissions is not granted, you will probably encounter problems during the installation. From my experience doing SharePoint installations, creating these accounts with all the required permissions ensures a fast and successful SharePoint installation. Here is the list of accounts and required permissions:
<table style="height: 2873px" width="700">
<tbody>
<tr>
<td width="86"><strong>Name</strong></td>
<td width="259"><strong>Description</strong></td>
<td width="134"><strong>Local Rights</strong></td>
<td width="102"><strong>Domain Rights</strong></td>
</tr>
<tr>
<td width="86">sp_farm</td>
<td width="259">The server farm account is used to perform the following tasks:
-Configure and manage the server farm.
-Act as the application pool identity for the SharePoint Central Administration Web site.
-Run the Microsoft SharePoint Foundation Workflow Timer Service.</td>
<td width="134">SecurityAdmin and DB_Creator rights on the SQL Instance</td>
<td width="102">Domain User</td>
</tr>
<tr>
<td width="86">sp_admin</td>
<td width="259">The server farm account is used to perform the following tasks:
-Setup
-SharePoint Products Configuration Wizard</td>
<td width="134">Local Administrator on all the SharePoint Servers. SysAdmin, SecurityAdmin and DB_Creator rights on the SQL Instance.
Must be na account with permissions to add rules to the local firewall.</td>
<td width="102">Domain User</td>
</tr>
<tr>
<td width="86">sp_pool</td>
<td width="259">The Pool account is used to run the Web Application Pools</td>
<td width="134">None</td>
<td width="102">Domain User</td>
</tr>
<tr>
<td width="86">sp_services</td>
<td width="259">The Services Account is used to run the Service Application Pool</td>
<td width="134">None</td>
<td width="102">Domain User</td>
</tr>
<tr>
<td width="86">sp_crawl</td>
<td width="259">The Default Content Access Account for the Search Service Application</td>
<td width="134">None</td>
<td width="102">Domain User</td>
</tr>
<tr>
<td width="86">sp_search</td>
<td width="259">Service Account to run the SharePoint Search “Windows Service”</td>
<td width="134">Local Administrator and SysAdmin rights on the SQL instance</td>
<td width="102">Domain User</td>
</tr>
<tr>
<td width="86">sp_mysitepool</td>
<td width="259">Used for the My Sites Web Application</td>
<td width="134">None</td>
<td width="102">Domain User</td>
</tr>
<tr>
<td width="86">sp_userprofilesync</td>
<td width="259">The User Profile Synchronization Account</td>
<td width="134">None</td>
<td width="102"><a href="http://bit.ly/TSE7xs" target="_blank" rel="noopener noreferrer">Replicating Directory Changes permission on the domain.</a></td>
</tr>
<tr>
<td width="86">wf_service</td>
<td width="259">WorkFlow Manager Service Account</td>
<td width="134">Local Administrator and SysAdmin rights on the SQL instance.</td>
<td width="102">Domain User</td>
</tr>
<tr>
<td width="86">sp_portalsuperuser</td>
<td width="259">Object Cache Service Account. The goals of the object cache are to reduce the load on the computer on which SQL Server is running, and to improve request latency and throughput. These user account must be properly configured to ensure that the object cache works correctly.</td>
<td width="134">None.
SharePoint: Must be an account that has Full Control access to the Web application.</td>
<td width="102">Domain User</td>
</tr>
<tr>
<td width="86">sp_portalsuperreader</td>
<td width="259">Object Cache Service Account. The goals of the object cache are to reduce the load on the computer on which SQL Server is running, and to improve request latency and throughput. These user account must be properly configured to ensure that the object cache works correctly.</td>
<td width="134">None.
SharePoint: Must be an account that has Full Read access to the Web application.</td>
<td width="102">Domain User</td>
</tr>
</tbody>
</table>
<strong>
Important Notes: </strong>
<ul>
 	<li>To avoid problems executing the AutoSPInstaller script, ensure that the passwords of the above accounts do not contain any special characters (ex: $,%,&amp;,/. etc)</li>
 	<li>The above table contains a proposal to name the accounts for the SharePoint installation. If you choose to use different names, ensure that the account names do not exceed 20 characters since NETBIOS names have a limit of 20 characters</li>
</ul>
<h1>Download AutoSPInstaller PowerShell script</h1>
To download the latest version of AutoSPInstaller, click <a href="https://github.com/brianlala/AutoSPInstaller" target="_blank" rel="noopener noreferrer">here</a>.

The files should be extracted to C:\SP\AutoSPInstaller, assuming that the SharePoint 2016 installation files downloaded with AutoSPSourceBuilder were saved to C:\SP\2016.

This is the folder structure that AutoSPInstaler uses:

<strong>\SP\AutoSPInstaller\AutoSPInstallerLaunch.bat</strong>
<strong>\SP\AutoSPInstaller\AutoSPInstallerInput.xml</strong>
<strong>\SP\AutoSPInstaller\AutoSPInstallerMain.ps1\SP\AutoSPInstaller\AutoSPInstallerFunctions.ps1</strong>
<strong>\SP\AutoSPInstaller\AutoSPInstallerFunctionsCustom.ps1</strong>
<strong>\SP\AutoSPInstaller\AutoSPInstallerConfigureRemoteTarget.ps1</strong>
<strong>\SP\AutoSPInstaller\config.xml</strong>
<strong>\SP\201x\SharePoint\&lt;installation files &amp; folders&gt;</strong>
<strong>\SP\201x\SharePoint\PreRequisiteInstallerFiles\</strong>
<strong>\SP\201x\SharePoint\Updates\</strong>
<strong>\SP\201x\LanguagePacks\xx-xx\ </strong>
<strong>\SP\201x\LanguagePacks\xx-xx\Updates\ </strong>
<strong>\SP\201x\Updates\</strong>

In this example, the root folder of the installation is C:\SP.
<h1>Creating the AutoSPInstaller configuration file</h1>
The next step, is to configure the AutoSPInstaller input configuration file that can be done in the <a href="https://autospinstaller.com" target="_blank" rel="noopener noreferrer">AutoSPInstaller web site</a>.  The end result of the configurations set in the AutoSPInstaller web site is the download of an XML file (AutoSPInstallerInput.xml) that contains all the settings required to configure the SharePoint farm. The AutoSPInstallerInput.xml file contains among other configurations:
<ul>
 	<li>SharePoint version to install</li>
 	<li>The SharePoint product key</li>
 	<li>The Farm Account and all Managed Accounts and their credentials</li>
 	<li>The database instance that will support the SharePoint environment</li>
 	<li>The web applications we want to create (ex: Intranet. My Site, etc)</li>
 	<li>The service applications we want to enable and their configurations</li>
 	<li>Outgoing email settings for the farm</li>
 	<li>Database names: this is extremely useful since it allows us to have complete control over the names of all the databases that will be created during the SharePoint farm configuration and avoid having databases with unclear names containing GUIDs which is the default behavior if we configure the farm using SharePoint Products Configuration Wizard (PSConfig)</li>
</ul>
<img decoding="async" class="size-full wp-image-2154 alignnone" src="https://blogit.create.pt////wp-content/uploads/2018/07/AutoSPInstaller_DBs.jpg" alt="" width="944" height="374" srcset="https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_DBs.jpg 944w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_DBs-300x119.jpg 300w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_DBs-768x304.jpg 768w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_DBs-696x276.jpg 696w" sizes="(max-width: 944px) 100vw, 944px" />

The AutoSPInstallerInput.xml file should be placed in C:\SP\AutoSPInstaller.
<h1>Installing SharePoint</h1>
After the AutoSPInstallerInput.xml file is configured, it&#8217;s time to install SharePoint!

<strong>IMPORTANT:</strong> the following steps should be executed using the <strong>sp_admin</strong> account.

Follow the following steps:

1. Run AutoSPInstallerLaunch.bat from the command line (run as administrator)

<a href="http://blogit.create.pt/miguelisidoro/wp-content/uploads/sites/71/2018/07/AutoSPInstaller_RunBat.jpg"><img decoding="async" class="alignnone size-full wp-image-2214" src="http://blogit.create.pt/miguelisidoro/wp-content/uploads/sites/71/2018/07/AutoSPInstaller_RunBat.jpg" alt="" width="759" height="428" srcset="https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_RunBat.jpg 759w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_RunBat-300x169.jpg 300w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_RunBat-696x392.jpg 696w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_RunBat-745x420.jpg 745w" sizes="(max-width: 759px) 100vw, 759px" /></a>

AutoSPInstallerLaunch.bat will launch a PowerShell window that will install SharePoint and configure the farm using as an input the AutoSPInstaller XML configuration file (AutoSPInstallerInput.xml) previously configured using the AutoSPInstaller web site.

2. After the PowerShell window is launched, the following will happen:
<ul>
 	<li>Managed accounts credentials will be validated. If any of the credentials is incorrect, the script will stop</li>
 	<li>SharePoint prerequisites will be installed</li>
 	<li>SharePoint will be installed</li>
 	<li>SharePoint language packs will be installed</li>
 	<li>SharePoint updates will be installed</li>
</ul>
During the script execution. a message may be presented saying that the script needs to be re-launched to workaround an known issue with SharePoint 2016 when language packs are being installed.

<a href="http://blogit.create.pt/miguelisidoro/wp-content/uploads/sites/71/2018/07/AutoSPInstaller_PowerShell_Issue.jpg.png"><img decoding="async" class="alignnone size-full wp-image-2204" src="http://blogit.create.pt/miguelisidoro/wp-content/uploads/sites/71/2018/07/AutoSPInstaller_PowerShell_Issue.jpg.png" alt="" width="867" height="641" srcset="https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_PowerShell_Issue.jpg.png 867w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_PowerShell_Issue.jpg-300x222.png 300w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_PowerShell_Issue.jpg-768x568.png 768w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_PowerShell_Issue.jpg-80x60.png 80w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_PowerShell_Issue.jpg-696x515.png 696w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_PowerShell_Issue.jpg-568x420.png 568w" sizes="(max-width: 867px) 100vw, 867px" /></a>

After the script is re-launched, the installation will resume until all SharePoint binaries are installed.

<a href="http://blogit.create.pt/miguelisidoro/wp-content/uploads/sites/71/2018/07/AutoSPInstaller_PowerShell.jpg"><img decoding="async" class="alignnone size-full wp-image-2234" src="http://blogit.create.pt/miguelisidoro/wp-content/uploads/sites/71/2018/07/AutoSPInstaller_PowerShell.jpg" alt="" width="878" height="629" srcset="https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_PowerShell.jpg 878w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_PowerShell-300x215.jpg 300w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_PowerShell-768x550.jpg 768w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_PowerShell-696x499.jpg 696w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPInstaller_PowerShell-586x420.jpg 586w" sizes="(max-width: 878px) 100vw, 878px" /></a>
<h1>Configuring the SharePoint Farm</h1>
After SharePoint is installed, the script will ask if we want to proceed with farm configuration. To proceed, select &#8220;y&#8221; and click ENTER. The script will, among others, perform the following actions:
<ul>
 	<li>Create all managed accounts</li>
 	<li>Configure IIS and SharePoint ULS log file paths</li>
 	<li>Create the configured web applications (ex: Intranet, My Site)</li>
 	<li>Configure the service applications</li>
 	<li>Configure outgoing email settings for the farm</li>
</ul>
After the farm configuration is completed, the Central Administration will be opened and SharePoint is installed!

<a href="http://blogit.create.pt/miguelisidoro/wp-content/uploads/sites/71/2018/07/SharePoint2016_CA.jpg"><img decoding="async" class="alignnone size-full wp-image-2224" src="http://blogit.create.pt/miguelisidoro/wp-content/uploads/sites/71/2018/07/SharePoint2016_CA.jpg" alt="" width="1366" height="663" srcset="https://blogit.create.pt/wp-content/uploads/2018/07/SharePoint2016_CA.jpg 1366w, https://blogit.create.pt/wp-content/uploads/2018/07/SharePoint2016_CA-300x146.jpg 300w, https://blogit.create.pt/wp-content/uploads/2018/07/SharePoint2016_CA-768x373.jpg 768w, https://blogit.create.pt/wp-content/uploads/2018/07/SharePoint2016_CA-1024x497.jpg 1024w, https://blogit.create.pt/wp-content/uploads/2018/07/SharePoint2016_CA-696x338.jpg 696w, https://blogit.create.pt/wp-content/uploads/2018/07/SharePoint2016_CA-1068x518.jpg 1068w, https://blogit.create.pt/wp-content/uploads/2018/07/SharePoint2016_CA-865x420.jpg 865w" sizes="(max-width: 1366px) 100vw, 1366px" /></a>

<!-- wp:heading {"level":1} -->
<h1>Multi-Server Installation</h1>
<!-- /wp:heading -->

<!-- wp:paragraph -->

If you want to install SharePoint 2016 in multiple servers there is a number of considerations that you have to take into account. Some of the most important decisions are:

<!-- /wp:paragraph -->

<!-- wp:list -->
<ul>
 	<li>What is your farm topology and the number of servers you want to consider (WFEs, Application Servers and Database Servers)</li>
 	<li>Which services and service applications will be provisioned for each server</li>
 	<li>Will you be using MinRoles or will you use a custom installation where you will be manually selecting the services and service applications that will be provisioned for each server?</li>
</ul>
<!-- /wp:list -->

<!-- wp:paragraph -->

If you use MinRoles, these will supersede the individual service and service application selection for each server in the farm. These are the available MinRoles:

<!-- /wp:paragraph -->

<!-- wp:list -->
<ul>
 	<li>Front-end</li>
 	<li>Application</li>
 	<li>Distributed cache</li>
 	<li>Search</li>
 	<li>Custom</li>
 	<li>Single-server farm</li>
 	<li>Front-end with Distributed Cache (merge of
Front-end and Distributed cache MinRoles). available with Feature Pack 1 update or later</li>
 	<li>Application with Search (merge of Application and Search MinRoles). available with Feature Pack 1 update or later</li>
</ul>
<!-- /wp:list -->

<!-- wp:paragraph -->

Each of the MinRoles automatically provisions a specific set of services and service applications. If you want to learn more about MinRoles, click <a href="https://docs.microsoft.com/en-us/sharepoint/administration/description-of-minrole-and-associated-services-in-sharepoint-server-2016" target="_blank" rel="noreferrer noopener" aria-label="here (opens in a new tab)">here</a>.

<!-- /wp:paragraph -->

<!-- wp:paragraph -->

Once farm topology and service/service application distribution is decided, we are ready to install SharePoint 2016 in multiple servers. For the installation process, you basically have two options:

<!-- /wp:paragraph -->

<!-- wp:list -->
<ul>
 	<li>Use Remote Installation</li>
 	<li>Install SharePoint individually in each SharePoint server</li>
</ul>
<!-- /wp:list -->

<!-- wp:heading {"level":3} -->
<h3>AutoSPInstaller Input File Configuration for Multi-Server Installation Notes when not using MinRoles</h3>
<!-- /wp:heading -->

<!-- wp:paragraph -->

If you decide not to use MinRoles and go for a Custom installation (which allows for a more granular selection of what services are provisioned in each server), you must ensure that the AutoSPInstaller XML input file in all servers is configured as Custom.

<!-- /wp:paragraph -->

<!-- wp:paragraph -->

When configuring AutoSPInstaller in the <a href="https://autospinstaller.com/" target="_blank" rel="noreferrer noopener">AutoSPInstaller web site</a> not to to use MinRoles, you will typically have a configuration similar to the one below.

<!-- /wp:paragraph -->

<!-- wp:image {"id":11669,"align":"center"} -->
<div class="wp-block-image">
<figure class="aligncenter"><img decoding="async" width="591" height="613" class="wp-image-11669" src="https://blogit.create.pt////wp-content/uploads/2019/10/AutoSPInstaller_MultiServerConfig_MinRoles.jpg" alt="" srcset="https://blogit.create.pt/wp-content/uploads/2019/10/AutoSPInstaller_MultiServerConfig_MinRoles.jpg 591w, https://blogit.create.pt/wp-content/uploads/2019/10/AutoSPInstaller_MultiServerConfig_MinRoles-289x300.jpg 289w, https://blogit.create.pt/wp-content/uploads/2019/10/AutoSPInstaller_MultiServerConfig_MinRoles-405x420.jpg 405w" sizes="(max-width: 591px) 100vw, 591px" /></figure>
</div>
<!-- /wp:image -->

<!-- wp:image {"id":11670,"align":"center"} -->
<div class="wp-block-image">
<figure class="aligncenter"><img decoding="async" width="583" height="450" class="wp-image-11670" src="https://blogit.create.pt////wp-content/uploads/2019/10/AutoSPInstaller_MultiServerConfig_FarmServices.jpg" alt="" srcset="https://blogit.create.pt/wp-content/uploads/2019/10/AutoSPInstaller_MultiServerConfig_FarmServices.jpg 583w, https://blogit.create.pt/wp-content/uploads/2019/10/AutoSPInstaller_MultiServerConfig_FarmServices-300x232.jpg 300w, https://blogit.create.pt/wp-content/uploads/2019/10/AutoSPInstaller_MultiServerConfig_FarmServices-544x420.jpg 544w" sizes="(max-width: 583px) 100vw, 583px" /></figure>
</div>
<!-- /wp:image -->

<!-- wp:paragraph -->

This seems correct but the generated XML configuration will have the following configuration in the &lt;ServerRoles&gt; section:

<!-- /wp:paragraph -->

<!-- wp:list -->
<ul>
 	<li>&lt;<strong>Custom </strong>Provision=&#8221; <strong>false</strong>&#8221; /&gt;</li>
 	<li>&lt;<strong>SingleServerFarm </strong>Provision=&#8221;<strong>localhost</strong> &#8221; /&gt;</li>
</ul>
<!-- /wp:list -->

<!-- wp:paragraph -->

With the configuration above, each server will be installed with a single server role and you will only be able to join the first server to the farm. When you try to add the remaining servers, the AutoSPInstaller PowerShell script instead of adding the servers to the farm, will try to recreate the farm, which will result in the error below.

<!-- /wp:paragraph -->

<!-- wp:image {"id":11679} -->
<figure class="wp-block-image"><img decoding="async" class="wp-image-11679" src="https://i0.wp.com/blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError_AutoSPInstaller_Error.jpg?fit=696%2C239&amp;ssl=1" alt="" width="696" height="239" srcset="https://blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError_AutoSPInstaller_Error.jpg 1073w, https://blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError_AutoSPInstaller_Error-300x103.jpg 300w, https://blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError_AutoSPInstaller_Error-768x263.jpg 768w, https://blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError_AutoSPInstaller_Error-1024x351.jpg 1024w, https://blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError_AutoSPInstaller_Error-696x239.jpg 696w, https://blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError_AutoSPInstaller_Error-1068x366.jpg 1068w" sizes="(max-width: 696px) 100vw, 696px" /></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->

If you try to add the server manually to the farm, you will get the error below.

<!-- /wp:paragraph -->

<!-- wp:image {"id":11675} -->
<figure class="wp-block-image"><img decoding="async" width="676" height="581" class="wp-image-11675" src="https://blogit.create.pt////wp-content/uploads/2019/10/SPFarmJoinError.jpg" alt="" srcset="https://blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError.jpg 676w, https://blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError-300x258.jpg 300w, https://blogit.create.pt/wp-content/uploads/2019/10/SPFarmJoinError-489x420.jpg 489w" sizes="(max-width: 676px) 100vw, 676px" /></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->

To solve this, you must edit the XML configuration to configure the servers as &#8220;Custom&#8221; and not &#8220;SingleServerFarm&#8221;, using with the following configuration:

<!-- /wp:paragraph -->

<!-- wp:list -->
<ul>
 	<li>&lt;<strong>Custom </strong>Provision=&#8221;<strong>localhost</strong>&#8221; /&gt;</li>
 	<li>&lt;<strong>SingleServerFarm </strong>Provision=&#8221;<strong>false</strong>&#8221; /&gt;</li>
</ul>
<!-- /wp:list -->

<!-- wp:code -->
<pre class="wp-block-code"><code>&lt;ServerRoles&gt;
    &lt;Custom Provision="localhost" /&gt;
    &lt;WebFrontEnd Provision="false" /&gt;
    &lt;WebFrontEndWithDistributedCache Provision="false" /&gt;
    &lt;SingleServerFarm Provision="false" /&gt;
    &lt;Search Provision="false" /&gt;
    &lt;Application Provision="false" /&gt;
    &lt;ApplicationWithSearch Provision="false" /&gt;
    &lt;DistributedCache Provision="false" /&gt;
&lt;/ServerRoles&gt;</code></pre>
<!-- /wp:code -->

<!-- wp:list -->

<!-- /wp:list -->

<!-- wp:heading -->
<h2>Remote Installation</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->

In this approach, SharePoint will be installed using AutoSPInstaller on all servers from one of the SharePoint servers. The script will first install SharePoint locally on the server where the script is being executed and will then install SharePoint remotely on the other servers (all at once or one by one depending on AutoSPInstaller configuration file). The installation on the remote servers is performed using PowerShell Remoting and Windows Remote Management (WinRM). WinRM must be enabled for each of the servers where SharePoint will be installed remotely. To learn more about Remote Install (example for SharePoint 2013 but valid for SharePoint 2016 in what regards to remote installation), click <a href="https://www.c5insight.com/Resources/Blog/tabid/148/entryid/586/using-autospinstaller-to-build-a-three-tier-sharepoint-2013-farm-part-1.aspx" target="_blank" rel="noreferrer noopener" aria-label=" (opens in a new tab)">here</a>.

<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Install SharePoint individually in each SharePoint server</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->

This option doesn&#8217;t require WinRM to be enabled on any of the servers but requires instead that the AutoSPInstaller installation folder (C:\SP in this post) is copied to all servers. Additionally, there are some important notes to consider:

<!-- /wp:paragraph -->

<!-- wp:list -->
<ul>
 	<li>SharePoint bits must be installed on all servers <strong>but farm configuration must only be done once all servers have the SharePoint bits installed</strong>. You may Install the SharePoint bits (all steps before the &#8220;Configuring the SharePoint Farm&#8221; in this post) in all servers at the same time but you must stop the installation process once you are asked to continue with farm configuration</li>
 	<li>After the SharePoint bits are installed on all servers, you may proceed to the &#8220;Configuring the SharePoint Farm&#8221; section of this post <strong>BUT this must be done server by server, one at a time, sequentially</strong>. The AutoSPInstaller configuration file will determine what services and service applications are going to be provisioned on each server:
<ul>
 	<li>When you run the farm configuration in the first server, the farm will be created and the services and service applications that are configured to run on that server will be provisioned</li>
 	<li>When you run the farm configuration on the other servers, each server will be added to the farm and the services and service applications that are configured to run on that server will be provisioned</li>
</ul>
</li>
</ul>
<!-- /wp:list -->

<!-- wp:paragraph -->

To read the first part of this two part step by step tutorial, click <a href="https://blogit.create.pt////miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-1/" target="_blank" rel="noopener noreferrer">here.</a>
<h1>Related Articles</h1>
To learn why your business should migrate to SharePoint Online and Office 365, click <a href="https://blogit.create.pt////miguelisidoro/2019/07/29/why-your-business-should-migrate-to-sharepoint-online-and-office-365-the-value-offer-part-1/" target="_blank" rel="noreferrer noopener">here</a> and <a href="https://blogit.create.pt////miguelisidoro/2019/07/29/why-your-business-should-migrate-to-sharepoint-online-and-office-365-the-value-offer-part-2/" target="_blank" rel="noreferrer noopener">here</a>.

If you want to convert your tenant&#8217;s root classic site into a modern SharePoint site, click <a href="https://blogit.create.pt////miguelisidoro/2019/08/27/how-to-modernize-your-tenant-root-site-collection-in-office-365-using-invoke-spositeswap/" target="_blank" rel="noreferrer noopener">here</a>.

<a href="https://autospinstaller.com/" target="_blank" rel="noopener noreferrer">AutoSPInstaller</a> is also already available for the recently announced new version SharePoint, SharePoint 2019. To learn more about all the new features in SharePoint 2019, click <a href="https://blogit.create.pt////miguelisidoro/2018/11/01/meet-the-new-modern-sharepoint-server-sharepoint-2019-rtm-is-here/" target="_blank" rel="noopener noreferrer">here.</a>

If you are a SharePoint administrator or a SharePoint developer who wants to learn more about how to install a SharePoint 2019 farm in an automated way using PowerShell, I invite you to click <a href="https://blogit.create.pt////miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-1/" target="_blank" rel="noopener noreferrer">here</a> and <a href="https://blogit.create.pt////miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-2/" target="_blank" rel="noopener noreferrer">here</a>.

If you want to learn how to upgrade a SharePoint 2013 farm to SharePoint 2019, click <a href="https://blogit.create.pt////miguelisidoro/2019/03/06/how-to-upgrade-from-sharepoint-2013-to-sharepoint-2019-step-by-step-part-1/" target="_blank" rel="noreferrer noopener">here </a>and <a href="https://blogit.create.pt////miguelisidoro/2019/03/06/how-to-upgrade-from-sharepoint-2013-to-sharepoint-2019-step-by-step-part-2/" target="_blank" rel="noreferrer noopener">here</a>.

If you want to learn all the steps and precautions necessary to successfully keep your SharePoint farm updated and be ready to start your move to the cloud, click <a href="https://blogit.create.pt////miguelisidoro/2019/04/08/how-to-install-sharepoint-cumulative-updates-in-a-sharepoint-farm-step-by-step/" target="_blank" rel="noreferrer noopener">here</a>.

If you learn how to greatly speed up your SharePoint farm update process to ensure your SharePoint farm keeps updated and you stay one step closer to start your move to the cloud, click <a href="https://blogit.create.pt////miguelisidoro/2019/05/02/how-to-speed-up-the-installation-of-sharepoint-cumulative-updates-using-powershell-step-by-step/" target="_blank" rel="noreferrer noopener" aria-label="here (opens in a new tab)">here</a>.

If you want to learn how to upgrade a SharePoint 2010 farm to SharePoint 2016, click <a href="https://blogit.create.pt////miguelisidoro/2019/02/04/sharepoint-upgrade-upgrading-a-sharepoint-2010-farm-to-sharepoint-2016-step-by-step-part-1/" target="_blank" rel="noreferrer noopener">here </a>and <a href="https://blogit.create.pt////miguelisidoro/2019/02/04/sharepoint-upgrade-upgrading-a-sharepoint-2010-farm-to-sharepoint-2016-step-by-step-part-2/" target="_blank" rel="noreferrer noopener">here</a>.

If you are new to SharePoint and Office 365 and want to learn all about it, take a look at these <a href="https://blogit.create.pt////miguelisidoro/2018/10/17/sharepoint-and-office-365-learning-resources/" target="_blank" rel="noreferrer noopener">learning resources</a>.

If you are work in a large organization who is using Office 365 or thinking to move to Office 365 and is considering between a single or multiple Office 365 tenants, I invite you to read <a href="https://blogit.create.pt////miguelisidoro/2019/01/07/pros-and-cons-of-single-tenant-vs-multiple-tenants-in-office-365/" target="_blank" rel="noreferrer noopener">this article</a>.

If you want to know all about the latest SharePoint and Office 365 announcements from SharePoint Conference 2019, click <a href="https://blogit.create.pt////miguelisidoro/2019/06/05/whats-new-for-sharepoint-and-office-365-from-sharepoint-conference-2019-part-1/" target="_blank" rel="noreferrer noopener">here </a>and <a href="https://blogit.create.pt////miguelisidoro/2019/06/05/whats-new-for-sharepoint-and-office-365-from-sharepoint-conference-2019-part-2/" target="_blank" rel="noreferrer noopener">here</a>.

Happy SharePointing!

<!-- wp:paragraph -->

<!-- /wp:paragraph --><!-- /wp:paragraph --><p>The post <a href="https://blogit.create.pt/miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-2/">How to install a SharePoint 2016 farm using PowerShell and AutoSPInstaller Step by Step (Part 2)</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blogit.create.pt/miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-2/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
		<item>
		<title>How to install a SharePoint 2016 farm using PowerShell and AutoSPInstaller Step by Step (Part 1)</title>
		<link>https://blogit.create.pt/miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-1/</link>
					<comments>https://blogit.create.pt/miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-1/#comments</comments>
		
		<dc:creator><![CDATA[Miguel Isidoro]]></dc:creator>
		<pubDate>Sat, 28 Jul 2018 19:02:54 +0000</pubDate>
				<category><![CDATA[SharePoint 2016]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[AutoSPInstaller]]></category>
		<category><![CDATA[AutoSPSourceBuilder]]></category>
		<category><![CDATA[Deployment]]></category>
		<guid isPermaLink="false">http://blogit.create.pt/miguelisidoro/?p=1484</guid>

					<description><![CDATA[<p>This post is the first part of a two part step by step tutorial on how to install SharePoint 2016 in a fully automated way using PowerShell. To read the second part, click here. Introduction Before installing a SharePoint 2016 farm, it is important to be familiar with its requirements. To learn more about SharePoint 2016 [&#8230;]</p>
<p>The post <a href="https://blogit.create.pt/miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-1/">How to install a SharePoint 2016 farm using PowerShell and AutoSPInstaller Step by Step (Part 1)</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>This post is the first part of a two part step by step tutorial on how to install SharePoint 2016 in a fully automated way using PowerShell.</p>
<p>To read the second part, click <a href="https://blogit.create.pt////miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-2/" target="_blank" rel="noreferrer noopener" aria-label="To read the first part, click here. (opens in a new tab)">here</a>.</p>
<h1>Introduction</h1>
<p>Before installing a SharePoint 2016 farm, it is important to be familiar with its requirements. To learn more about SharePoint 2016 hardware and software requirements, click <a href="https://docs.microsoft.com/en-us/sharepoint/install/hardware-and-software-requirements" target="_blank" rel="noreferrer noopener" aria-label=" (opens in a new tab)">here</a>.</p>
<p>Installing a SharePoint farm can be a complex task and the installation process is composed by a series of steps:</p>
<ul>
<li>Downloading and installing SharePoint prerequisites</li>
<li>Downloading and installing the SharePoint binaries</li>
<li>Downloading and installing the lastest SharePoint updates</li>
<li>Downloading and installing the required language packs (optional, necessary if you want the SharePoint interface to be presented in a language other than English)</li>
<li>Configuring the SharePoint farm using SharePoint Products and Configuration Wizard</li>
</ul>
<p>All the above steps are time consuming and can be error prone if, for example, you miss to download any of the prerequisites.</p>
<p>Fortunately, it is possible to fully automate a SharePoint farm installation using PowerShell by using a script called <a href="https://autospinstaller.com/" target="_blank" rel="noopener noreferrer">AutoSPInstaller</a>. The installation process can be divided in two major steps:</p>
<ul>
<li>Downloading the SharePoint installation package</li>
<li>Installing SharePoint and configuring the SharePoint farm</li>
</ul>
<p>This process can be used for the following versions of SharePoint:</p>
<ul>
<li>SharePoint 2010</li>
<li>SharePoint 2013</li>
<li>SharePoint 2016</li>
<li>SharePoint 2019 (to learn more about all the new features in SharePoint 2019, click <a href="https://blogit.create.pt////miguelisidoro/2018/11/01/meet-the-new-modern-sharepoint-server-sharepoint-2019-rtm-is-here/" target="_blank" rel="noopener noreferrer">here)</a></li>
</ul>
<p>In this post, I will talk about the first part of the process: downloading the SharePoint installation package and I will use SharePoint 2016 as an example.</p>
<h1>Downloading the SharePoint installation package</h1>
<p>The download process will be managed by a script called <a href="https://github.com/brianlala/AutoSPSourceBuilder" target="_blank" rel="noopener noreferrer">AutoSPSourceBuilder</a> that will download the SharePoint installation package and all its dependencies and will create a folder structure ready to be used in <a href="https://autospinstaller.com/" target="_blank" rel="noopener noreferrer">AutoSPInstaller</a>. The <a href="https://github.com/brianlala/AutoSPSourceBuilder" target="_blank" rel="noopener noreferrer">AutoSPSourceBuilder</a> script will download:</p>
<ul>
<li>All SharePoint prerequisites</li>
<li>The latest SharePoint updates</li>
<li>If specified. the desired language pack</li>
</ul>
<p>To download the SharePoint 2016 installation package, follow the steps below:</p>
<ol>
<li>Download <a href="https://www.microsoft.com/en-us/download/details.aspx?id=51493" target="_blank" rel="noopener noreferrer">SharePoint 2016</a>.</li>
</ol>
<p><img decoding="async" class="alignnone wp-image-1604 size-full" src="https://blogit.create.pt////wp-content/uploads/2018/07/SharePoint2016_Download.jpg" alt="" width="993" height="265" srcset="https://blogit.create.pt/wp-content/uploads/2018/07/SharePoint2016_Download.jpg 993w, https://blogit.create.pt/wp-content/uploads/2018/07/SharePoint2016_Download-300x80.jpg 300w, https://blogit.create.pt/wp-content/uploads/2018/07/SharePoint2016_Download-768x205.jpg 768w, https://blogit.create.pt/wp-content/uploads/2018/07/SharePoint2016_Download-696x186.jpg 696w" sizes="(max-width: 993px) 100vw, 993px" /></p>
<p>2. Download <a href="https://github.com/brianlala/AutoSPSourceBuilder" target="_blank" rel="noopener noreferrer">AutoSPSourceBuilder</a>. After download, the folder should contain the following structure.</p>
<p><img decoding="async" class="alignnone size-full wp-image-1694" src="https://blogit.create.pt////wp-content/uploads/2018/07/AutoSPSourceBuilder_Files.jpg" alt="" width="811" height="200" srcset="https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_Files.jpg 811w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_Files-300x74.jpg 300w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_Files-768x189.jpg 768w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_Files-696x172.jpg 696w" sizes="(max-width: 811px) 100vw, 811px" /></p>
<p>3. Mount the .iso image of SharePoint 2016.</p>
<p><img decoding="async" class="alignnone size-full wp-image-6395" src="https://blogit.create.pt////wp-content/uploads/2018/07/SharePoint2016_Mount.jpg" alt="" width="443" height="141" srcset="https://blogit.create.pt/wp-content/uploads/2018/07/SharePoint2016_Mount.jpg 443w, https://blogit.create.pt/wp-content/uploads/2018/07/SharePoint2016_Mount-300x95.jpg 300w" sizes="(max-width: 443px) 100vw, 443px" /></p>
<p>After mount, the mounted drive will have SharePoint installation files.</p>
<p><img decoding="async" class="alignnone size-full wp-image-1954" src="https://blogit.create.pt////wp-content/uploads/2018/07/SharePoint2016_Files-2.jpg" alt="" width="768" height="810" srcset="https://blogit.create.pt/wp-content/uploads/2018/07/SharePoint2016_Files-2.jpg 768w, https://blogit.create.pt/wp-content/uploads/2018/07/SharePoint2016_Files-2-284x300.jpg 284w, https://blogit.create.pt/wp-content/uploads/2018/07/SharePoint2016_Files-2-696x734.jpg 696w, https://blogit.create.pt/wp-content/uploads/2018/07/SharePoint2016_Files-2-398x420.jpg 398w" sizes="(max-width: 768px) 100vw, 768px" /></p>
<p>4. Run the following script in a PowerShell window (run as administrator).</p>
<p><strong>.\AutoSPSourceBuilder.ps1 -GetPrerequisites $true -SharePointVersion &#8220;2016&#8221; -Languages &#8220;pt-pt&#8221;</strong></p>
<p>This script will download SharePoint 2016 with all prerequisites and the Portuguese language pack. Change the &#8220;Languages&#8221; parameter to the Language Pack you want to include in your installation.</p>
<p>The script will start by detecting the SharePoint image that was previously downloaded. If successfully detected, it will extract the SharePoint installation files from the mounted image to the C:\SP\2016 folder.</p>
<p><img decoding="async" class="alignnone size-full wp-image-6392" src="https://blogit.create.pt////wp-content/uploads/2018/07/AutoSPSourceBuilder_PowerShell.jpg" alt="" width="766" height="289" srcset="https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_PowerShell.jpg 766w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_PowerShell-300x113.jpg 300w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_PowerShell-696x263.jpg 696w" sizes="(max-width: 766px) 100vw, 766px" /></p>
<p>5. Once the SharePoint installation files extraction is completed, you will be asked to select the SharePoint update that you want to include on your installation package. Select the latest available package (all SharePoint 2016 updates are cumulative and include all updates contained in the previous updates).</p>
<p><img decoding="async" class="alignnone size-full wp-image-6393" src="https://blogit.create.pt////wp-content/uploads/2018/07/AutoSPSourceBuilder_SelectVersion.jpg" alt="" width="1427" height="745" srcset="https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_SelectVersion.jpg 1427w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_SelectVersion-300x157.jpg 300w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_SelectVersion-768x401.jpg 768w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_SelectVersion-1024x535.jpg 1024w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_SelectVersion-696x363.jpg 696w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_SelectVersion-1068x558.jpg 1068w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_SelectVersion-804x420.jpg 804w" sizes="(max-width: 1427px) 100vw, 1427px" /></p>
<p>6. After selecting the SharePoint update, the script will resume and start downloading the SharePoint prerequisites. the selected language pack and the selected SharePoint update.</p>
<p><img decoding="async" class="alignnone size-full wp-image-1634" src="https://blogit.create.pt////wp-content/uploads/2018/07/AutoSPSourceBuilder_DownloadSPreRequisites.jpg" alt="" width="767" height="726" srcset="https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_DownloadSPreRequisites.jpg 767w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_DownloadSPreRequisites-300x284.jpg 300w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_DownloadSPreRequisites-696x659.jpg 696w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_DownloadSPreRequisites-444x420.jpg 444w" sizes="(max-width: 767px) 100vw, 767px" /></p>
<p>7. After completion, the PowerShell window should look like the image below.</p>
<p><img decoding="async" class="alignnone size-full wp-image-1644" src="https://blogit.create.pt////wp-content/uploads/2018/07/AutoSPSourceBuilder_DownloadSPreRequisites_Finish.jpg" alt="" width="770" height="719" srcset="https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_DownloadSPreRequisites_Finish.jpg 770w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_DownloadSPreRequisites_Finish-300x280.jpg 300w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_DownloadSPreRequisites_Finish-768x717.jpg 768w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_DownloadSPreRequisites_Finish-696x650.jpg 696w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_DownloadSPreRequisites_Finish-450x420.jpg 450w" sizes="(max-width: 770px) 100vw, 770px" /></p>
<p>The end result will be a structure of folders and files that will contain all the necessary files to install SharePoint with <a href="https://autospinstaller.com/">AutoSPInstaller</a>.</p>
<p>Root folder:</p>
<p><img decoding="async" class="alignnone size-full wp-image-6390" src="https://blogit.create.pt////wp-content/uploads/2018/07/AutoSPSourceBuilder_FolderStructure.jpg" alt="" width="264" height="185" srcset="https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_FolderStructure.jpg 264w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_FolderStructure-100x70.jpg 100w" sizes="(max-width: 264px) 100vw, 264px" /></p>
<p>Language Packs folder:</p>
<p><img decoding="async" class="alignnone size-full wp-image-6396" src="https://blogit.create.pt////wp-content/uploads/2018/07/AutoSPSourceBuilder_FolderStructure_LanguagePacks-1.jpg" alt="" width="614" height="113" srcset="https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_FolderStructure_LanguagePacks-1.jpg 614w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_FolderStructure_LanguagePacks-1-300x55.jpg 300w" sizes="(max-width: 614px) 100vw, 614px" /></p>
<p>SharePoint bits folder (slipstreamed installation structure):</p>
<p><img decoding="async" class="alignnone size-full wp-image-1944" src="https://blogit.create.pt////wp-content/uploads/2018/07/AutoSPSourceBuilder_FolderStructure_SP-2.jpg" alt="" width="788" height="818" srcset="https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_FolderStructure_SP-2.jpg 788w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_FolderStructure_SP-2-289x300.jpg 289w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_FolderStructure_SP-2-768x797.jpg 768w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_FolderStructure_SP-2-696x722.jpg 696w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_FolderStructure_SP-2-405x420.jpg 405w" sizes="(max-width: 788px) 100vw, 788px" /></p>
<p>Updates folder:</p>
<p><img decoding="async" class="alignnone size-full wp-image-1574" src="https://blogit.create.pt////wp-content/uploads/2018/07/AutoSPSourceBuilder_FolderStructure_Update.jpg" alt="" width="613" height="142" srcset="https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_FolderStructure_Update.jpg 613w, https://blogit.create.pt/wp-content/uploads/2018/07/AutoSPSourceBuilder_FolderStructure_Update-300x69.jpg 300w" sizes="(max-width: 613px) 100vw, 613px" /></p>
<p>To read the second part of this two part step by step tutorial, click <a href="https://blogit.create.pt////miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-2/" target="_blank" rel="noopener noreferrer">here</a>.</p>
<h1>Related Articles</h1>
<p>To learn why your business should migrate to SharePoint Online and Office 365, click <a href="https://blogit.create.pt////miguelisidoro/2019/07/29/why-your-business-should-migrate-to-sharepoint-online-and-office-365-the-value-offer-part-1/" target="_blank" rel="noreferrer noopener">here</a> and <a href="https://blogit.create.pt////miguelisidoro/2019/07/29/why-your-business-should-migrate-to-sharepoint-online-and-office-365-the-value-offer-part-2/" target="_blank" rel="noreferrer noopener">here</a>.</p>
<p>If you want to convert your tenant&#8217;s root classic site into a modern SharePoint site, click <a href="https://blogit.create.pt////miguelisidoro/2019/08/27/how-to-modernize-your-tenant-root-site-collection-in-office-365-using-invoke-spositeswap/" target="_blank" rel="noreferrer noopener">here</a>.</p>
<p><a href="https://autospinstaller.com/" target="_blank" rel="noopener noreferrer">AutoSPInstaller</a> is also already available for the recently announced new version SharePoint, SharePoint 2019. To learn more about all the new features in SharePoint 2019, click <a href="https://blogit.create.pt////miguelisidoro/2018/11/01/meet-the-new-modern-sharepoint-server-sharepoint-2019-rtm-is-here/" target="_blank" rel="noopener noreferrer">here.</a></p>
<p>If you are a SharePoint administrator or a SharePoint developer who wants to learn more about how to install a SharePoint 2019 farm in an automated way using PowerShell, I invite you to click <a href="https://blogit.create.pt////miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-1/" target="_blank" rel="noopener noreferrer">here</a> and <a href="https://blogit.create.pt////miguelisidoro/2018/12/09/how-to-install-a-sharepoint-2019-farm-using-powershell-and-autospinstaller-part-2/" target="_blank" rel="noopener noreferrer">here</a>.</p>
<p>If you want to learn how to upgrade a SharePoint 2013 farm to SharePoint 2019, click <a href="https://blogit.create.pt////miguelisidoro/2019/03/06/how-to-upgrade-from-sharepoint-2013-to-sharepoint-2019-step-by-step-part-1/" target="_blank" rel="noreferrer noopener">here </a>and <a href="https://blogit.create.pt////miguelisidoro/2019/03/06/how-to-upgrade-from-sharepoint-2013-to-sharepoint-2019-step-by-step-part-2/" target="_blank" rel="noreferrer noopener">here</a>.</p>
<p>If you want to learn all the steps and precautions necessary to successfully keep your SharePoint farm updated and be ready to start your move to the cloud, click <a href="https://blogit.create.pt////miguelisidoro/2019/04/08/how-to-install-sharepoint-cumulative-updates-in-a-sharepoint-farm-step-by-step/" target="_blank" rel="noreferrer noopener">here</a>.</p>
<p>If you learn how to greatly speed up your SharePoint farm update process to ensure your SharePoint farm keeps updated and you stay one step closer to start your move to the cloud, click <a href="https://blogit.create.pt////miguelisidoro/2019/05/02/how-to-speed-up-the-installation-of-sharepoint-cumulative-updates-using-powershell-step-by-step/" target="_blank" rel="noreferrer noopener" aria-label="here (opens in a new tab)">here</a>.</p>
<p>If you want to learn how to upgrade a SharePoint 2010 farm to SharePoint 2016, click <a href="https://blogit.create.pt////miguelisidoro/2019/02/04/sharepoint-upgrade-upgrading-a-sharepoint-2010-farm-to-sharepoint-2016-step-by-step-part-1/" target="_blank" rel="noreferrer noopener">here </a>and <a href="https://blogit.create.pt////miguelisidoro/2019/02/04/sharepoint-upgrade-upgrading-a-sharepoint-2010-farm-to-sharepoint-2016-step-by-step-part-2/" target="_blank" rel="noreferrer noopener">here</a>.</p>
<p>If you are new to SharePoint and Office 365 and want to learn all about it, take a look at these <a href="https://blogit.create.pt////miguelisidoro/2018/10/17/sharepoint-and-office-365-learning-resources/" target="_blank" rel="noreferrer noopener">learning resources</a>.</p>
<p>If you are work in a large organization who is using Office 365 or thinking to move to Office 365 and is considering between a single or multiple Office 365 tenants, I invite you to read <a href="https://blogit.create.pt////miguelisidoro/2019/01/07/pros-and-cons-of-single-tenant-vs-multiple-tenants-in-office-365/" target="_blank" rel="noreferrer noopener">this article</a>.</p>
<p>If you want to know all about the latest SharePoint and Office 365 announcements from SharePoint Conference 2019, click <a href="https://blogit.create.pt////miguelisidoro/2019/06/05/whats-new-for-sharepoint-and-office-365-from-sharepoint-conference-2019-part-1/" target="_blank" rel="noreferrer noopener">here </a>and <a href="https://blogit.create.pt////miguelisidoro/2019/06/05/whats-new-for-sharepoint-and-office-365-from-sharepoint-conference-2019-part-2/" target="_blank" rel="noreferrer noopener">here</a>.</p>
<p>Happy SharePointing!</p>
<p>The post <a href="https://blogit.create.pt/miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-1/">How to install a SharePoint 2016 farm using PowerShell and AutoSPInstaller Step by Step (Part 1)</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blogit.create.pt/miguelisidoro/2018/07/28/how-to-install-a-sharepoint-2016-farm-using-powershell-and-autospinstaller-part-1/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
		<item>
		<title>Activating all Publishing Feature &#8211; Programmatically &#038; Powershell &#8211; SharePoint 2010, 2013, 2016 &#038; Online:</title>
		<link>https://blogit.create.pt/fabiocarvalho/2017/07/28/activating-all-publishing-feature-programmatically-powershell-sharepoint-2010-2013-2016-online/</link>
					<comments>https://blogit.create.pt/fabiocarvalho/2017/07/28/activating-all-publishing-feature-programmatically-powershell-sharepoint-2010-2013-2016-online/#respond</comments>
		
		<dc:creator><![CDATA[Fábio Carvalho]]></dc:creator>
		<pubDate>Fri, 28 Jul 2017 21:50:48 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Office]]></category>
		<category><![CDATA[Microsoft 365]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[C#]]></category>
		<category><![CDATA[Publishing Site]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint 2013]]></category>
		<category><![CDATA[SharePoint 2016]]></category>
		<category><![CDATA[SharePoint Online]]></category>
		<guid isPermaLink="false">http://blogit.create.pt/fabiocarvalho/?p=3774</guid>

					<description><![CDATA[<p>Hi Everyone!!! Today i will talk about Publishing Features!!! During this afternoon I was trying to activate Publishing Features but i wasn&#8217;t having success because Page Library not was created on activation! So there are more than two Publishing Feature that we need have in consideration, it&#8217;s not enough Activate Publishing Infrastructure Feature and Publishing Feature. If [&#8230;]</p>
<p>The post <a href="https://blogit.create.pt/fabiocarvalho/2017/07/28/activating-all-publishing-feature-programmatically-powershell-sharepoint-2010-2013-2016-online/">Activating all Publishing Feature &#8211; Programmatically &#038; Powershell &#8211; SharePoint 2010, 2013, 2016 &#038; Online:</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hi Everyone!!!</p>
<p>Today i will talk about Publishing Features!!! During this afternoon I was trying to activate Publishing Features but i wasn&#8217;t having success because Page Library not was created on activation! So there are more than two Publishing Feature that we need have in consideration, it&#8217;s not enough Activate Publishing Infrastructure Feature and Publishing Feature. If you want activate all Publishing Features you can do it pragmatically or using Powershell script:</p>
<p><span style="color: #800000"><strong>SharePoint Server &#8211; Powershell:</strong></span></p>
<pre class="brush: bash; title: ; notranslate"> 
Disable-SPFeature –identity 'publishingSite' -URL http://server/ -force
Disable-SPFeature –identity 'PublishingResources' -URL http://server/-force
Disable-SPFeature –identity 'Publishing' -URL http://server/ -force
Disable-SPFeature –identity 'PublishingLayouts' -URL http://server/ -force
Disable-SPFeature –identity 'publishingweb' -URL http://server/ -force

Enable-SPFeature –identity 'publishingSite' -URL http://server/ -force
Enable-SPFeature –identity 'PublishingResources' -URL http://server/ -force
Enable-SPFeature –identity 'Publishing' -URL http://server/ -force
Enable-SPFeature –identity 'PublishingLayouts' -URL http://server/ -force
Enable-SPFeature –identity 'publishingweb' -URL http://server/ -force
</pre>
<p><span style="color: #800000"><strong>SharePoint Online &#8211; Powershell:</strong></span></p>
<pre class="brush: bash; title: ; notranslate"> 
Disable-SPOFeature –Identity &quot;F6924D36-2FA8-4f0b-B16D-06B7250180FA&quot; -Scope Site
Disable-SPOFeature –Identity &quot;AEBC918D-B20F-4a11-A1DB-9ED84D79C87E&quot; -Scope Site
Disable-SPOFeature –Identity &quot;22A9EF51-737B-4ff2-9346-694633FE4416&quot; -Scope Web
Disable-SPOFeature –Identity &quot;D3F51BE2-38A8-4e44-BA84-940D35BE1566&quot; -Scope Site
Disable-SPOFeature –Identity &quot;94C94CA6-B32F-4da9-A9E3-1F3D343D7ECB&quot; -Scope Web

Enable-SPOFeature –Identity &quot;F6924D36-2FA8-4f0b-B16D-06B7250180FA&quot; -Scope Site
Enable-SPOFeature –Identity &quot;AEBC918D-B20F-4a11-A1DB-9ED84D79C87E&quot; -Scope Site
Enable-SPOFeature –Identity &quot;22A9EF51-737B-4ff2-9346-694633FE4416&quot; -Scope Web
Enable-SPOFeature –Identity &quot;D3F51BE2-38A8-4e44-BA84-940D35BE1566&quot; -Scope Site
Enable-SPOFeature –Identity &quot;94C94CA6-B32F-4da9-A9E3-1F3D343D7ECB&quot; -Scope Web
</pre>
<p><strong><span style="color: #800000">Also that you can activate Programmatically:</span></strong></p>
<pre class="brush: jscript; title: ; notranslate"> 

        private void ActivatePublishingFeatures(SPWeb web, SPSite site)
        {
            // Publishing Site
            string sharePointPublishingSite = &quot;f6924d36-2fa8-4f0b-b16d-06b7250180fa&quot;;
            Guid sharePointPublishingSiteGuid = new Guid(sharePointPublishingSite);

            if (site.Features&#x5B;sharePointPublishingSiteGuid] == null)
            {
                site.Features.Add(sharePointPublishingSiteGuid, true);
            }

            // Publishing Resources
            string sharePointPublishingResources = &quot;aebc918d-b20f-4a11-a1db-9ed84d79c87e&quot;;
            Guid sharePointPublishingResourcesGuid = new Guid(sharePointPublishingResources);

            if (site.Features&#x5B;sharePointPublishingResourcesGuid] == null)
            {
                site.Features.Add(sharePointPublishingResourcesGuid, true);
            }

            // Publishing
            string sharePointPublishing = &quot;22a9ef51-737b-4ff2-9346-694633fe4416&quot;;
            Guid sharePointPublishingGuid = new Guid(sharePointPublishing);

            if (web.Features&#x5B;sharePointPublishingGuid] == null)
            {
                web.Features.Add(sharePointPublishingGuid, true);
            }

            // Publishing Layouts
            string sharePointPublishingLayouts = &quot;d3f51be2-38a8-4e44-ba84-940d35be1566&quot;;
            Guid sharePointPublishingLayoutsGuid = new Guid(sharePointPublishingLayouts);

            if (site.Features&#x5B;sharePointPublishingLayoutsGuid] == null)
            {
                site.Features.Add(sharePointPublishingLayoutsGuid, true);
            }

            // Publishing Web
            string sharePointServerPublishingWeb = &quot;94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb&quot;;
            Guid sharePointServerPublishingWebGuid = new Guid(sharePointServerPublishingWeb);

            if (web.Features&#x5B;sharePointServerPublishingWebGuid] == null)
            {
                web.Features.Add(sharePointServerPublishingWebGuid, true);
            }
        }
</pre>
<p>Thanks</p>
<p><span style="color: #800000"><a href="https://www.linkedin.com/in/fmrgc/"><strong>Fábio Carvalho</strong></a></span><br />
SharePoint Consultant<br />
<strong>|create|</strong><span style="color: #ff0000"><strong>it</strong></span><strong>|</strong></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>The post <a href="https://blogit.create.pt/fabiocarvalho/2017/07/28/activating-all-publishing-feature-programmatically-powershell-sharepoint-2010-2013-2016-online/">Activating all Publishing Feature &#8211; Programmatically &#038; Powershell &#8211; SharePoint 2010, 2013, 2016 &#038; Online:</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blogit.create.pt/fabiocarvalho/2017/07/28/activating-all-publishing-feature-programmatically-powershell-sharepoint-2010-2013-2016-online/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>SharePoint &#8211; Get all alerts from a specific SP List/Library using Powershell</title>
		<link>https://blogit.create.pt/fabiocarvalho/2017/03/25/sharepoint-get-all-alerts-from-a-specific-sp-listlibrary-using-powershell/</link>
					<comments>https://blogit.create.pt/fabiocarvalho/2017/03/25/sharepoint-get-all-alerts-from-a-specific-sp-listlibrary-using-powershell/#comments</comments>
		
		<dc:creator><![CDATA[Fábio Carvalho]]></dc:creator>
		<pubDate>Sat, 25 Mar 2017 10:52:54 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint 2013]]></category>
		<category><![CDATA[SharePoint 2016]]></category>
		<guid isPermaLink="false">http://blogit.create.pt/fabiocarvalho/?p=3011</guid>

					<description><![CDATA[<p>Hey Everyone!!! Today i will talk about List and Library Alerts and how can you get all Active alerts for a specific list using powershell script and how can you disable all alerts. This is very useful script, when you need move a large list of items on a maintenance routine and you don&#8217;t want [&#8230;]</p>
<p>The post <a href="https://blogit.create.pt/fabiocarvalho/2017/03/25/sharepoint-get-all-alerts-from-a-specific-sp-listlibrary-using-powershell/">SharePoint &#8211; Get all alerts from a specific SP List/Library using Powershell</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hey Everyone!!!</p>
<p>Today i will talk about <strong>List and Library Alerts</strong> and how can you get all Active alerts for a specific list using powershell script and how can you disable all alerts.</p>
<p>This is very <strong>useful script</strong>, when you need move a <strong>large list</strong> <strong>of items</strong> on a maintenance routine and <strong>you don&#8217;t want send a large number of emails/ notifications</strong> for users who subscribe alerts, this script help you <strong>disable and enable</strong> them.</p>
<p>This first PowerShell Script get all SharePoint list alerts with state <strong>active</strong>.</p>
<pre class="brush: bash; title: ; notranslate"> 

Add-PSSnapin Microsoft.SharePoint.PowerShell –ErrorAction SilentlyContinue

#Variables
$WebURL = &quot;http://YourWebUrl&quot;
$ListName=&quot;YourListName&quot;

#Function to Get All Active Alerts on a Given List
Function Get-ListAlerts($WebURL, $ListName)
{
  #Get the Web and List objects
  $Web = Get-SPWeb $WebURL
  $List = $web.Lists.TryGetList($ListName)

  #Get All Alerts created in the list - Which are Active
  $ListAlerts = $Web.Alerts | Where-Object {($_.List.Title -eq $List.Title) -and ($_.Status -eq &quot;ON&quot;)}

  foreach($Alert in $ListAlerts)
  {
          write-host &quot;Alert' - $($Alert.Title)' Created for User - '$($Alert.User.Name)'&quot;
  }

 #Dispose web object
 $Web.Dispose()
}

#Call the function Appropriately to Disable or Enable Alerts 
Disable-ListAlerts $WebURL $ListName

 </pre>
<p>&nbsp;</p>
<p>If you want <strong>disable</strong> all alerts on this specific list you just need run the following script.</p>
<pre class="brush: bash; title: ; notranslate"> 

Add-PSSnapin Microsoft.SharePoint.PowerShell –ErrorAction SilentlyContinue

#Variables
$WebURL = &quot;http://YourWebUrl&quot;
$ListName=&quot;YourListName&quot;

#Function to Disable All Active Alerts on a Given List
Function Disable-ListAlerts($WebURL, $ListName)
{
  #Get the Web and List objects
  $Web = Get-SPWeb $WebURL
  $List = $web.Lists.TryGetList($ListName)

  #Get All Alerts created in the list - Which are Active
  $ListAlerts = $Web.Alerts | Where-Object {($_.List.Title -eq $List.Title) -and ($_.Status -eq &quot;ON&quot;)}

  Write-host &quot;Total Number of Active Alerts Found in the list: $($ListAlerts.Count)&quot; 
 
  #Iterate through each alert and turn it OFF
  foreach($Alert in $ListAlerts)
  {
     $Alert.Status=&quot;OFF&quot;
     $Alert.Update()
     write-host &quot;Disabled the Alert' $($Alert.Title)' Created for User '$($Alert.User.Name)'&quot;
  }
 
 #Dispose web object
 $Web.Dispose()
}

#Call the function Appropriately to Disable or Enable Alerts 
Disable-ListAlerts $WebURL $ListName

</pre>
<p>&nbsp;</p>
<p>Thanks</p>
<p><span style="color: #000000"><a style="color: #000000" href="https://www.linkedin.com/in/fmrgc/"><strong>Fábio Carvalho</strong></a></span><br />
SharePoint Consultant<br />
<strong>|create|</strong><span style="color: #ff0000"><strong>it</strong></span><strong>|</strong></p>
<p>The post <a href="https://blogit.create.pt/fabiocarvalho/2017/03/25/sharepoint-get-all-alerts-from-a-specific-sp-listlibrary-using-powershell/">SharePoint &#8211; Get all alerts from a specific SP List/Library using Powershell</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blogit.create.pt/fabiocarvalho/2017/03/25/sharepoint-get-all-alerts-from-a-specific-sp-listlibrary-using-powershell/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>SharePoint 2016 &#8211; Create Service Accounts using PowerShell script</title>
		<link>https://blogit.create.pt/fabiocarvalho/2017/02/20/sharepoint-2016-create-service-accounts-using-powershell-script/</link>
					<comments>https://blogit.create.pt/fabiocarvalho/2017/02/20/sharepoint-2016-create-service-accounts-using-powershell-script/#comments</comments>
		
		<dc:creator><![CDATA[Fábio Carvalho]]></dc:creator>
		<pubDate>Mon, 20 Feb 2017 23:46:01 +0000</pubDate>
				<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[Service Accounts]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint 2013]]></category>
		<category><![CDATA[SharePoint 2016]]></category>
		<guid isPermaLink="false">http://blogit.create.pt/fabiocarvalho/?p=2381</guid>

					<description><![CDATA[<p>Hey Everyone!!! Today i will show you how can you create SharePoint 2016 Service Accounts using PowerShell script following the Best Practices. The script not only create all the accounts but also create the respectives OU (Organizational Unit): SharePoint Accounts SQL Accounts Service Accounts:  Name  Description  Local Rights  Domain Rights SP_Farm The server farm account is used [&#8230;]</p>
<p>The post <a href="https://blogit.create.pt/fabiocarvalho/2017/02/20/sharepoint-2016-create-service-accounts-using-powershell-script/">SharePoint 2016 &#8211; Create Service Accounts using PowerShell script</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hey Everyone!!!</p>
<p>Today i will show you how can you create <strong>SharePoint 2016 Service Accounts</strong> using <strong>PowerShell</strong> script following the <strong>Best Practices</strong>.</p>
<p>The script not only create all the accounts but also create the respectives <strong>OU</strong> (<strong>Organizational Unit</strong>):</p>
<ul>
<li>SharePoint Accounts</li>
<li>SQL Accounts</li>
</ul>
<p><strong><span style="color: #800000">Service Accounts:</span></strong></p>
<table border="0" width="400" cellspacing="0" cellpadding="2">
<tbody>
<tr>
<td valign="top" width="100"><strong><span style="color: #800000"> Name</span></strong></td>
<td valign="top" width="100"><strong><span style="color: #800000"> Description</span></strong></td>
<td valign="top" width="100"><strong><span style="color: #800000"> Local Rights</span></strong></td>
<td valign="top" width="100"><strong><span style="color: #800000"> Domain Rights</span></strong></td>
</tr>
<tr>
<td valign="top" width="100"><strong>SP_Farm</strong></td>
<td valign="top" width="100">The server farm account is used to perform the following tasks:<br />
-Configure and manage the server farm.<br />
-Act as the application pool identity for the SharePoint Central Administration Web site.<br />
-Run the Microsoft SharePoint Foundation Workflow Timer Service.</td>
<td valign="top" width="100">SecurityAdmin and DB_Creator rights on the SQL Instance</td>
<td valign="top" width="100">Domain User</td>
</tr>
<tr>
<td valign="top" width="100"><strong>SP_Admin</strong></td>
<td valign="top" width="100">The server farm account is used to perform the following tasks:<br />
-Setup<br />
-SharePoint Products Configuration Wizard</td>
<td valign="top" width="100">Local Administrator on all the SharePoint Servers. SecurityAdmin and DB_Creator rights on the SQL Instance</td>
<td valign="top" width="100">Domain User</td>
</tr>
<tr>
<td valign="top" width="100"><strong>SP_Pool</strong></td>
<td valign="top" width="100">The Pool account is used to run the Web Application Pools</td>
<td valign="top" width="100">None</td>
<td valign="top" width="100">Domain User</td>
</tr>
<tr>
<td valign="top" width="100"><strong>SP_Services</strong></td>
<td valign="top" width="100">The Services Account is used to run the Service Application Pool</td>
<td valign="top" width="100">None</td>
<td valign="top" width="100">Domain User</td>
</tr>
<tr>
<td valign="top" width="100"><strong>SP_Crawl</strong></td>
<td valign="top" width="100">The Default Content Access Account for the Search Service Application</td>
<td valign="top" width="100">None</td>
<td valign="top" width="100">Domain User</td>
</tr>
<tr>
<td valign="top" width="100"><strong>SP_Search</strong></td>
<td valign="top" width="100">Service Account to run the SharePoint Search “Windows Service”</td>
<td valign="top" width="100">None</td>
<td valign="top" width="100">Domain User</td>
</tr>
<tr>
<td valign="top" width="100"><strong>SP_UserProfiles</strong></td>
<td valign="top" width="100">The User Profile Synchronization Account</td>
<td valign="top" width="100">None</td>
<td valign="top" width="100">Domain User</td>
</tr>
<tr>
<td valign="top" width="100"><strong>SP_MySitePool</strong></td>
<td valign="top" width="100">Used for the My Sites Web Application</td>
<td valign="top" width="100">None</td>
<td valign="top" width="100">Domain User</td>
</tr>
<tr>
<td valign="top" width="100"><strong>SP_CacheSuperUser</strong></td>
<td valign="top" width="100">Object Cache Service Account. The goals of the object cache are to reduce the load on the computer on which SQL Server is running, and to improve request latency and throughput. These user account must be properly configured to ensure that the object cache works correctly.</td>
<td valign="top" width="100">None.<br />
SharePoint: Must be an account that has Full Control access to the Web application.</td>
<td valign="top" width="100">Domain User</td>
</tr>
<tr>
<td valign="top" width="100"><strong>SP_CacheSuperReader</strong></td>
<td valign="top" width="100">Object Cache Service Account. The goals of the object cache are to reduce the load on the computer on which SQL Server is running, and to improve request latency and throughput. These user account must be properly configured to ensure that the object cache works correctly.</td>
<td valign="top" width="100">None.<br />
SharePoint: Must be an account that has Full Read access to the Web application</td>
<td valign="top" width="100">Domain User</td>
</tr>
<tr>
<td valign="top" width="100"><strong>WF_Service</strong></td>
<td valign="top" width="100">WorkFlow Manager Service Account</td>
<td valign="top" width="100">Local Administrator and SysAdmin rights on the SQL instance.</td>
<td valign="top" width="100">Domain User</td>
</tr>
<tr>
<td valign="top" width="100"><strong>SP_MySitePool</strong></td>
<td valign="top" width="100">Used for the My Sites Web Application</td>
<td valign="top" width="100">None</td>
<td valign="top" width="100">Domain User</td>
</tr>
<tr>
<td valign="top" width="100"><strong>SP_VisioUser</strong></td>
<td valign="top" width="100">Visio Unattended ID</td>
<td valign="top" width="100">None</td>
<td valign="top" width="100">Domain User</td>
</tr>
<tr>
<td valign="top" width="100"><strong>SP_ExcelUser</strong></td>
<td valign="top" width="100">Excel Unattended ID</td>
<td valign="top" width="100">None</td>
<td valign="top" width="100">Domain User</td>
</tr>
<tr>
<td valign="top" width="100"><strong>SP_PerfPointUser</strong></td>
<td valign="top" width="100">Performance Point Unattended ID</td>
<td valign="top" width="100">None</td>
<td valign="top" width="100">Domain User</td>
</tr>
<tr>
<td valign="top" width="100"><strong>SQL_Admin</strong></td>
<td valign="top" width="100">SQL Admin on the SQL Server. Used to Install the SQL Server.</td>
<td valign="top" width="100">Local Administrator on the SQL Server</td>
<td valign="top" width="100">Domain User</td>
</tr>
<tr>
<td valign="top" width="100"><strong>SQL_Services</strong></td>
<td valign="top" width="100">It is the service account for the following SQL Server services: MSSQLSERVER SQLSERVERAGENT</td>
<td valign="top" width="100">None</td>
<td valign="top" width="100">Domain User</td>
</tr>
</tbody>
</table>
<p><strong><span style="color: #800000"><br />
Script:</span></strong></p>
<pre class="brush: bash; title: ; notranslate"> 

$mydom = (get-addomain).distinguishedname 
$password = &quot;pass@word1&quot; | ConvertTo-SecureString -AsPlainText -Force 

$ouNameSP = &quot;SharePoint Accounts&quot;
$oudnSP = &quot;OU=$ounameSP,$mydom&quot; 

$ouNameSQL = &quot;SQL Accounts&quot; 
$oudnSQL = &quot;OU=$ounameSQL,$mydom&quot; 

#----------------------------&gt; Organizational Unit &lt;---------------------------- 

New-ADOrganizationalUnit -Name $OUNameSP -Path $mydom 
Write-Host &quot;OU $OUNameSP Created&quot; -foregroundcolor green 

New-ADOrganizationalUnit -Name $OUNameSQL -Path $mydom 
Write-Host &quot;OU $OUNameSQL Created&quot; -foregroundcolor green 

#-----------------------------&gt; SharePoint 2016 &lt;-------------------------------

$usersArraySP = @(&quot;SP_Farm&quot;,&quot;SP_Admin&quot;,&quot;SP_Pool&quot;,&quot;SP_Services&quot;,&quot;SP_Crawl&quot;,&quot;SP_Search&quot;,
                  &quot;SP_UserProfiles&quot;,&quot;SP_PortalSuperReader&quot;,&quot;SP_CacheSuperUser&quot;,&quot;SP_VisioUser&quot;,
                  &quot;SP_PerfPointUser&quot;,&quot;WF_Service&quot;,&quot;SP_MySitePool&quot;,&quot;SP_PortalSuperUser&quot;)

foreach ($usp in $usersArraySP) {
        New-ADUser -Name $usp -DisplayName $usp -SamAccountName $usp -AccountPassword $password 
        -ChangePasswordAtLogon $false -PassThru -PasswordNeverExpires $true -Path $oudnSP 
        Write-Host &quot;$usp Created&quot; -foregroundcolor green
 }

#----------------------------------&gt; SQL &lt;--------------------------------------
$usersArraySQL = @(&quot;SQL_Admin&quot;,&quot;SQL_Service&quot;)

foreach ($usql in $usersArraySQL) {
       New-ADUser -Name $usql -DisplayName $usql -SamAccountName $usql -AccountPassword $password 
       -ChangePasswordAtLogon $false -PassThru -PasswordNeverExpires $true -Path $oudnSQL
       Write-Host &quot;$usql Created&quot; -foregroundcolor green
 }

</pre>
<p><img decoding="async" class="size-full wp-image-2521 aligncenter" src="http://blogit.create.pt/fabiocarvalho/wp-content/uploads/sites/271/2017/02/SharePoint-Services-Accounts-2016.png" alt="" width="629" height="372" srcset="https://blogit.create.pt/wp-content/uploads/2017/02/SharePoint-Services-Accounts-2016.png 629w, https://blogit.create.pt/wp-content/uploads/2017/02/SharePoint-Services-Accounts-2016-300x177.png 300w" sizes="(max-width: 629px) 100vw, 629px" /></p>
<p><img decoding="async" class="wp-image-2531 aligncenter" src="http://blogit.create.pt/fabiocarvalho/wp-content/uploads/sites/271/2017/02/SQL-Services-Accounts.png" alt="" width="485" height="222" srcset="https://blogit.create.pt/wp-content/uploads/2017/02/SQL-Services-Accounts.png 612w, https://blogit.create.pt/wp-content/uploads/2017/02/SQL-Services-Accounts-300x137.png 300w" sizes="(max-width: 485px) 100vw, 485px" /></p>
<p>&nbsp;</p>
<p>Thanks</p>
<p><strong>Fábio Carvalho</strong><br />
SharePoint Consultant<br />
<strong>|create|</strong><span style="color: #ff0000"><strong>it</strong></span><strong>|</strong></p>
<p>The post <a href="https://blogit.create.pt/fabiocarvalho/2017/02/20/sharepoint-2016-create-service-accounts-using-powershell-script/">SharePoint 2016 &#8211; Create Service Accounts using PowerShell script</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blogit.create.pt/fabiocarvalho/2017/02/20/sharepoint-2016-create-service-accounts-using-powershell-script/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
		<item>
		<title>SharePoint &#8211; Export all solutions wsp using PowerShell script</title>
		<link>https://blogit.create.pt/fabiocarvalho/2017/02/16/sharepoint-export-all-solutions-wsp-using-powershell-script/</link>
					<comments>https://blogit.create.pt/fabiocarvalho/2017/02/16/sharepoint-export-all-solutions-wsp-using-powershell-script/#comments</comments>
		
		<dc:creator><![CDATA[Fábio Carvalho]]></dc:creator>
		<pubDate>Thu, 16 Feb 2017 02:52:53 +0000</pubDate>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Migration]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Administration]]></category>
		<category><![CDATA[SharePoint 2010]]></category>
		<category><![CDATA[SharePoint 2013]]></category>
		<category><![CDATA[SharePoint 2016]]></category>
		<category><![CDATA[Solutions]]></category>
		<guid isPermaLink="false">http://blogit.create.pt/fabiocarvalho/?p=2631</guid>

					<description><![CDATA[<p>Hey Everyone, Today i will post a script very helpful when you are on Migration steps and you need export all wsp solutions. $dirName = &#34;C:\WSP&#34; if (!(Test-Path -path $dirName)) { New-Item $dirName -type directory } Write-Host Exporting solutions to $dirName foreach ($solution in Get-SPSolution) { $id = $Solution.SolutionID $title = $Solution.Name $filename = $Solution.SolutionFile.Name [&#8230;]</p>
<p>The post <a href="https://blogit.create.pt/fabiocarvalho/2017/02/16/sharepoint-export-all-solutions-wsp-using-powershell-script/">SharePoint &#8211; Export all solutions wsp using PowerShell script</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Hey Everyone,</p>
<p>Today i will post a script very helpful when you are on Migration steps and you need export all wsp solutions.</p>
<pre class="brush: bash; title: ; notranslate"> 

$dirName = &quot;C:\WSP&quot;
if (!(Test-Path -path $dirName))
{
New-Item $dirName -type directory
}
Write-Host Exporting solutions to $dirName
foreach ($solution in Get-SPSolution)
{
    $id = $Solution.SolutionID
    $title = $Solution.Name
    $filename = $Solution.SolutionFile.Name
    Write-Host &quot;Exporting ‘$title’ to …\$filename&quot; -nonewline
    try {
        $solution.SolutionFile.SaveAs(&quot;$dirName\$filename&quot;)
        Write-Host &quot; – done&quot; -foreground green
    }
    catch
    {
        Write-Host &quot; – error : $_&quot; -foreground red
    }
}

</pre>
<p>Thanks</p>
<p><strong>Fábio Carvalho</strong><br />
SharePoint Consultant<br />
<strong>|create|</strong><span style="color: #ff0000"><strong>it</strong></span><strong>|</strong></p>
<p>The post <a href="https://blogit.create.pt/fabiocarvalho/2017/02/16/sharepoint-export-all-solutions-wsp-using-powershell-script/">SharePoint &#8211; Export all solutions wsp using PowerShell script</a> appeared first on <a href="https://blogit.create.pt">Blog IT</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blogit.create.pt/fabiocarvalho/2017/02/16/sharepoint-export-all-solutions-wsp-using-powershell-script/feed/</wfw:commentRss>
			<slash:comments>11</slash:comments>
		
		
			</item>
	</channel>
</rss>
