<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Peter Munch&#039;s Blog</title>
	<atom:link href="http://blog.petermunch.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.petermunch.net</link>
	<description></description>
	<lastBuildDate>Wed, 09 May 2012 09:11:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.petermunch.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Peter Munch&#039;s Blog</title>
		<link>http://blog.petermunch.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.petermunch.net/osd.xml" title="Peter Munch&#039;s Blog" />
	<atom:link rel='hub' href='http://blog.petermunch.net/?pushpress=hub'/>
		<item>
		<title>Links for 70-573 training</title>
		<link>http://blog.petermunch.net/2011/02/12/links-til-70-573-undervisning/</link>
		<comments>http://blog.petermunch.net/2011/02/12/links-til-70-573-undervisning/#comments</comments>
		<pubDate>Sat, 12 Feb 2011 09:16:58 +0000</pubDate>
		<dc:creator>Peter Munch Nielsen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://qwertconsulting.wordpress.com/?p=171</guid>
		<description><![CDATA[Now and then I do training with the subject SharePoint 2010 development – and very often I talk about links for blog posts, tools, etc.. I find interesting. This is the collection, which of course will be extended whenever I find more interesting links. Creating a virtual machine How to convert a WIM image using [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=171&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Now and then I do training with the subject SharePoint 2010 development – and very often I talk about links for blog posts, tools, etc.. I find interesting. This is the collection, which of course will be extended whenever I find more interesting links.</p>
<h3>Creating a virtual machine</h3>
<ul>
<li><a href="http://www.windowsreference.com/windows-server-2008/how-to-convert-a-wim-image-to-a-vhd-image-using-wim2vhd/" target="_blank">How to convert a WIM image using WIM2VHD</a> </li>
<li><a href="http://archive.msdn.microsoft.com/wim2vhd" target="_blank">Windows(R) Image to Virtual Hard Disk (WIM2VHD) Converter</a> </li>
<li><a href="http://www.windowsvalley.com/create-a-bootable-windows-7-vhd-virtual-hard-disk/" target="_blank">Create a bootable Windows 7 virtual hard disk (the BDCEDIT part rocks)</a> </li>
</ul>
<h3>Tools and extensions</h3>
<ul>
<li><a href="http://visualstudiogallery.msdn.microsoft.com/ee876627-962c-4c35-a4a6-a4d89bfb61dc/" target="_blank">CKS:Dev – fantastic add-in for Visual Studio 2010, implementing new project-types, new SPI’s and deployment stuff. It is also available from Visual Studios Extension Manager</a> </li>
<li><a href="http://www.powergui.org" target="_blank">PowerGUI – the PowerShell script editor you should use</a> </li>
<li><a href="http://notepad-plus-plus.org/" target="_blank">NotePad++ – for opening the XML files in the 14-hive faster than with Visual Studio</a> </li>
<li><a href="http://spm.codeplex.com" target="_blank">SharePoint Manager 2010 – object model explorer for your SharePoint installation. Click and browse through your site collections and webs and get among others the web’s properties without doing custom code.</a> </li>
<li><a href="http://code.msdn.microsoft.com/SPDisposeCheck" target="_blank">SPDisposeChecker – Check if you disposed your objects properly</a>&#160; </li>
<li><a href="http://www.red-gate.com/products/dotnet-development/reflector/" target="_blank">Reflector</a> </li>
<li><a href="http://code.msdn.microsoft.com/ULSViewer" target="_blank">ULS Viewer &#8211; see the logs from the 14-hive in a more convenient format than text-files</a> </li>
<li><a href="http://www.wictorwilen.se/Post/SharePoint-2010-Developer-Dashboard-configuration-feature.aspx" target="_blank">Developer Dashboard Configuration Feature by Wictor Wilen – control the developer dashboard from the central administration rather than from code or Powershell</a> </li>
<li><a href="http://sharepoint-eventhandlers-manager.googlecode.com/files/sharepoint-eventhandlers-manager-2010-1.0.zip" target="_blank">BrickRed Event Handler Explorer &#8211; lets you see what event handlers are registererd &#8211; and regster your own</a> </li>
</ul>
<h3></h3>
<h3>Certification specific blog-posts</h3>
<ul>
<li><a href="http://weshackett.com/2010/08/mcts-sharepoint-2010-application-development-70-573-study-guide/" target="_blank">Wes Hackett’s list of articles and posts that helped him survive the 70-573 test</a> </li>
<li><a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-573#tab2" target="_blank">The official MS overview of the certification</a> </li>
</ul>
<h2></h2>
<h3>Optimizing your code</h3>
<ul>
<li><a href="http://www.zimmergren.net/archive/2011/01/31/sp-2010-developing-for-performance-part-5-disposal-patterns-and-tools.aspx" target="_blank">Disposal patterns and Tools</a> </li>
<li><a title="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spdiagnosticsservicebase.aspx#Y76" href="http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.administration.spdiagnosticsservicebase.aspx#Y76">Creating your own ULS log class</a> </li>
</ul>
<h3>Fields, Content Types, Lists &amp; Content Types – blog posts</h3>
<ul>
<li><a href="http://codeshape.wordpress.com/2010/11/05/provisioning-additional-view-fields-when-provisioning-lookup-fields-in-code/" target="_blank">Create a lookup field and a dependent lookup field from code in i.e. a feature receiver</a> </li>
<li><a href="http://msdn.microsoft.com/en-us/library/ff623048.aspx" target="_blank">MSDN – lookups and relationships</a> </li>
<li><a href="http://www.wictorwilen.se/Post/How-to-provision-SharePoint-2010-Managed-Metadata-columns.aspx" target="_blank">Provisioning a content type with a Managed metadata field through a feature and a feature receiver by Wictor Wilen</a> </li>
<li><a href="http://www.toddbaginski.com/blog/archive/2009/11/02/how-to-create-a-custom-site-definition-in-sharepoint-2010.aspx.aspx" target="_blank">HOW TO: Create a custom site definition in SharePoint 2010</a> </li>
<li><a href="http://msdn.microsoft.com/en-us/library/bb861799.aspx" target="_blank">Walkthrough: Creating a custom Field Type</a></li>
</ul>
<h3>Web Parts</h3>
<ul>
<li><a href="http://www.wictorwilen.se/Post/SharePoint-Web-Part-Event-Flow-in-detail.aspx" target="_blank">SharePoint Web Part Event Flow in Detail – brilliant overview of the flow from page through web part manager to the web part it-self.</a> </li>
<li><a href="http://msdn.microsoft.com/en-us/library/ms469765.aspx" target="_blank">Walkthrough: Creating connectable web parts in SharePoint Foundation</a> </li>
</ul>
<h3>Client Object Model</h3>
<ul>
<li><a href="http://msdn.microsoft.com/en-us/library/ff798328.aspx" target="_blank">Enabling intellisense in JavaScript</a> </li>
</ul>
<h3>Search</h3>
<p><a href="http://pontodepartilha.blogspot.com/2008/09/dates-and-fulltextsqlquery.html" target="_blank">Dates and the FullTextSqlQuery</a></p>
<h3>Enterprise Content Management</h3>
<ul>
<li><a href="http://www.zimmergren.net/archive/2010/04/13/sp-2010-sharepoint-server-2010-creating-your-custom-document-id-provider.aspx" target="_blank">Create your own Document ID Provider – a no-nonsense practical walk-through by Tobias Zimmergren</a> </li>
</ul>
<h3>Application Lifecycle Management</h3>
<ul>
<li><a href="http://www.screencast.com/users/jthake/folders/SharePointDevWiki.com%20Screencast/media/f5b11481-14fb-4c46-a71e-7c6c97b455b7" target="_blank">Versioning features in SharePoint 2010 Screencast by Jeremy Thake</a> </li>
<li><a href="http://blog.petermunch.net/2010/04/30/versioning-and-upgrading-your-features-with-sharepoint-2010-application-lifecycle-management/" target="_blank">Versioning and upgrading your features with SharePoint 2010 Application Lifecycle Management (ALM)</a> </li>
</ul>
<h3>Administrative API</h3>
<ul>
<li><a href="http://www.andrewconnell.com/blog/articles/CreatingCustomSharePointTimerJobs.aspx" target="_blank">Creating custom timer jobs in SharePoint 2010</a> </li>
</ul>
<h3>Videos and screencasts</h3>
<ul>
<li><a href="http://channel9.msdn.com/learn/courses/SharePoint2010Developer" target="_blank">Channel 9 has a complete series of SharePoint 2010 developer videos with dealing with the most important stuff</a> </li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qwertconsulting.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qwertconsulting.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qwertconsulting.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qwertconsulting.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qwertconsulting.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qwertconsulting.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qwertconsulting.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qwertconsulting.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qwertconsulting.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qwertconsulting.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qwertconsulting.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qwertconsulting.wordpress.com/171/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qwertconsulting.wordpress.com/171/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qwertconsulting.wordpress.com/171/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=171&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.petermunch.net/2011/02/12/links-til-70-573-undervisning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adf71939c254b8318fac5d87b172d6a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Peter Munch Nielsen</media:title>
		</media:content>
	</item>
		<item>
		<title>The best error description</title>
		<link>http://blog.petermunch.net/2010/09/08/the-best-error-description/</link>
		<comments>http://blog.petermunch.net/2010/09/08/the-best-error-description/#comments</comments>
		<pubDate>Wed, 08 Sep 2010 16:14:40 +0000</pubDate>
		<dc:creator>Peter Munch Nielsen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://qwertconsulting.wordpress.com/2010/09/08/the-best-error-description-in-life/</guid>
		<description><![CDATA[Just got this beautiful baby of an error message from a FullTextSqlQuery in my Sharepoint 2010 development computer– awesome and very helpful errorJ  <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=153&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just got this beautiful baby of an error message from a FullTextSqlQuery in my Sharepoint 2010 development computer– awesome and very helpful error<span style="font-family:Wingdings;">J</span></p>
<p> <a href="http://qwertconsulting.files.wordpress.com/2010/09/error2.png"><img class="alignnone size-medium wp-image-164" title="error" src="http://qwertconsulting.files.wordpress.com/2010/09/error2.png?w=457&h=306" alt="" width="457" height="306" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qwertconsulting.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qwertconsulting.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qwertconsulting.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qwertconsulting.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qwertconsulting.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qwertconsulting.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qwertconsulting.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qwertconsulting.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qwertconsulting.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qwertconsulting.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qwertconsulting.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qwertconsulting.wordpress.com/153/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qwertconsulting.wordpress.com/153/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qwertconsulting.wordpress.com/153/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=153&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.petermunch.net/2010/09/08/the-best-error-description/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adf71939c254b8318fac5d87b172d6a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Peter Munch Nielsen</media:title>
		</media:content>

		<media:content url="http://qwertconsulting.files.wordpress.com/2010/09/error2.png?w=300" medium="image">
			<media:title type="html">error</media:title>
		</media:content>
	</item>
		<item>
		<title>Why can&#8217;t I get a Document ID&#8230;.??</title>
		<link>http://blog.petermunch.net/2010/09/06/why-cant-i-get-a-document-id/</link>
		<comments>http://blog.petermunch.net/2010/09/06/why-cant-i-get-a-document-id/#comments</comments>
		<pubDate>Mon, 06 Sep 2010 06:28:56 +0000</pubDate>
		<dc:creator>Peter Munch Nielsen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://qwertconsulting.wordpress.com/2010/09/06/why-cant-i-get-a-document-id/</guid>
		<description><![CDATA[Got a scenario with SharePoint 2010, where I needed an Enterprise Wiki for an intranet-site and then as sub-sites for this a bunch of team-sites. One of the requests was to get the Document ID up and running, so my attempt was to go to site collection features and activate the Document ID Service feature….that [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=151&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Got a scenario with SharePoint 2010, where I needed an Enterprise Wiki for an intranet-site and then as sub-sites for this a bunch of team-sites. One of the requests was to get the Document ID up and running, so my attempt was to go to site collection features and activate the Document ID Service feature….that should do….at least that was what I thought.</p>
<p>However, I found after playing a couple of hours on my dev-machine, it seems that if you need both document ID’s and the publishing feature, you have to activate the document ID feature before the publishing feature. In this case I had nearly no custizations made to the Pages-library apart from a couple of web parts added to the default-page.</p>
<p>After deactivating the site collection publishing feature (and destroying my pages-library), activating the document ID service feature, they both were working.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qwertconsulting.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qwertconsulting.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qwertconsulting.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qwertconsulting.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qwertconsulting.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qwertconsulting.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qwertconsulting.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qwertconsulting.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qwertconsulting.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qwertconsulting.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qwertconsulting.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qwertconsulting.wordpress.com/151/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qwertconsulting.wordpress.com/151/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qwertconsulting.wordpress.com/151/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=151&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.petermunch.net/2010/09/06/why-cant-i-get-a-document-id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adf71939c254b8318fac5d87b172d6a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Peter Munch Nielsen</media:title>
		</media:content>
	</item>
		<item>
		<title>Versioning and upgrading your features with SharePoint 2010 Application Lifecycle Management (ALM)</title>
		<link>http://blog.petermunch.net/2010/04/30/versioning-and-upgrading-your-features-with-sharepoint-2010-application-lifecycle-management/</link>
		<comments>http://blog.petermunch.net/2010/04/30/versioning-and-upgrading-your-features-with-sharepoint-2010-application-lifecycle-management/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 10:38:10 +0000</pubDate>
		<dc:creator>Peter Munch Nielsen</dc:creator>
				<category><![CDATA[Sharepoint 2010 development]]></category>
		<category><![CDATA[ALM]]></category>
		<category><![CDATA[FeatureUpgrading]]></category>
		<category><![CDATA[SP2010]]></category>

		<guid isPermaLink="false">http://qwertconsulting.wordpress.com/?p=124</guid>
		<description><![CDATA[One of the nice features of SharePoint 2010 is the possibility you actually have to version your features and update your features in a more sensible way than the previous version did. In SharePoint 2007 the feature had a version property, which basically allowed developers to keep track of the versions themselves – SharePoint did [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=124&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of the nice features of SharePoint 2010 is the possibility you actually have to version your features and update your features in a more sensible way than the previous version did. In SharePoint 2007 the feature had a version property, which basically allowed developers to keep track of the versions themselves – SharePoint did in other words never use the property for anything.</p>
<p>Times have changed – in SharePoint 2010 the application Lifecycle Management actually allows you to upgrade your features which in the simplest form lets you change the name of previous uploaded files, add an additional element-file or the thing I have seen cause the most WAUW-effect during the Ignite-trainings I have held in Denmark – adding fields to an already deployed content type in your farm. In this walk-through our goal is to accomplish the last scenario – so let&#8217;s start up. I have a newly created team-site with no customizations accomplished on the url <a href="http://intranet">http://intranet</a></p>
<h2>Creating the basic content type feature</h2>
<p>So let&#8217;s start up by creating a basic feature with a content type with a single note-field – just to have something to play around with</p>
<ol>
<li>Open Visual Studio 2010 and create a new Empty SharePoint Project – my project is named TheUpgradeableCT – and the name will be important later, so if you chose another name, some of the walkthrough won&#8217;t be completely copy/paste. Deploy it as a farm solution against <a href="http://intranet">http://intranet</a> or whatever site collection you wish as a debug-site – again – I will use the url later</li>
<li>Right-click the project and add a Content Type Item to the project – name it The Upgradeable Content Type and chose Document as the base content type when the wizard appear and click Finish.</li>
<li>Paste the following into the elements-file created in your content type node – this will create a basic document content type</li>
</ol>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;?<span style="color:#a31515;">xml <span style="color:blue;"><span style="color:red;">version<span style="color:blue;">=</span>&#8220;<span style="color:blue;">1.0</span>&#8221; <span style="color:blue;"><span style="color:red;">encoding<span style="color:blue;">=</span>&#8220;<span style="color:blue;">utf-8</span>&#8220;<span style="color:blue;">?&gt;<br />
</span></span></span></span></span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"> &lt;<span style="color:#a31515;">Elements <span style="color:blue;"><span style="color:red;">xmlns<span style="color:blue;">=</span><span style="color:blue;"><a href="http://schemas.microsoft.com/sharepoint/">http://schemas.microsoft.com/sharepoint/</a></span><span style="color:blue;">&gt;<br />
</span></span></span></span></span></p>
<p style="margin-left:18pt;"><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;!&#8211;<span style="color:green;"> Parent ContentType: Document (0&#215;0101) <span style="color:blue;">&#8211;&gt;<br />
</span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;<span style="color:#a31515;">ContentType <span style="color:blue;"><span style="color:red;">ID<span style="color:blue;">=</span>&#8220;<span style="color:blue;">0x0101009214903b71c048a0ba7a7ec3dff0d9dd</span>&#8220;<br />
</span></span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"><span style="color:red;">Name<span style="color:blue;">=</span>&#8220;<span style="color:blue;">TheUpgradeableCT</span>&#8220;<br />
</span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"><span style="color:red;">Group<span style="color:blue;">=</span>&#8220;<span style="color:blue;">A feature upgrade attempt</span>&#8220;<br />
</span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"><span style="color:red;">Description<span style="color:blue;">=</span>&#8220;<span style="color:blue;">The upgradeable content type</span>&#8220;<br />
</span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"><span style="color:red;">Version<span style="color:blue;">=</span>&#8220;<span style="color:blue;">0</span>&#8220;<span style="color:blue;">&gt;<br />
</span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;<span style="color:#a31515;">FieldRefs<span style="color:blue;">&gt;<br />
</span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;<span style="color:#a31515;">FieldRef <span style="color:blue;"><span style="color:red;">ID<span style="color:blue;">=</span>&#8220;<span style="color:blue;">{67BC24C5-C864-4CE5-9855-B515EEF54773}</span>&#8220;<span style="color:blue;">/&gt;<br />
</span></span></span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;/<span style="color:#a31515;">FieldRefs<span style="color:blue;">&gt;<br />
</span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;/<span style="color:#a31515;">ContentType<span style="color:blue;">&gt;</span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;<span style="color:#a31515;">Field </span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"><span style="color:red;">ID<span style="color:blue;">=</span>&#8220;<span style="color:blue;">{67BC24C5-C864-4CE5-9855-B515EEF54773}</span>&#8220;<br />
</span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"><span style="color:red;">Name<span style="color:blue;">=</span>&#8220;<span style="color:blue;">Note1</span>&#8220;<br />
</span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"><span style="color:red;">StaticName<span style="color:blue;">=</span>&#8220;<span style="color:blue;">Note1</span>&#8220;<br />
</span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"><span style="color:red;">DisplayName<span style="color:blue;">=</span>&#8220;<span style="color:blue;">Note on version 1</span>&#8220;<br />
</span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"><span style="color:red;">Type<span style="color:blue;">=</span>&#8220;<span style="color:blue;">Note</span>&#8220;<br />
</span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"><span style="color:red;">Group<span style="color:blue;">=</span>&#8220;<span style="color:blue;">A feature upgrade attempt</span>&#8220;<span style="color:blue;">/&gt;<br />
</span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;/<span style="color:#a31515;">Elements<span style="color:blue;">&gt;</span><br />
</span></span></p>
<p style="margin-left:36pt;">
<p><span style="font-family:Consolas;font-size:9pt;"><br />
</span></p>
<ol>
<li>
<div>Change the version number of your feature by double clicking the feature node and change the feature version to 1.0.0.0 in the Properties window of your feature</div>
<p><img src="http://qwertconsulting.files.wordpress.com/2010/04/043010_1037_versioninga14.png?w=450" alt="" /></li>
<li>Deploy your solution and check that your content type is deployed successfully – and create a document library and attach the content type to it in the UI.</li>
</ol>
<h2>Make the extra field for the Content Type for version 2.0.0.0</h2>
<p>For version 2.0.0.0 we will add an additional custom field for our content type and make the initial configuration of our feature ready for upgrading to the new verison, so let&#8217;s hit it by adding a new Field Item to our Sharepoint project and package the project to make it ready for the upgrade-celebration:</p>
<ol>
<li>Right-click the project-node of your Visual Studio Project and add an Empty Element called Version2Fields. It contains an element.xml, in which you put the following field, which will be the additional field of our feature in version 2.0.0.0:</li>
</ol>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;?<span style="color:#a31515;">xml <span style="color:blue;"><span style="color:red;">version<span style="color:blue;">=</span>&#8220;<span style="color:blue;">1.0</span>&#8221; <span style="color:blue;"><span style="color:red;">encoding<span style="color:blue;">=</span>&#8220;<span style="color:blue;">utf-8</span>&#8220;<span style="color:blue;">?&gt;<br />
</span></span></span></span></span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;<span style="color:#a31515;">Elements <span style="color:blue;"><span style="color:red;">xmlns<span style="color:blue;">=</span><span style="color:blue;"><a href="http://schemas.microsoft.com/sharepoint/">http://schemas.microsoft.com/sharepoint/</a></span><span style="color:blue;">&gt;<br />
</span></span></span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;<span style="color:#a31515;">Field </span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"><span style="color:red;">ID<span style="color:blue;">=</span>&#8220;<span style="color:blue;">{67BC24C5-C864-4CE5-9855-B515EEF54774}</span>&#8220;<br />
</span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"><span style="color:red;">Name<span style="color:blue;">=</span>&#8220;<span style="color:blue;">Note2</span>&#8220;<br />
</span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"><span style="color:red;">StaticName<span style="color:blue;">=</span>&#8220;<span style="color:blue;">Note2</span>&#8220;<br />
</span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"><span style="color:red;">DisplayName<span style="color:blue;">=</span>&#8220;<span style="color:blue;">Note on version 2</span>&#8220;<br />
</span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"><span style="color:red;">Type<span style="color:blue;">=</span>&#8220;<span style="color:blue;">Note</span>&#8220;<br />
</span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"><span style="color:red;">Group<span style="color:blue;">=</span>&#8220;<span style="color:blue;">A feature upgrade attempt</span>&#8220;<span style="color:blue;">/&gt;<br />
</span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;/<span style="color:#a31515;">Elements<span style="color:blue;">&gt;</span><br />
</span></span></p>
<ol>
<li>Expand your feature node untill the template.xml appears…open it. This is basically your feature without all the properties in it. Place your cursor between the open and close feature tag and add an UpgradeActions element with a corresponding closing element.</li>
<li>In the UpgradeActions place a VersionRange to tell the versions you are upgrading from and to. Give it the properties BeginVersion=&#8221;1.0.0.0&#8243; and EndVersion=&#8221;2.0.0.0&#8243;.</li>
<li>Between the versionrange you can specify what will happen when we are upgrading from version 1 to 2. In our case we will add an additional elementfile, so insert a ApplyElementManifests and put a ElementManifest inside here with a location of your additiona element file</li>
<li>Furthermore we need to add this field to the content type we just made – so add an AddFieldToContentType and give it the id of the content type and the field and specify whether to pushdown the field to all content types inheriting from the specified content type. Your Feature file should look something like this</li>
</ol>
<p><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;?<span style="color:#a31515;">xml <span style="color:blue;"><span style="color:red;">version<span style="color:blue;">=</span>&#8220;<span style="color:blue;">1.0</span>&#8221; <span style="color:blue;"><span style="color:red;">encoding<span style="color:blue;">=</span>&#8220;<span style="color:blue;">utf-8</span>&#8220;<span style="color:blue;"> ?&gt;<br />
</span></span></span></span></span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;<span style="color:#a31515;">Feature <span style="color:blue;"><span style="color:red;">xmlns<span style="color:blue;">=</span><span style="color:blue;"><a href="http://schemas.microsoft.com/sharepoint/">http://schemas.microsoft.com/sharepoint/</a></span><span style="color:blue;">&gt;<br />
</span></span></span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;<span style="color:#a31515;">UpgradeActions<span style="color:blue;">&gt;<br />
</span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;<span style="color:#a31515;">VersionRange <span style="color:blue;"><span style="color:red;">BeginVersion<span style="color:blue;">=</span>&#8220;<span style="color:blue;">1.0.0.0</span>&#8221; <span style="color:blue;"><span style="color:red;">EndVersion<span style="color:blue;">=</span>&#8220;<span style="color:blue;">2.0.0.0</span>&#8220;<span style="color:blue;">&gt;<br />
</span></span></span></span></span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;<span style="color:#a31515;">ApplyElementManifests<span style="color:blue;">&gt;<br />
</span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"> &lt;<span style="color:#a31515;">ElementManifest <span style="color:blue;"><span style="color:red;">Location<span style="color:blue;">=</span>&#8220;<span style="color:blue;">Version2Field/Elements.xml</span>&#8220;<span style="color:blue;">/&gt;<br />
</span></span></span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;/<span style="color:#a31515;">ApplyElementManifests<span style="color:blue;">&gt;<br />
</span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;<span style="color:#a31515;">AddContentTypeField<br />
<span style="color:blue;"><span style="color:red;">ContentTypeId<span style="color:blue;">=</span>&#8220;<span style="color:blue;">0x0101009214903b71c048a0ba7a7ec3dff0d9dd</span>&#8220;<br />
</span></span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"><span style="color:red;">FieldId<span style="color:blue;">=</span>&#8220;<span style="color:blue;">{67BC24C5-C864-4CE5-9855-B515EEF54774}</span>&#8220;<br />
</span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"><span style="color:red;">PushDown<span style="color:blue;">=</span>&#8220;<span style="color:blue;">TRUE</span>&#8220;<span style="color:blue;">/&gt;<br />
</span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;/<span style="color:#a31515;">VersionRange<span style="color:blue;">&gt;<br />
</span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;"> &lt;/<span style="color:#a31515;">UpgradeActions<span style="color:blue;">&gt;<br />
</span></span></span><span style="color:blue;font-family:Consolas;font-size:9pt;">&lt;/<span style="color:#a31515;">Feature<span style="color:blue;">&gt;<br />
</span></span></span></p>
<ol>
<li>Double-click your feature and change the version to version 2.0.0.0</li>
<li>Right click your project and chose Package to package your solution</li>
</ol>
<h2>Upgrade your solution and feature in the farm</h2>
<p>To upgrade your solution in the farm can be done via stsadm, custom code or PowerShell – and since one of the coolest parts of Sharepoint 2010 is Powershell, find your favorite PowerShell Editor (I User<a title="PowerGUI" href="http://powergui.org" target="_blank"> PowerGUI</a>) and fire the following Powershell script with the path to your solution and the name of your solution</p>
<p><span style="color:cadetblue;font-family:Courier New;font-size:10pt;"><strong>Update-SPSolution </strong><span style="color:black;"><span style="color:cadetblue;"><em>-Identity </em><span style="color:black;"><span style="color:maroon;">TheUpgradeableCT.wsp <span style="color:black;"><span style="color:cadetblue;"><em>-LiteralPath </em><span style="color:black;"><span style="color:maroon;">C:\devprojects\TheUpgradeableCT\TheUpgradeableCT\bin\Debug\TheUpgradeableCT.wsp <span style="color:black;"><span style="color:cadetblue;"><em>–GACDeployment<br />
</em></span></span></span></span></span></span></span></span></span></span></span></p>
<p>This alone isn&#8217;t enough to upgrade it – you to call a certain method to upgrade your feature – and this can be done via psconfig or custom code in any way you prefer….and I prefer the code attempt, so fire up a new instance of Visual Studio 2010 and make yourself a Console application (remember to change it to 64 bit build and reference Microsoft.SharePoint.dll):</p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">using</span> System;<br />
</span><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">using</span> System.Collections.Generic;<br />
</span><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">using</span> System.Linq;<br />
</span><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">using</span> System.Text;<br />
</span><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">using</span> Microsoft.SharePoint;<br />
</span></p>
<p><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">namespace</span> UpgradeTheContentType<br />
</span><span style="font-family:Consolas;font-size:9pt;">{<br />
</span><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">class </span><span style="color:#2b91af;">Program</span><br />
</span><span style="font-family:Consolas;font-size:9pt;"> {<br />
</span><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;"> static </span><span style="color:blue;">void</span> Main(<span style="color:blue;">string</span>[] args)<br />
</span><span style="font-family:Consolas;font-size:9pt;"> {<br />
</span><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">using</span> (<span style="color:#2b91af;">SPSite</span> currentSite = <span style="color:blue;">new </span><span style="color:#2b91af;">SPSite</span>(<span style="color:#a31515;">&#8220;http://intranet&#8221;</span>))<br />
</span><span style="font-family:Consolas;font-size:9pt;"> {<br />
</span><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;"> foreach</span> (<span style="color:#2b91af;">SPFeature</span> feature <span style="color:blue;">in</span> currentSite.QueryFeatures(<span style="color:#2b91af;">SPFeatureScope</span>.Web,<span style="color:blue;">true</span>))<br />
</span><span style="font-family:Consolas;font-size:9pt;"> {<br />
</span><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;"> if</span> (feature.Upgrade(<span style="color:blue;">false</span>) != <span style="color:blue;">null</span>)<br />
</span><span style="font-family:Consolas;font-size:9pt;"> {<br />
</span><span style="font-family:Consolas;font-size:9pt;"><span style="color:#2b91af;"> Console</span>.WriteLine(<span style="color:#a31515;">&#8220;Feature &#8220;</span> + feature.DefinitionId.ToString() + <span style="color:#a31515;">&#8221; failed to upgrade!&#8221;</span>);<br />
</span><span style="font-family:Consolas;font-size:9pt;"> }<br />
</span><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;"> else</span><br />
</span><span style="font-family:Consolas;font-size:9pt;"> {<br />
</span><span style="font-family:Consolas;font-size:9pt;"><span style="color:#2b91af;"> Console</span>.WriteLine(<span style="color:#a31515;">&#8220;Feature &#8220;</span> + feature.DefinitionId.ToString() + <span style="color:#a31515;">&#8221; was successfully upgraded!&#8221;</span>);<br />
</span><span style="font-family:Consolas;font-size:9pt;"> }<br />
</span><span style="font-family:Consolas;font-size:9pt;"> }<br />
</span><span style="font-family:Consolas;font-size:9pt;"> }<br />
</span><span style="font-family:Consolas;font-size:9pt;">}<br />
</span><span style="font-family:Consolas;font-size:9pt;">}<br />
</span><span style="font-family:Consolas;font-size:9pt;">}<br />
</span></p>
<p>This bit of code queries every feature at the web scope at <a href="http://intranet">http://intranet</a> for features in need of an update and actually tries to update them</p>
<p><img src="http://qwertconsulting.files.wordpress.com/2010/04/043010_1037_versioninga2.png?w=450" alt="" /></p>
<p>So that&#8217;s all…check your content type and your list instance for the new field – which should be present. In the next post I will make the FeatureUpgrading of the FeatureReceiver a bit clearer. Until then the code is available at my DropBox at  <a href="http://dl.dropbox.com/u/6050844/Blog/UpgradeContentTypes.zip">http://dl.dropbox.com/u/6050844/Blog/UpgradeContentTypes.zip</a></p>
<p>Have fun</p>
<p>Peter</p>
<p style="margin-left:36pt;">
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qwertconsulting.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qwertconsulting.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qwertconsulting.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qwertconsulting.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qwertconsulting.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qwertconsulting.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qwertconsulting.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qwertconsulting.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qwertconsulting.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qwertconsulting.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qwertconsulting.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qwertconsulting.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qwertconsulting.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qwertconsulting.wordpress.com/124/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=124&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.petermunch.net/2010/04/30/versioning-and-upgrading-your-features-with-sharepoint-2010-application-lifecycle-management/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adf71939c254b8318fac5d87b172d6a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Peter Munch Nielsen</media:title>
		</media:content>

		<media:content url="http://qwertconsulting.files.wordpress.com/2010/04/043010_1037_versioninga14.png" medium="image" />

		<media:content url="http://qwertconsulting.files.wordpress.com/2010/04/043010_1037_versioninga2.png" medium="image" />
	</item>
		<item>
		<title>PowerShell and Sharepoint 2010 &#8211; Part 2 : Reading the ULS log</title>
		<link>http://blog.petermunch.net/2010/04/20/mastering-powershell-part-2-reading-the-uls-log/</link>
		<comments>http://blog.petermunch.net/2010/04/20/mastering-powershell-part-2-reading-the-uls-log/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 14:56:10 +0000</pubDate>
		<dc:creator>Peter Munch Nielsen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://qwertconsulting.wordpress.com/2010/04/20/mastering-powershell-part-2-reading-the-uls-log/</guid>
		<description><![CDATA[Some part of problem solving in Sharepoint is done through the ULS logs which by default is placed in the Logs-directory of the RootFolder of your Sharepoint installation. In Sharepoint 2007 you need to manually search the text-files for the terms that might have caused problems for the user and then try to connect the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=117&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Some part of problem solving in Sharepoint is done through the ULS logs which by default is placed in the Logs-directory of the RootFolder of your Sharepoint installation. In Sharepoint 2007 you need to manually search the text-files for the terms that might have caused problems for the user and then try to connect the event log and the uls-logging times and figure out what happened. While this is still the truth in SharePoint 2010 PowerShell has made it increasingly easier to scan the log for whatever error you might have. So grab a PowerShell command prompt and type <strong>Get-SPLogEvent</strong> and watch the complete ULS appear across your screen. This is not very helpful and takes a bit of time, so we need to do some filtering.</p>
<h2>Date and time filtering</h2>
<p>First of all we need to do some date-filtering. If you only want errors from the last five minutes, you can filter by giving the command a start property in a format like the following: <strong>Get-SPLogEvent –StartTime (Get-Date).AddMinutes(-5) </strong>which obviously will take and calculate a start time from current time (which is provided by the get-date method, and the add negative five minutes, which will give the log for the last five minutes. Note that an endtime is available in the exact same way</p>
<h2>Chosing what columns to see</h2>
<p>Still I get no idea, what the error is – only stuff like EventID, The time the error occurred and stuff like that appeared in the above command. This must be available in a more detailed form. And of course it is. By sending the results of the Get-SPLogEvent command into a select statement, you can choose exactly what columns to show. So grab the PowerShell command again and write <strong>Get-SPLogEvent –StartTime (Get-Date).AddMinutes(-5) | select timestamp, message</strong> and you will get the timestamps and messages of all messages from the last 5 minutes. Available columns are:</p>
<ul>
<li>TimeStamp</li>
<li>Continuation</li>
<li>Process</li>
<li>ThreadID</li>
<li>Area</li>
<li>Category</li>
<li>EventID</li>
<li>Level</li>
<li>Message</li>
<li>Correlation</li>
<li>Context</li>
</ul>
<p> </p>
<p>So a select * instead of select message will return every field in a format not very nice <span style="font-family:Wingdings;">J</span></p>
<p>So final thing is to decide what columns you like, grab them and format them in a usefull way. Format-table I excellent for this, and passing the following command is often usefull: <strong>Get-SPLogEvent –StartTime (Get-Date).AddMinutes(-5) | select * | Format-Table –Wrap<br />
</strong></p>
<h2>Filtering on these fields</h2>
<p>A filtering on any of the fields above is available to prevent admins from looking at everything, when they have an idea of where to look. Especially the new correlation id is handy to filter. It is provided on nearly any error message in the user interface and provided again in the log files. If you want to query the logs for a specific error you can do it by providing the <strong>SPLogEvent –StartTime (Get-Date).AddMinutes(-5)| Where-Object {$_.Correlation –eq &#8220;yourFancy CorrelationID&#8221;} | select timestamp, process, level, message, correlation | Format-Table –Wrap</strong></p>
<p>Have fun <span style="font-family:Wingdings;">J</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qwertconsulting.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qwertconsulting.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qwertconsulting.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qwertconsulting.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qwertconsulting.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qwertconsulting.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qwertconsulting.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qwertconsulting.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qwertconsulting.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qwertconsulting.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qwertconsulting.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qwertconsulting.wordpress.com/117/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qwertconsulting.wordpress.com/117/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qwertconsulting.wordpress.com/117/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=117&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.petermunch.net/2010/04/20/mastering-powershell-part-2-reading-the-uls-log/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adf71939c254b8318fac5d87b172d6a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Peter Munch Nielsen</media:title>
		</media:content>
	</item>
		<item>
		<title>Enabling State Service in SharePoint 2010</title>
		<link>http://blog.petermunch.net/2010/03/21/enabling-state-service-in-sharepoint-2010/</link>
		<comments>http://blog.petermunch.net/2010/03/21/enabling-state-service-in-sharepoint-2010/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 07:02:56 +0000</pubDate>
		<dc:creator>Peter Munch Nielsen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://qwertconsulting.wordpress.com/2010/03/21/enabling-state-service-in-sharepoint-2010/</guid>
		<description><![CDATA[State Service in SharePoint is a service that keeps temporary data across http requests in a SQL database, and is required in Sharepoint 2010 if you want to edit your list-form in Infopath 2010. However, it seems very difficult to enable this unless you use the farm configuration wizard, which basically creates a database and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=109&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>State Service in SharePoint is a service that keeps temporary data across http requests in a SQL database, and is required in Sharepoint 2010 if you want to edit your list-form in Infopath 2010. However, it seems very difficult to enable this unless you use the farm configuration wizard, which basically creates a database and an application pool where you have no control of the names. If you want control, you&#8217;re in need of PowerShell – so here is a tiny very un-debugged PowerShell script I use every time I have a clean Sharepoint 2010 install.</p>
<p>In short terms it enables the service, and creates a service application and puts it in the default proxy group:</p>
<p><span style="color:cadetblue;font-family:Courier New;font-size:10pt;"><strong>Write-Host</strong><span style="color:black;"> ******************************************************<span style="color:maroon;">* <span style="color:black;"><span style="color:cadetblue;"><em>-ForegroundColor </em><span style="color:black;"><span style="color:maroon;">Blue<br />
</span></span></span></span></span></span></span><span style="color:cadetblue;font-family:Courier New;font-size:10pt;"><strong>Write-Host </strong><span style="color:black;"><span style="color:maroon;">* <span style="color:black;"><span style="color:maroon;">Session <span style="color:black;"><span style="color:maroon;">State <span style="color:black;"><span style="color:maroon;">Enabler <span style="color:black;"><span style="color:blue;">for <span style="color:black;"><span style="color:maroon;">Sharepoint<span style="color:black;"> 2010 <span style="color:cadetblue;"><em>-ForegroundColor </em><span style="color:black;"><span style="color:maroon;">Blue<br />
</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="color:cadetblue;font-family:Courier New;font-size:10pt;"><strong>Write-Host</strong><span style="color:black;"> ******************************************************<span style="color:maroon;">* <span style="color:black;"><span style="color:cadetblue;"><em>-ForegroundColor </em><span style="color:black;"><span style="color:maroon;">Blue</p>
<p></span></span></span></span></span></span></span></p>
<p><span style="color:green;font-family:Courier New;font-size:10pt;">#Check if the Sharepoint snapin is enabled<br />
</span><span style="color:purple;font-family:Courier New;font-size:10pt;">$spSnapin <span style="color:black;"><span style="color:red;">= <span style="color:black;"><span style="color:cadetblue;"><strong>Get-PSSnapin</strong><span style="color:black;">| <span style="color:cadetblue;"><strong>Where-Object</strong><span style="color:black;">{<span style="color:purple;">$_<span style="color:black;">.name <span style="color:red;">-eq <span style="color:black;"><span style="color:maroon;">&#8216;microsoft.sharepoint.powershell&#8217;<span style="color:black;">}<br />
</span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="color:blue;font-family:Courier New;font-size:10pt;">if<span style="color:black;">(<span style="color:purple;">$spSnapin <span style="color:black;"><span style="color:red;">-eq <span style="color:black;"><span style="color:purple;">$null<span style="color:black;">)<br />
</span></span></span></span></span></span></span></span><span style="color:black;font-family:Courier New;font-size:10pt;">{<br />
</span><span style="color:black;font-family:Courier New;font-size:10pt;">    <span style="color:cadetblue;"><strong>Write-Host </strong><span style="color:black;"><span style="color:maroon;">adding <span style="color:black;"><span style="color:maroon;">Sharepoint <span style="color:black;"><span style="color:maroon;">Snapin <span style="color:black;"><span style="color:cadetblue;"><em>-ForegroundColor </em><span style="color:black;"><span style="color:maroon;">Green<span style="color:black;"><br />
</span></span></span></span></span></span></span></span></span></span></span></span></span><span style="color:black;font-family:Courier New;font-size:10pt;">    <span style="color:cadetblue;"><strong>Add-PSSnapin </strong><span style="color:black;"><span style="color:maroon;">microsoft.sharepoint.powershell<span style="color:black;"><br />
</span></span></span></span></span><span style="color:black;font-family:Courier New;font-size:10pt;">}<br />
</span><span style="color:purple;font-family:Courier New;font-size:10pt;"><br />
$StateServiceApp <span style="color:black;"><span style="color:red;">= <span style="color:black;"><span style="color:cadetblue;"><strong>Get-SPStateServiceApplication<br />
</strong></span></span></span></span></span><span style="color:purple;font-family:Courier New;font-size:10pt;">$stateService <span style="color:black;"><span style="color:red;">= <span style="color:black;"><span style="color:cadetblue;"><strong>Get-SPSessionStateService</strong><span style="color:black;"><br />
</span></span></span></span></span></span><span style="color:blue;font-family:Courier New;font-size:10pt;"><br />
if<span style="color:black;">(<span style="color:purple;">$stateService<span style="color:black;">.SessionStateEnabled <span style="color:red;">-eq <span style="color:black;"><span style="color:purple;">$false<span style="color:black;">)<br />
</span></span></span></span></span></span></span></span><span style="color:black;font-family:Courier New;font-size:10pt;">{<br />
</span><span style="color:black;font-family:Courier New;font-size:10pt;">    <span style="color:cadetblue;"><strong>Write-Host </strong><span style="color:black;"><span style="color:maroon;">Starting <span style="color:black;"><span style="color:maroon;">the <span style="color:black;"><span style="color:maroon;">service <span style="color:black;"><span style="color:cadetblue;"><em>-ForegroundColor </em><span style="color:black;"><span style="color:maroon;">Green<span style="color:black;"><br />
</span></span></span></span></span></span></span></span></span></span></span></span></span><span style="color:black;font-family:Courier New;font-size:10pt;">    <span style="color:purple;">$dbName <span style="color:black;"><span style="color:red;">= <span style="color:black;"><span style="color:cadetblue;"><strong>Read-Host </strong><span style="color:black;"><span style="color:maroon;">&#8220;Enter service database name&#8221;<span style="color:black;"><br />
</span></span></span></span></span></span></span></span></span><span style="color:black;font-family:Courier New;font-size:10pt;">    <span style="color:cadetblue;"><strong>Enable-SPSessionStateService </strong><span style="color:black;"><span style="color:cadetblue;"><em>-DatabaseName </em><span style="color:black;"><span style="color:purple;">$dbName </span></span></span></span></span></span></p>
<p><span style="color:black;font-family:Courier New;font-size:10pt;"> </span></p>
<p><span style="color:black;font-family:Courier New;font-size:10pt;">}<br />
</span></p>
<p><span style="color:blue;font-family:Courier New;font-size:10pt;">if<span style="color:black;">(<span style="color:purple;">$StateServiceApp <span style="color:black;"><span style="color:red;">-eq <span style="color:black;"><span style="color:purple;">$null<span style="color:black;">)<br />
</span></span></span></span></span></span></span></span><span style="color:black;font-family:Courier New;font-size:10pt;">{<br />
</span><span style="color:black;font-family:Courier New;font-size:10pt;">    <span style="color:cadetblue;"><strong>Write-Host </strong><span style="color:black;"><span style="color:maroon;">Session <span style="color:black;"><span style="color:maroon;">State <span style="color:black;"><span style="color:maroon;">disabled <span style="color:black;"><span style="color:maroon;">-<span style="color:black;"><span style="color:maroon;">Starting <span style="color:black;"><span style="color:maroon;">Session <span style="color:black;"><span style="color:maroon;">state <span style="color:black;"><span style="color:cadetblue;"><em>-ForegroundColor </em><span style="color:black;"><span style="color:maroon;">Green<span style="color:black;"><br />
</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="color:black;font-family:Courier New;font-size:10pt;">    <span style="color:purple;">$dbName <span style="color:black;"><span style="color:red;">= <span style="color:black;"><span style="color:cadetblue;"><strong>Read-Host </strong><span style="color:black;"><span style="color:maroon;">&#8220;Enter serviceapplication database name&#8221; <span style="color:black;"><br />
</span></span></span></span></span></span></span></span></span><span style="color:black;font-family:Courier New;font-size:10pt;">    <span style="color:purple;">$StateServiceApp <span style="color:black;"><span style="color:red;">= <span style="color:black;"><span style="color:cadetblue;"><strong>New-SPStateServiceApplication </strong><span style="color:black;"><span style="color:cadetblue;"><em>-Name </em><span style="color:black;"><span style="color:maroon;">&#8220;State Service application&#8221;<span style="color:black;"><br />
</span></span></span></span></span></span></span></span></span></span></span><span style="color:black;font-family:Courier New;font-size:10pt;">    <span style="color:cadetblue;"><strong>New-SPStateServiceDatabase </strong><span style="color:black;"><span style="color:cadetblue;"><em>-Name </em><span style="color:black;"><span style="color:purple;">$dbName <span style="color:black;"><span style="color:cadetblue;"><em>-ServiceApplication </em><span style="color:black;"><span style="color:purple;">$StateServiceApp<span style="color:black;"><br />
</span></span></span></span></span></span></span></span></span></span></span><span style="color:black;font-family:Courier New;font-size:10pt;">    <span style="color:cadetblue;"><strong>New-SPStateServiceApplicationProxy </strong><span style="color:black;"><span style="color:cadetblue;"><em>-Name </em><span style="color:black;"><span style="color:maroon;">&#8220;State Service Proxy&#8221; <span style="color:black;"><span style="color:cadetblue;"><em>-ServiceApplication </em><span style="color:black;"><span style="color:purple;">$StateServiceApp <span style="color:black;"><span style="color:cadetblue;"><em>-DefaultProxyGroup</em><span style="color:black;"><br />
</span></span></span></span></span></span></span></span></span></span></span></span></span></p>
<p><span style="color:black;font-family:Courier New;font-size:10pt;">    </span></p>
<p><span style="color:black;font-family:Courier New;font-size:10pt;"><span style="color:blue;">if<span style="color:black;">(<span style="color:purple;">$SessionState<span style="color:black;">.SessionStateEnabled <span style="color:red;">-eq <span style="color:black;"><span style="color:purple;">$true<span style="color:black;">)<br />
</span></span></span></span></span></span></span></span></span><span style="color:black;font-family:Courier New;font-size:10pt;">    {<br />
</span><span style="color:black;font-family:Courier New;font-size:10pt;">        <span style="color:cadetblue;"><strong>Write-Host </strong><span style="color:black;"><span style="color:maroon;">Session <span style="color:black;"><span style="color:maroon;">State <span style="color:black;"><span style="color:maroon;">Started <span style="color:black;"><span style="color:cadetblue;"><em>-ForegroundColor </em><span style="color:black;"><span style="color:maroon;">Green<span style="color:black;"><br />
</span></span></span></span></span></span></span></span></span></span></span></span></span><span style="color:black;font-family:Courier New;font-size:10pt;">    }<br />
</span><span style="color:black;font-family:Courier New;font-size:10pt;">    <span style="color:blue;">else<br />
</span></span><span style="color:black;font-family:Courier New;font-size:10pt;">    {<br />
</span><span style="color:black;font-family:Courier New;font-size:10pt;">        <span style="color:cadetblue;"><strong>Write-Host </strong><span style="color:black;"><span style="color:maroon;">Session <span style="color:black;"><span style="color:maroon;">State <span style="color:black;"><span style="color:maroon;">did <span style="color:black;"><span style="color:maroon;">not <span style="color:black;"><span style="color:maroon;">start <span style="color:black;"><span style="color:maroon;">successfully <span style="color:black;"><span style="color:cadetblue;"><em>-ForegroundColor </em><span style="color:black;"><span style="color:maroon;">Red<span style="color:black;"><br />
</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="color:black;font-family:Courier New;font-size:10pt;">    }<br />
</span><span style="color:black;font-family:Courier New;font-size:10pt;">}<br />
</span><span style="color:blue;font-family:Courier New;font-size:10pt;">else<span style="color:black;"><br />
</span></span><span style="color:black;font-family:Courier New;font-size:10pt;">{<br />
</span><span style="color:black;font-family:Courier New;font-size:10pt;">    <span style="color:cadetblue;"><strong>Write-Host </strong><span style="color:black;"><span style="color:maroon;">Session <span style="color:black;"><span style="color:maroon;">State <span style="color:black;"><span style="color:maroon;">already <span style="color:black;"><span style="color:maroon;">enabled <span style="color:black;"><span style="color:cadetblue;"><em>-ForegroundColor </em><span style="color:black;"><span style="color:maroon;">Green<span style="color:black;"><br />
</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span><span style="color:black;font-family:Courier New;font-size:10pt;">}</span></p>
<p>Have fun <span style="font-family:Wingdings;">J</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qwertconsulting.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qwertconsulting.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qwertconsulting.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qwertconsulting.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qwertconsulting.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qwertconsulting.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qwertconsulting.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qwertconsulting.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qwertconsulting.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qwertconsulting.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qwertconsulting.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qwertconsulting.wordpress.com/109/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qwertconsulting.wordpress.com/109/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qwertconsulting.wordpress.com/109/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=109&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.petermunch.net/2010/03/21/enabling-state-service-in-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adf71939c254b8318fac5d87b172d6a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Peter Munch Nielsen</media:title>
		</media:content>
	</item>
		<item>
		<title>PowerShell and Sharepoint 2010 – the introduction</title>
		<link>http://blog.petermunch.net/2010/03/06/mastering-powershell-for-sharepoint-2010-%e2%80%93-the-introduction/</link>
		<comments>http://blog.petermunch.net/2010/03/06/mastering-powershell-for-sharepoint-2010-%e2%80%93-the-introduction/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 16:58:08 +0000</pubDate>
		<dc:creator>Peter Munch Nielsen</dc:creator>
				<category><![CDATA[Sharepoint 2010 administration]]></category>
		<category><![CDATA[Sharepoint 2010 development]]></category>

		<guid isPermaLink="false">http://qwertconsulting.wordpress.com/2010/03/06/mastering-powershell-for-sharepoint-2010-%e2%80%93-the-introduction/</guid>
		<description><![CDATA[Powershell is a new addition to SharePoint 2010 – and to spend a few hours becoming familiar with the PowerShell commands will definitely save you a minute or 10 now and then in your daily life with SharePoint 2010. In this first post, we will get in touch with PowerShell and start out with a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=88&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Powershell is a new addition to SharePoint 2010 – and to spend a few hours becoming familiar with the PowerShell commands will definitely save you a minute or 10 now and then in your daily life with SharePoint 2010. In this first post, we will get in touch with PowerShell and start out with a few &#8220;Hello World of PowerShell for Sharepoint&#8221; scripts, and the later – if I hopefully find the time – I wil make a deeper dive into this world. So let&#8217;s hit it – let&#8217;s SharePoint….!!!!</p>
<p>First of all we need a fancy command prompt – to get it click <strong>Start | Run</strong> and in the box type <strong>cmd</strong> and click OK – and BAM – you have a nice command box ready for use. To make it a powershell command type powershell and press enter</p>
<p><img src="http://qwertconsulting.files.wordpress.com/2010/03/030610_1657_masteringpo11.png?w=450" alt="" /></p>
<p>To communicate with the host(i.e making the prompt write information for you) you have to use the command <strong>Write-Host</strong>. So typing <strong>Write-Host Hello World</strong> at the prompt will make it send you a message. Actually you can format it very basically. <strong>–foregroundcolor green</strong> will eg. Make the text green and you also have a backgroundcolor you can play around with. If ever in doubt what parameters a certain powershell-command takes write <strong>get-help </strong>and the name of the help function will help you.</p>
<p><img src="http://qwertconsulting.files.wordpress.com/2010/03/030610_1657_masteringpo21.png?w=450" alt="" /></p>
<p>This is very basically what you needs of information of PowerShell to get rolling with PowerShell for SharePoint 2010 &#8211; so let&#8217;s hit it and get some information regarding SharePoint in the box. To get to that point we need some extra information regarding Powershell – and that is that the functionality you can use is depending on what snap-ins you have loaded. A snap-in is no more than a bunch of functionality in one package – and we need to load the ones for SharePoint – to do that type <strong>Add-PSSnapin Microsoft.SharePoint.PowerShell</strong> at the command prompt.    </p>
<p>To get a list of commands available type <strong>Get-command</strong> and nearly everything which includes an SP will be sharepoint-related. However, this is quite a few –so to get a document with all of them, type <strong>get-command –pssnapin Microsoft.sharepoint.powershell &gt; c:\commands.txt</strong> and a nice notepad-doc will be created for you at the c-drive including all of the commands available.</p>
<p>A lot of gets and sets are present – so try to write Get-SPWebApplication at the prompt – and notice that a list of Web Applications with DicplayName and Urls from the farm will appear. Nice And easy <span style="font-family:Wingdings;">J</span></p>
<p>Basically there are two important kind of PowerShell commands for SharePoint – the ones starting with GET-SP – which gets you something and NEW-SP which creates something. If you want to create a new WebApplication this can be done with the New-SPWebApplication command – so try to type <strong>Get-Help New-SPWebApplication</strong> at the command prompt to see what is needed for a new Web Application – the following is returned</p>
<p><img src="http://qwertconsulting.files.wordpress.com/2010/03/030610_1657_masteringpo3.png?w=450" alt="" /></p>
<p>So typing <strong>New-SPWebApplication –name &#8220;Qwert Intranet&#8221; –ApplicationPool &#8220;Qwert Intranet&#8221; –ApplicationPoolAccount q\administrator –DatabaseName SharePoint_Qwert_Content_Intranet –HostHeader Intranet.qwert.dk –port 80 –url http://intranet.qwert.dk </strong></p>
<p>After thinking a while – your web application is created – confirm by writing Get-SPWebApplication at the command prompt and your new web application will appear.</p>
<p>Deleting the web application is providing by Remove-SPWebApplication – try typing get-help Remove-SPWebApplication to read more about the properties – the command below deletes your web application – note that you have to confirm the action.</p>
<p><img src="http://qwertconsulting.files.wordpress.com/2010/03/030610_1657_masteringpo4.png?w=450" alt="" /></p>
<p>A final Get-SPWebApplication will confirm the deletion.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qwertconsulting.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qwertconsulting.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qwertconsulting.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qwertconsulting.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qwertconsulting.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qwertconsulting.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qwertconsulting.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qwertconsulting.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qwertconsulting.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qwertconsulting.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qwertconsulting.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qwertconsulting.wordpress.com/88/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qwertconsulting.wordpress.com/88/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qwertconsulting.wordpress.com/88/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=88&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.petermunch.net/2010/03/06/mastering-powershell-for-sharepoint-2010-%e2%80%93-the-introduction/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adf71939c254b8318fac5d87b172d6a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Peter Munch Nielsen</media:title>
		</media:content>

		<media:content url="http://qwertconsulting.files.wordpress.com/2010/03/030610_1657_masteringpo11.png" medium="image" />

		<media:content url="http://qwertconsulting.files.wordpress.com/2010/03/030610_1657_masteringpo21.png" medium="image" />

		<media:content url="http://qwertconsulting.files.wordpress.com/2010/03/030610_1657_masteringpo3.png" medium="image" />

		<media:content url="http://qwertconsulting.files.wordpress.com/2010/03/030610_1657_masteringpo4.png" medium="image" />
	</item>
		<item>
		<title>Figuring out how to make a site definition with the new Wiki-frontpage</title>
		<link>http://blog.petermunch.net/2009/12/23/figuring-out-how-to-make-a-site-definition-with-the-new-wiki-frontpage/</link>
		<comments>http://blog.petermunch.net/2009/12/23/figuring-out-how-to-make-a-site-definition-with-the-new-wiki-frontpage/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 16:29:02 +0000</pubDate>
		<dc:creator>Peter Munch Nielsen</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://qwertconsulting.wordpress.com/2009/12/23/figuring-out-how-to-make-a-site-definition-with-the-new-wiki-frontpage/</guid>
		<description><![CDATA[The new Wikii-frontpage of the Sharepoint foundation Team sites is a very user friendly feature since you will have the best possibilities of creating custom content in your pages without having to using the good old Content Editor Web Part from WSS 3.0. It is situated in a library called SitePages. As a siteAdmin you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=70&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The new Wikii-frontpage of the Sharepoint foundation Team sites is a very user friendly feature since you will have the best possibilities of creating custom content in your pages without having to using the good old Content Editor Web Part from WSS 3.0. It is situated in a library called SitePages.
</p>
<p><img src="http://qwertconsulting.files.wordpress.com/2009/12/122309_1628_figuringout1.png?w=450">
	</p>
<p>As a siteAdmin you can enable this in site features by activating the Wiki Page Home Page feature on every site needed…..but how the heck is it done from a site definition?
</p>
<p>Reverse engineering is the way ahead….and the standard team site has the function enabled, so a good place to start searching is in 14\template\sitetemplates\sts\xml where the ONET.XML for the team site, blank site and document workspace resides.
</p>
<p>Configuration 0 is the teamsite, and at a first glance there are no lists called SitePages and no modules ghosts a page called home.aspx. Looking a bit better the following lines might do the trick:
</p>
<p><span style="color:blue;font-family:Courier New;font-size:10pt;">&lt;<span style="color:#a31515;">WebFeatures<span style="color:blue;">&gt;<br />
</span></span></span></p>
<p><span style="color:blue;font-family:Courier New;font-size:10pt;">&lt;!&#8211;<span style="color:green;"> WikiPageHomePage Feature <span style="color:blue;">&#8211;&gt;<br />
</span></span></span></p>
<p><span style="color:blue;font-family:Courier New;font-size:10pt;">&lt;<span style="color:#a31515;">Feature<span style="color:blue;"><br />
					<span style="color:red;">ID<span style="color:blue;">=</span>&#8220;<span style="color:blue;">00BFEA71-D8FE-4FEC-8DAD-01C19A6E4053</span>&#8220;<span style="color:blue;"> /&gt;<br />
</span></span></span></span></span></p>
<p><span style="color:blue;font-family:Courier New;font-size:10pt;">&lt;/<span style="color:#a31515;">WebFeatures<span style="color:blue;">&gt;<br />
</span></span></span></p>
<p>…so basically it is a webfeature and adding this line in your WebFeatures of your site definition will make a sitepages library for your sitepages and a default page called home.aspx. It will also create a library called Assets for e.g. pictures.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qwertconsulting.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qwertconsulting.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qwertconsulting.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qwertconsulting.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qwertconsulting.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qwertconsulting.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qwertconsulting.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qwertconsulting.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qwertconsulting.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qwertconsulting.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qwertconsulting.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qwertconsulting.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qwertconsulting.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qwertconsulting.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=70&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.petermunch.net/2009/12/23/figuring-out-how-to-make-a-site-definition-with-the-new-wiki-frontpage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adf71939c254b8318fac5d87b172d6a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Peter Munch Nielsen</media:title>
		</media:content>

		<media:content url="http://qwertconsulting.files.wordpress.com/2009/12/122309_1628_figuringout1.png" medium="image" />
	</item>
		<item>
		<title>Enabling the Developer Dashboard in Sharepoint 2010</title>
		<link>http://blog.petermunch.net/2009/12/23/enabling-the-developer-dashboard-in-sharepoint-2010/</link>
		<comments>http://blog.petermunch.net/2009/12/23/enabling-the-developer-dashboard-in-sharepoint-2010/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 15:13:05 +0000</pubDate>
		<dc:creator>Peter Munch Nielsen</dc:creator>
				<category><![CDATA[Sharepoint 2010 development]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://qwertconsulting.wordpress.com/?p=62</guid>
		<description><![CDATA[Introducing the Developer Dashboard in Sharepoint 2010, developers will get the tool they were looking for: A dashboard saying how long time the custom code took to execute, what queries were ran at the sql server and a lot of other fun stuff…..only problem…..it pro&#8217;s and end users doesn&#8217;t care about it, and therefore it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=62&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p style="text-align:left;">Introducing the Developer Dashboard in Sharepoint 2010, developers will get the tool they were looking for: A dashboard saying how long time the custom code took to execute, what queries were ran at the sql server and a lot of other fun stuff…..only problem…..it pro&#8217;s and end users doesn&#8217;t care about it, and therefore it is disabled by default – and there is no button the enable and disable it.</p>
<p style="text-align:left;">How is it done then…..there are three options, stsadm, PowerShell or custom code. In this blog-post we will be dealing with the code-option</p>
<p style="text-align:left;"><strong>The code-attempt</strong></p>
<p style="text-align:left;">Open Visual Studio 2010, create a new Console Applicaton and make sure the .Net Framework 3.5 is chosen in the top…..SHarepoint has no idea of what .Net Framework 4.0 is.</p>
<p style="text-align:left;"><img src="http://qwertconsulting.files.wordpress.com/2009/12/122309_1513_enablingthe1.png?w=450" alt="" /></p>
<p style="text-align:left;">Change the build setting of the project from x86 to any CPU in the project properties and save them.</p>
<p style="text-align:left;"><img src="http://qwertconsulting.files.wordpress.com/2009/12/122309_1513_enablingthe2.png?w=450" alt="" /></p>
<p style="text-align:left;">Include the namespace of sharepoint administration by pasting the following just beneath the other using-statements:</p>
<p style="text-align:left;"><span style="font-family:Consolas;font-size:9pt;"><span style="color:blue;">using</span> Microsoft.SharePoint.Administration;<br />
</span></p>
<p style="text-align:left;">And finally paste the following lines of code in your Program.cs files in static void main</p>
<p style="text-align:left;"><span style="font-family:Consolas;font-size:9pt;"><span style="color:#2b91af;">SPWebService</span> contentService = <span style="color:#2b91af;">SPWebService</span>.ContentService;<br />
</span></p>
<p style="text-align:left;"><span style="font-family:Consolas;font-size:9pt;">contentService.DeveloperDashboardSettings.DisplayLevel = <span style="color:#2b91af;">SPDeveloperDashboardLevel</span>.On;<br />
</span></p>
<p style="text-align:left;"><span style="font-family:Consolas;font-size:9pt;">contentService.DeveloperDashboardSettings.Update();<br />
</span></p>
<p style="text-align:left;">This will enable the developer dashboard for the entire farm – and it will look something like this:</p>
<p style="text-align:left;"><img src="http://qwertconsulting.files.wordpress.com/2009/12/122309_1513_enablingthe3.png?w=450" alt="" /></p>
<p style="text-align:left;">Have fun <span style="font-family:Wingdings;">J</span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qwertconsulting.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qwertconsulting.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qwertconsulting.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qwertconsulting.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qwertconsulting.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qwertconsulting.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qwertconsulting.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qwertconsulting.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qwertconsulting.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qwertconsulting.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qwertconsulting.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qwertconsulting.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qwertconsulting.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qwertconsulting.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=62&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.petermunch.net/2009/12/23/enabling-the-developer-dashboard-in-sharepoint-2010/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adf71939c254b8318fac5d87b172d6a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Peter Munch Nielsen</media:title>
		</media:content>

		<media:content url="http://qwertconsulting.files.wordpress.com/2009/12/122309_1513_enablingthe1.png" medium="image" />

		<media:content url="http://qwertconsulting.files.wordpress.com/2009/12/122309_1513_enablingthe2.png" medium="image" />

		<media:content url="http://qwertconsulting.files.wordpress.com/2009/12/122309_1513_enablingthe3.png" medium="image" />
	</item>
		<item>
		<title>List form from Infopath 2010 is blank</title>
		<link>http://blog.petermunch.net/2009/12/22/list-form-from-infopath-2010-is-blank/</link>
		<comments>http://blog.petermunch.net/2009/12/22/list-form-from-infopath-2010-is-blank/#comments</comments>
		<pubDate>Tue, 22 Dec 2009 21:52:38 +0000</pubDate>
		<dc:creator>Peter Munch Nielsen</dc:creator>
				<category><![CDATA[Sharepoint 2010 development]]></category>

		<guid isPermaLink="false">http://qwertconsulting.wordpress.com/2009/12/22/list-form-from-infopath-2010-is-blank/</guid>
		<description><![CDATA[Well&#8230;..one of these you use a couple of hours to solve and looking back you know it should only have lasted 20 minutes, if your brain had been pressent Here we go&#8230;.when creating a new list item in SHarepoint 2010 in a list with a list form edited in Infopath 2010 you get a pop-up [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=54&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Well&#8230;..one of these you use a couple of hours to solve and looking back you know it should only have lasted 20 minutes, if your brain had been pressent <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Here we go&#8230;.when creating a new list item in SHarepoint 2010 in a list with a list form edited in Infopath 2010 you get a pop-up with no fields and no headings &#8211; even though you know you have placed several fields in it.</p>
<p>The trick is called &#8220;System State&#8221; and is the same as in Sharepoint 2007 where you got it from the Shared Service Provider, but since there is no Shared Service Provider in Sharepoint 2010 you need to find it another place.</p>
<p>Open the Central Administration and click on configuration wizard in the quick launch. Start the configuration wizard and make sure System State is checked on the services page. After 5 minutes every Infopath form rendered like a dream.</p>
<p>Actually there is another way of doing this, if you are not the &#8220;wizard-kind-of-Sharepointer&#8221; and this is through PowerShell &#8211; I have searched but haven&#8217;t found a &#8220;Enable Session State&#8221; in the Central admin. The cmdlets are Get-SPSessionStateService, which returns a true or a false indicating if it is enabled or not &#8211; and if it is not, you can enable it with the cmdlet Enable-SPSessionStateService, which takes a lot of parameters &#8211; and the only mandatory is Databasename.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/qwertconsulting.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/qwertconsulting.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/qwertconsulting.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/qwertconsulting.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/qwertconsulting.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/qwertconsulting.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/qwertconsulting.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/qwertconsulting.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/qwertconsulting.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/qwertconsulting.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/qwertconsulting.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/qwertconsulting.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/qwertconsulting.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/qwertconsulting.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.petermunch.net&#038;blog=9933113&#038;post=54&#038;subd=qwertconsulting&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.petermunch.net/2009/12/22/list-form-from-infopath-2010-is-blank/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/1adf71939c254b8318fac5d87b172d6a?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Peter Munch Nielsen</media:title>
		</media:content>
	</item>
	</channel>
</rss>
