<?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>Gav&#039;s Blog - SharePoint .NET &#38; Tech</title>
	<atom:link href="http://gavinb.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://gavinb.net</link>
	<description>My adventures in the world of SharePoint</description>
	<lastBuildDate>Tue, 14 Feb 2012 21:39:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='gavinb.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Gav&#039;s Blog - SharePoint .NET &#38; Tech</title>
		<link>http://gavinb.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://gavinb.net/osd.xml" title="Gav&#039;s Blog - SharePoint .NET &#38; Tech" />
	<atom:link rel='hub' href='http://gavinb.net/?pushpress=hub'/>
		<item>
		<title>SPC366 Making SharePoint Websites Sing on your Smartphone</title>
		<link>http://gavinb.net/2011/10/05/spc366-making-sharepoint-websites-sing-on-your-smartphone/</link>
		<comments>http://gavinb.net/2011/10/05/spc366-making-sharepoint-websites-sing-on-your-smartphone/#comments</comments>
		<pubDate>Tue, 04 Oct 2011 21:00:28 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://gavinb.net/?p=265</guid>
		<description><![CDATA[Well that was fun! I had a real blast co-presesnting that session with Chris. As promised I have a bunch of resources for you to download and peruse. Disabling Mobile Re-direction via PowerShell Hmmm, apparently WordPress won&#8217;t let me host &#8230; <a href="http://gavinb.net/2011/10/05/spc366-making-sharepoint-websites-sing-on-your-smartphone/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=265&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Well that was fun!</strong></p>
<p>I had a real blast co-presesnting that session with <a href="http://syringe.net.nz/" title="Chris' Blog">Chris</a>. As promised I have a bunch of resources for you to <del datetime="2011-10-04T20:57:20+00:00">download and</del> peruse.</p>
<p><a href="http://gavinb.net/2011/06/13/disable-mobile-redirection-for-a-web-application-via-powershell/" title="Disable Mobile Redirection for a Web Application via PowerShell">Disabling Mobile Re-direction via PowerShell</a></p>
<p>Hmmm, apparently WordPress won&#8217;t let me host any useful file formats in my site (not even plain .txt files!!!) so sorry&#8230;. My plans of giving you folks full Visual Studio solutions as zip files has been foiled! I&#8217;ll work out a cunning plan to get around this later.</p>
<p>In the meantime:</p>
<p>The custom re-director I showed off was based off this MSDN article: <a href="http://msdn.microsoft.com/en-us/library/ms441925.aspx" Title="How to: Customize the Mobile Home Page Through Redirection">http://msdn.microsoft.com/en-us/library/ms441925.aspx</a>. Essentially you should: </p>
<ul>
<li>Create a mapped folder in you SharePoint Solution, mapping it to 14HIVE\TEMPLATE\LAYOUTS\MOBILE</li>
<li>Into this add your own custom aspx page that inherits from Microsoft.SharePoint.MobileRedirection.SPMobilePage</li>
<li>Override the OnInit method to provide your custom redirection</li>
<li>Create a copy of the existing mbllists.aspx as mbllists.old.aspx, or similar </li>
<li>Replace the existing mbllists.aspx with your own custom page that contains:</li>
<p><pre class="brush: xml;">
&lt;SPMobile:SPMobileForm RunAt=&quot;Server&quot; PageType=&quot;HomePage&quot; Paginate=&quot;true&quot;&gt;
	&lt;SPMobile:SPMobileHomePageRedirection ID=&quot;SPMobileHomePageRedirection1&quot; RunAt=&quot;Server&quot; 
    PageFileName=&quot;CustomMobileRedirect.aspx&quot; /&gt;
&lt;/SPMobile:SPMobileForm&gt;
</pre></p>
<li>Deploy the solution</li>
</ul>
<p>
The HttpHandler that I used to trick SharePoint into not re-directing I sourced from the blog of Waldek Mastykarz: <a href="http://blog.mastykarz.nl/inconvenient-sharepoint-2010-mobile-redirect/" title="Mobile Redirection.">http://blog.mastykarz.nl/inconvenient-sharepoint-2010-mobile-redirect/</a>.</p>
<p>I then coupled it with a really simple webpart that contained the following code.
</p>
<p><pre class="brush: csharp;">
using System;
using System.ComponentModel;
using System.Web.UI.WebControls.WebParts;

namespace VariationsRedirector.RedirectWebPart
{
    [ToolboxItemAttribute(false)]
    public class RedirectWebPart : WebPart
    {
        protected override void OnInit(EventArgs e)
        {
            if (Page.Request.Browser.IsMobileDevice)
            {
                string mobileUrl = GetMobileSiteUrl();
                Page.Response.Redirect(mobileUrl);
            }
            base.OnInit(e);
        }

        /// &lt;summary&gt;
        /// Gets the Mobile URL form the config settings list if it exists
        /// &lt;/summary&gt;
        /// &lt;returns&gt;The mobile URL&lt;/returns&gt;
        private string GetMobileSiteUrl()
        {
            //This is just hard coded to change the URL of the current request,
            //swaping the mobile variation label for the www variation label, 
            //hey, it's demo code...
            string mobileUrl = Page.Request.Url.ToString().ToLower().Replace(&quot;/www/&quot;, &quot;/mobile/&quot;);
            return mobileUrl;
        }
    }
}
</pre></p>
<p>
Many thanks to the Conference team for allowing me to present and to all of you that came along to my session<br />
Feel free to reach out to either Chris of myself if you have any further queries <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p>
<br />Filed under: <a href='http://gavinb.net/category/uncategorized/'>Uncategorized</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/265/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/265/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=265&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2011/10/05/spc366-making-sharepoint-websites-sing-on-your-smartphone/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	</item>
		<item>
		<title>Visual Web Parts for SharePoint in the Sandbox</title>
		<link>http://gavinb.net/2011/09/22/visual-web-parts-for-sharepoint-in-the-sandbox/</link>
		<comments>http://gavinb.net/2011/09/22/visual-web-parts-for-sharepoint-in-the-sandbox/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 23:13:10 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Deployment]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Sandbox]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=262</guid>
		<description><![CDATA[Get ‘em while they’re hot! Visual Studio 2010 SharePoint Power Tools plus a sandboxed compilation to ensure you’re not accidentally calling outside of the allowed set of types and members. Filed under: Deployment, Development, Sandbox, SharePoint, Visual Studio<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=262&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Get ‘em while they’re hot! <a href="http://visualstudiogallery.msdn.microsoft.com/8e602a8c-6714-4549-9e95-f3700344b0d9/">Visual Studio 2010 SharePoint Power Tools</a> plus a sandboxed compilation to ensure you’re not accidentally calling outside of the allowed set of types and members.</p>
<br />Filed under: <a href='http://gavinb.net/category/deployment/'>Deployment</a>, <a href='http://gavinb.net/category/development/'>Development</a>, <a href='http://gavinb.net/category/sandbox/'>Sandbox</a>, <a href='http://gavinb.net/category/sharepoint/'>SharePoint</a>, <a href='http://gavinb.net/category/visual-studio/'>Visual Studio</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/262/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/262/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/262/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=262&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2011/09/22/visual-web-parts-for-sharepoint-in-the-sandbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	</item>
		<item>
		<title>SPServices Helper Function: Resolve the Guid of a View</title>
		<link>http://gavinb.net/2011/09/21/spservices-helper-function-resolve-the-guid-of-a-view/</link>
		<comments>http://gavinb.net/2011/09/21/spservices-helper-function-resolve-the-guid-of-a-view/#comments</comments>
		<pubDate>Wed, 21 Sep 2011 06:09:26 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SPServices]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=253</guid>
		<description><![CDATA[If you’re using the excellent SPServices library to wrap up access to the SharePoint web services from JavaScript, good stuff! If, like me, you want to query a View on a given list you’ll need to pass the Guid of &#8230; <a href="http://gavinb.net/2011/09/21/spservices-helper-function-resolve-the-guid-of-a-view/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=253&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you’re using the excellent <a href="http://spservices.codeplex.com/">SPServices</a> library to wrap up access to the SharePoint web services from JavaScript, good stuff! <br />If, like me, you want to query a View on a given list you’ll need to pass the Guid of the view as the viewName parameter. Using the display name will give you the error: Parameter viewName is missing or invalid. 0&#215;82000001</p>
<p>To resolve this you’ll need to call the GetViewCollection method for a given list and then parse the result to find your Guid. I’m a total newbie to jQuery and client side scripting so I found this a little tricky to get right, but I got there. So, here’s a helper for you use:</p>
<p><pre class="brush: jscript; pad-line-numbers: true;">
function ResolveListGuidFromName(webUrl, listName, viewName){
	var guid;
	var filter = &quot;View[DisplayName='&quot;+ viewName +&quot;']&quot;;
	$().SPServices({
	    operation: &quot;GetViewCollection&quot;,
	    async: false,
	    webURL: webUrl,
	    listName: &quot;Votes&quot;,
	    completefunc:function (xData, Status) {
			guid = $(xData.responseXML).find(filter).attr(&quot;Name&quot;);
		}
	});
	return guid;
}
</pre></p>
<p>Not too bad for my first hack at this stuff.</p>
<br />Filed under: <a href='http://gavinb.net/category/development/'>Development</a>, <a href='http://gavinb.net/category/jquery/'>jQuery</a>, <a href='http://gavinb.net/category/sharepoint/'>SharePoint</a>, <a href='http://gavinb.net/category/spservices/'>SPServices</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/253/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/253/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/253/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=253&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2011/09/21/spservices-helper-function-resolve-the-guid-of-a-view/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	</item>
		<item>
		<title>TFS 2010: Add to security groups from outside of the current domain</title>
		<link>http://gavinb.net/2011/09/14/tfs-2010-add-to-security-groups-from-outside-of-the-current-domain/</link>
		<comments>http://gavinb.net/2011/09/14/tfs-2010-add-to-security-groups-from-outside-of-the-current-domain/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 22:04:10 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[TFS]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=248</guid>
		<description><![CDATA[If you’re a SharePoint developer like me, chances are that the dev server you’re working on is joined to a different domain from your corporate identity. Now this makes it tricky to add users to your TFS Security Groups from &#8230; <a href="http://gavinb.net/2011/09/14/tfs-2010-add-to-security-groups-from-outside-of-the-current-domain/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=248&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>If you’re a SharePoint developer like me, chances are that the dev server you’re working on is joined to a different domain from your corporate identity. Now this makes it tricky to add users to your TFS Security Groups from inside of Visual Studio as you can’t browse the AD users on your corporate domain</p>
<p>Thankfully there is a handy command line tool that you can use called TFSSecurity.exe, by default you can find it in C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE</p>
<p>What you need to run is:</p>
<blockquote><p>TFSSecurity.exe /collection:http://&lt;serverUri&gt;:&lt;port&gt;/&lt;virtualDirectory&gt;/&lt;collectionName&gt;/g+ &#8220;[&lt;projectName&gt;]\&lt;group&gt;&#8221; n:&#8221;&lt;DOMAIN&gt;\&lt;user&gt;&#8221;</p>
</blockquote>
<p>Replace everything in angle brackets with the values that match your environment. As a rule of thumb for default install the virtual directory is tfs, the port is 8080 and the collection is default. So to add INTERGEN\Gavinb to project Awesome as a contributor the command looks like this:</p>
<blockquote><p>TFSSecurity.exe /collection:http://tfsserver:8080/tfs/default /g+ &#8220;[Awesome]\Contributors&#8221; n:&#8221;INTERGEN\gavinb&#8221;</p>
</blockquote>
<br />Filed under: <a href='http://gavinb.net/category/security/'>Security</a>, <a href='http://gavinb.net/category/tfs/'>TFS</a>, <a href='http://gavinb.net/category/visual-studio/'>Visual Studio</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/248/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/248/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=248&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2011/09/14/tfs-2010-add-to-security-groups-from-outside-of-the-current-domain/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	</item>
		<item>
		<title>Office 365 and Passwords</title>
		<link>http://gavinb.net/2011/08/08/office-365-and-passwords/</link>
		<comments>http://gavinb.net/2011/08/08/office-365-and-passwords/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 06:18:23 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[WTF]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=246</guid>
		<description><![CDATA[Today I learned that the new password policy for Office 365 specifies an upper limit on password length. Yes, that’s right folks, some special person decided that passwords for Office 365, and therefore Exchange Online, should be 8-16 characters in &#8230; <a href="http://gavinb.net/2011/08/08/office-365-and-passwords/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=246&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Today I learned that the new password policy for Office 365 specifies an upper limit on password length.</p>
<p>Yes, that’s right folks, some special person decided that passwords for Office 365, and therefore Exchange Online, should be <strong>8-16 characters in length</strong>. As for why I have no idea. </p>
<p>Personally I think an upper limit on password length is retarded. I currently use a password scheme based on a short meaningful phrase which often results in passwords of over 16 characters. </p>
<p>According to my friend in our IT services team this limitation is not in place for those people who are using ADFS, so I guess the takeout here is ADFS is good, and as far as Office 365 goes, you can be “too secure”</p>
<br />Filed under: <a href='http://gavinb.net/category/security/'>Security</a>, <a href='http://gavinb.net/category/wtf/'>WTF</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/246/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/246/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=246&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2011/08/08/office-365-and-passwords/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	</item>
		<item>
		<title>SPEasy Setup Scripts: Gotcha!</title>
		<link>http://gavinb.net/2011/07/19/speasy-setup-scripts-gotcha/</link>
		<comments>http://gavinb.net/2011/07/19/speasy-setup-scripts-gotcha/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 01:45:35 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=238</guid>
		<description><![CDATA[A workmate of mine just recently used the SharePoint Easy Setup Script to setup a Windows 7 machine for SharePoint development. Upon trying to browse newly created Web Applications with host headers he was prompted to authenticate but these authentication &#8230; <a href="http://gavinb.net/2011/07/19/speasy-setup-scripts-gotcha/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=238&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A workmate of mine just recently used the <a href="http://www.microsoft.com/download/en/details.aspx?id=23415">SharePoint Easy Setup Script</a> to setup a Windows 7 machine for SharePoint development. Upon trying to browse newly created Web Applications with host headers he was prompted to authenticate but these authentication attempts always resulted in a 401.1 error.</p>
<p>It turns out that the easy setup scripts don’t <a href="http://www.harbar.net/archive/2009/07/02/disableloopbackcheck-amp-sharepoint-what-every-admin-and-developer-should-know.aspx">disable the loopback check</a>. Luckily that has a <a href="http://support.microsoft.com/kb/896861">well documented and easy fix</a> which can also <a href="http://sptwentyten.wordpress.com/2010/03/06/disable-the-loopback-check-via-powershell/">be done via PowerShell</a>.</p>
<br />Filed under: <a href='http://gavinb.net/category/development/'>Development</a>, <a href='http://gavinb.net/category/sharepoint/'>SharePoint</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/238/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/238/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=238&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2011/07/19/speasy-setup-scripts-gotcha/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	</item>
		<item>
		<title>Serving HTML5 Video from SharePoint Document Libraries</title>
		<link>http://gavinb.net/2011/07/19/serving-html5-video-from-sharepoint-document-libraries/</link>
		<comments>http://gavinb.net/2011/07/19/serving-html5-video-from-sharepoint-document-libraries/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 01:01:06 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Configuration]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[SharePoint]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=233</guid>
		<description><![CDATA[So you want to serve up some video content and use the &#60;video&#62; tag? Cool! You want to do it using video files you have in SharePoint? Cool, that shouldn’t be too hard. Unfortunately out of the box SharePoint 2010 &#8230; <a href="http://gavinb.net/2011/07/19/serving-html5-video-from-sharepoint-document-libraries/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=233&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So you want to serve up some video content and use the &lt;video&gt; tag? Cool!</p>
<p>You want to do it using video files you have in SharePoint? Cool, that shouldn’t be too hard.</p>
<p>Unfortunately out of the box SharePoint 2010 is going to serve that video file out of the document library with a MIME Type of <strong>application/octet-stream</strong>, which IE and Firefox are not going to recognise as playable video. Chrome seems to be inspecting the file and determining the file type itself so video plays in that browser without needing a correct MIME Type sent from the web server.</p>
<p>I’m not going to get deeply into the ins and outs of the codec nightmare (ugh). Expect to say, there are some good free tools for encoding your video as H.264. I like <a href="http://www.videolan.org/developers/x264.html">x264</a> for a command line tool or <a href="http://www.h264encoder.com/">H.264 Encoder</a>if you want a GUI. I’m not discussing WebM as I didn’t need to create videos using that encoding for the piece of work that generated this blog post.</p>
<p>If you’re after a hand on the front of generating your HTML, check out <a href="http://camendesign.com/code/video_for_everybody">Video for Everybody</a>. One of my big complaints is that there is nothing laid down in the spec to require a “full window” mode control, the individual browsers <em>may</em> provide this control, but at this stage IE, Firefox and Chrome don&#8217;t . If you’re looking to provide something on this front, then I’d suggest using <a href="http://videojs.com/">VideoJS</a></p>
<p>So assuming that you have that all sorted there are a couple of steps to make SharePoint serve the content in a manner that a browser can use, so don’t just stand there, let’s get to it.</p>
<h2>Step 1 – Configure IIS 7 to provide a MIME type for .mp4 files.</h2>
<blockquote><p>Yes, I’m only covering the .mp4/H.264 case, just repeat Step 1 tweaking for WebM/Ogv</p></blockquote>
<p>1. From the Start menu, enter <strong>inetmgr</strong> in the search box and press Enter. An instance of the IIS Management Console will start<strong>.</strong></p>
<p>2. Select the server node, in the Features View locate the <strong>MIME Types </strong>feature in the IIS Group and double click on it.</p>
<p><img style="display:block;margin-left:auto;margin-right:auto;" title="MIME Type in IIS7" src="http://gavinbdotnet.files.wordpress.com/2011/07/clip_image002.png?w=640" alt="MIME Type in IIS7" border="0" /></p>
<p>3. In the Actions pane click <strong>Add…</strong></p>
<p>4. Fill in the form providing <strong>.mp4 </strong>as the File name extension and <strong>video/mp4</strong>as the MIME Type and click OK</p>
<p><img style="display:block;margin-left:auto;margin-right:auto;" title="Add MIME Type" src="http://gavinbdotnet.files.wordpress.com/2011/07/clip_image003.png?w=640" alt="Add MIME Type" border="0" /></p>
<p>5. Close the IIS Management Console.</p>
<h2>Step 2 – Configure the SharePoint Web Application to serve mp4 using the configured MIME Type.</h2>
<p>1. From the Start Menu, select <strong>All Programs | Microsoft SharePoint 2010 Products | SharePoint 2010 Central Administration</strong>. Under Application Management select <strong>Manage web applications</strong>.</p>
<p>2. Select the desired web application in the list.</p>
<p>3. Click on <strong>General Settings</strong>in the ribbon.</p>
<p>4. Scroll down and find the Browser File Handling section, change the selection to <strong>Permissive</strong>, scroll to the bottom of the dialog and click <strong>OK. </strong></p>
<p><img style="display:block;margin-left:auto;margin-right:auto;" title="Browser File Handling" src="http://gavinbdotnet.files.wordpress.com/2011/07/clip_image006.png?w=640" alt="Browser File Handling" border="0" /></p>
<p>5. Close the browser window.</p>
<p>6. You now need to reset IIS. Open and command prompt and enter run the <strong>iisreset</strong>command.</p>
<p>BOOM!</p>
<p>You’re now serving video files in a manner that all the major browsers should be able to play them when used as a &lt;source&gt; element in the &lt;video&gt; tag!</p>
<br />Filed under: <a href='http://gavinb.net/category/configuration/'>Configuration</a>, <a href='http://gavinb.net/category/development/'>Development</a>, <a href='http://gavinb.net/category/html5/'>HTML5</a>, <a href='http://gavinb.net/category/sharepoint/'>SharePoint</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/233/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/233/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/233/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=233&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2011/07/19/serving-html5-video-from-sharepoint-document-libraries/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2011/07/clip_image002.png" medium="image">
			<media:title type="html">MIME Type in IIS7</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2011/07/clip_image003.png" medium="image">
			<media:title type="html">Add MIME Type</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2011/07/clip_image006.png" medium="image">
			<media:title type="html">Browser File Handling</media:title>
		</media:content>
	</item>
		<item>
		<title>Hey where is my &lt;video&gt;?</title>
		<link>http://gavinb.net/2011/07/11/hey-where-is-my-video/</link>
		<comments>http://gavinb.net/2011/07/11/hey-where-is-my-video/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 21:13:44 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[HTML5]]></category>
		<category><![CDATA[WTF]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=224</guid>
		<description><![CDATA[So, I’m running Windows Server 2008 R2 aka Win7 Server. I installed IE 9 but none of the videos on the Video Format Support Page are playing? WTF? That page is from Microsoft to show off the HTML5 support in &#8230; <a href="http://gavinb.net/2011/07/11/hey-where-is-my-video/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=224&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So, I’m running Windows Server 2008 R2 aka Win7 Server. I installed IE 9 but none of the videos on the <a href="http://ie.microsoft.com/testdrive/Graphics/VideoFormatSupport/Default.html">Video Format Support Page</a> are playing?</p>
<p>WTF? That page is from Microsoft to show off the HTML5 support in IE9. </p>
<p>Turns out that I’m missing the codecs for H.264 and AAC which are bundled in the Desktop Experience feature, which, on Server 2008 R2 is missing these codecs.</p>
<p>Easy fix though, Microsoft have an <a href="http://www.microsoft.com/download/en/details.aspx?id=13283">update for the Desktop Experience on Server 2008 R2</a>, download, install and you’re laughing at silly HTML5 videos <img style="border-style:none;" class="wlEmoticon wlEmoticon-smile" alt="Smile" src="http://gavinbdotnet.files.wordpress.com/2011/07/wlemoticon-smile.png?w=640"></p>
<br />Filed under: <a href='http://gavinb.net/category/html5/'>HTML5</a>, <a href='http://gavinb.net/category/wtf/'>WTF</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/224/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/224/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/224/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=224&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2011/07/11/hey-where-is-my-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>

		<media:content url="http://gavinbdotnet.files.wordpress.com/2011/07/wlemoticon-smile.png" medium="image">
			<media:title type="html">Smile</media:title>
		</media:content>
	</item>
		<item>
		<title>SharePoint 2010 SP1 is out, but wait there&#8217;s more!</title>
		<link>http://gavinb.net/2011/06/29/sharepoint-2010-sp1-is-out-but-wait-theres-more/</link>
		<comments>http://gavinb.net/2011/06/29/sharepoint-2010-sp1-is-out-but-wait-theres-more/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 23:11:22 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[Service Pack]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[SP1]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=213</guid>
		<description><![CDATA[So SharePoint 2010 Service Pack 1 is available for Download. The SharePoint team are also shipping a June 2011 CU with a bunch of fixes that didn’t get into SP1 and it’s “ strongly recommended to install the June 2011 &#8230; <a href="http://gavinb.net/2011/06/29/sharepoint-2010-sp1-is-out-but-wait-theres-more/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=213&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So SharePoint 2010 Service Pack 1 is available for <a href="http://technet.microsoft.com/office/ee748587.aspx">Download</a>.</p>
<p>The SharePoint team are also shipping a June 2011 CU with a bunch of fixes that didn’t get into SP1 and it’s “ strongly recommended to install the <a href="http://support.microsoft.com/hotfix/KBHotfix.aspx?kbnum=2536599">June 2011 Cumulative Update </a>immediately after the installation of Service Pack 1.”</p>
<p>More detail over on the SharePoint blog: <a title="http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=984" href="http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=984">http://sharepoint.microsoft.com/blog/Pages/BlogPost.aspx?pID=984</a></p>
<p>Also included are a few FAQs.</p>
<p>So, what’s in SP1?: Check out Andrew Connell’s post about <a href="http://www.andrewconnell.com/blog/archive/2011/06/28/sharepoint-2010-service-pack-1-now-availablendashwhatrsquos-new.asp">What’s New In Service Pack 1</a>, this of course is additional to all the hot fixes and previous CUs that are bundled into the service pack.</p>
<br />Filed under: <a href='http://gavinb.net/category/maintenance/'>Maintenance</a>, <a href='http://gavinb.net/category/service-pack/'>Service Pack</a>, <a href='http://gavinb.net/category/sharepoint/'>SharePoint</a>, <a href='http://gavinb.net/category/sp1/'>SP1</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/213/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/213/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/213/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=213&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2011/06/29/sharepoint-2010-sp1-is-out-but-wait-theres-more/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	</item>
		<item>
		<title>Running SharePoint Timer Jobs from PowerShell</title>
		<link>http://gavinb.net/2011/06/17/running-sharepoint-timer-jobs-from-powershell/</link>
		<comments>http://gavinb.net/2011/06/17/running-sharepoint-timer-jobs-from-powershell/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 06:26:57 +0000</pubDate>
		<dc:creator>gavinbarron</dc:creator>
				<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Timer Jobs]]></category>

		<guid isPermaLink="false">https://gavinbdotnet.wordpress.com/?p=212</guid>
		<description><![CDATA[From time to time you need to execute a given SharePoint timer job now. Sure you could go into Central Admin, find it and run it manually, but where’s the fun in that? Plus sometimes you need to automate this, &#8230; <a href="http://gavinb.net/2011/06/17/running-sharepoint-timer-jobs-from-powershell/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=212&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>From time to time you need to execute a given SharePoint timer job now. Sure you could go into Central Admin, find it and run it manually, but where’s the fun in that? Plus sometimes you need to automate this, say in an install scenario.</p>
<p>Luckily it’s dead easy using the SharePoint cmdlets</p>
<p>Heck you can do it in a couple of lines with some pipelining.</p>
<p><pre class="brush: powershell;">
$WebApp = Get-SPWebApplication http://mywebappurl
$job = Get-SPTimerJob | ?{$_.Name -match $JobName} | ?{$_.Parent -eq $WebApp}
</pre></p>
<p>Or if you’d like to be a bit more robust and re-usable:</p>
<p><pre class="brush: powershell;">
function StartJobOnWebApp
{
	param([Parameter(Mandatory=$true, ValueFromPipeline=$true, Position=0)]
    [Microsoft.SharePoint.PowerShell.SPWebApplicationPipeBind]
    $WebApplication,
	[Parameter(Mandatory=$true, ValueFromPipeline=$true, Position=1)]
	[string] $JobName)
	process
	{
		$WebApp = $WebApplication.Read() 
		$job = Get-SPTimerJob | ?{$_.Name -match $JobName} | ?{$_.Parent -eq $WebApp} 
		if($null -ne $job)
		{
			Write-Host -ForegroundColor Yellow &quot;Starting &quot;$job.DisplayName
			Start-SPTimerJob $job
		}
	}
}
</pre></p>
<br />Filed under: <a href='http://gavinb.net/category/powershell/'>PowerShell</a>, <a href='http://gavinb.net/category/sharepoint/'>SharePoint</a>, <a href='http://gavinb.net/category/timer-jobs/'>Timer Jobs</a>  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/gavinbdotnet.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/gavinbdotnet.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/gavinbdotnet.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/gavinbdotnet.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/gavinbdotnet.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/gavinbdotnet.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/gavinbdotnet.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/gavinbdotnet.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/gavinbdotnet.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/gavinbdotnet.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/gavinbdotnet.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/gavinbdotnet.wordpress.com/212/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/gavinbdotnet.wordpress.com/212/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/gavinbdotnet.wordpress.com/212/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=gavinb.net&amp;blog=19844983&amp;post=212&amp;subd=gavinbdotnet&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://gavinb.net/2011/06/17/running-sharepoint-timer-jobs-from-powershell/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">gavinbarron</media:title>
		</media:content>
	</item>
	</channel>
</rss>
