<?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>GrinGod [dot] Com &#187; Powershell</title>
	<atom:link href="http://www.gringod.com/tag/powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.gringod.com</link>
	<description>Randomised nonsense.</description>
	<lastBuildDate>Tue, 10 Feb 2015 23:15:47 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>Update SharePoint List ContentType Names</title>
		<link>http://www.gringod.com/2011/10/06/update-sharepoint-list-contenttype-names/</link>
		<comments>http://www.gringod.com/2011/10/06/update-sharepoint-list-contenttype-names/#comments</comments>
		<pubDate>Thu, 06 Oct 2011 11:52:42 +0000</pubDate>
		<dc:creator><![CDATA[gringod]]></dc:creator>
				<category><![CDATA[.NET]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[sharepoint]]></category>

		<guid isPermaLink="false">http://www.gringod.com/?p=841</guid>
		<description><![CDATA[I know it&#8217;s been a while since I last posted but this is going to be short and sweet. &#160;I&#8217;ve just been working on a SharePoint 2010 site where I&#8217;ve need to change the names of site content types and have the changes pushed down to a list that already uses the content types. The [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>I know it&#8217;s been a while since I last posted but this is going to be short and sweet. &nbsp;I&#8217;ve just been working on a SharePoint 2010 site where I&#8217;ve need to change the names of site content types and have the changes pushed down to a list that already uses the content types.</p>
<p>The content types are deployed using a solution but that&#8217;s where the automation ends. &nbsp;However, this is where Powershell steps up to the mark. &nbsp;With Powershell we can quickly automate just about anything in SharePoint.</p>
<p>Here&#8217;s the script I can up with:</p>
<pre class="brush: powershell">
$web = Get-SPWeb http://www.example.com
$list = $web.Lists["TargetList"]
$list.ContentTypes | ForEach {
    $_.Name = $_.Parent.Name
    $_.Update()
}</pre>
 <img src="http://www.gringod.com/?feed-stats-post-id=841" width="1" height="1" style="display: none;" />]]></content:encoded>
			<wfw:commentRss>http://www.gringod.com/2011/10/06/update-sharepoint-list-contenttype-names/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
