<?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>Sitecore Xperiences &#187; Powershell</title>
	<atom:link href="https://blog.peplau.com.br/tag/powershell/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.peplau.com.br</link>
	<description>The things I&#039;ve seen as a Sitecore Professional</description>
	<lastBuildDate>Sun, 09 Mar 2025 21:54:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.41</generator>
	<item>
		<title>Automatic check-up of Sitecore Server Roles with Powershell</title>
		<link>https://blog.peplau.com.br/automatic-check-up-of-sitecore-server-roles-with-powershell/</link>
		<comments>https://blog.peplau.com.br/automatic-check-up-of-sitecore-server-roles-with-powershell/#comments</comments>
		<pubDate>Fri, 23 Sep 2016 21:53:11 +0000</pubDate>
		<dc:creator><![CDATA[Rodrigo Peplau]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Automation]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[Server Roles]]></category>

		<guid isPermaLink="false">http://blog.peplau.com.br/?p=479</guid>
		<description><![CDATA[<div class="lr_horizontal_share" data-share-url="https://blog.peplau.com.br/automatic-check-up-of-sitecore-server-roles-with-powershell/"></div>This week I had a boring demand of checking up a Sitecore installation against the Excel spreadsheet provided by Sitecore, to make sure all configs are enabled or disabled according to the Server Role. You can get cockeyed by doing this manually, so of course I looked for a way to automatize it. Ended up discovering [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>This week I had a boring demand of checking up a Sitecore installation against the <a href="https://doc.sitecore.net//~/media/901A89FDE2D24DC5BD72BDF839275291.ashx?la=en" target="_blank">Excel spreadsheet provided by Sitecore</a>, to make sure all configs are enabled or disabled according to the <a href="https://doc.sitecore.net/sitecore_experience_platform/setting_up__maintaining/xdb/configuring_servers/configuring_servers" target="_blank">Server Role</a>.</p>
<p>You can get cockeyed by doing this manually, so of course I looked for a way to automatize it. Ended up discovering <a href="https://gist.github.com/michaellwest/d1124a459cb1fb47486f87d488ecfab8" target="_blank">this simple powershell script</a> written by <a href="https://twitter.com/MichaelWest101" target="_blank">Michael West</a>. The only issue with this script is it does touches the files while checking, something I&#8217;d never dare doing in production.</p>
<p>I have modified his script so that, instead of touching the files, it takes notes of files that are different than specified by Sitecore&#8217;s spreadsheet so one can compare it manually afterwards. Resulting script can be seen <a href="https://gist.github.com/peplau/6d1588821675c2dda15c18fabbd94eb8" target="_blank">at this link</a>.</p>
<h2>Multiple roles</h2>
<p>But what if you wish to have the same Sitecore installation handling multiple roles? According to <a href="https://twitter.com/mhwelander" target="_blank">Martina Welander</a>, the general recommendation for mixed roles is that, <em>if something must be enabled anywhere, that config must be enabled</em>. Well, while this is not a rule we can trust 100%, still the script is not changing anything and thus it won&#8217;t hurt if it does this check.</p>
<blockquote><p>You can check for multiple roles by adding them separated by commas (Eg: CM, RPT)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>https://blog.peplau.com.br/automatic-check-up-of-sitecore-server-roles-with-powershell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
