<?xml version="1.0" encoding="iso-8859-1"?><!-- generator="b2evolution/3.3.3" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Fianbakken.com</title>
		<link>http://www.fianbakken.com/blogs/index.php/main/</link>
		<atom:link rel="self" type="application/rss+xml" href="http://www.fianbakken.com/blogs/index.php/main/?tempskin=_rss2" />
		<description></description>
		<language>en-US</language>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=3.3.3"/>
		<ttl>60</ttl>
				<item>
			<title>Powershell magic - Get all files in folder (and subfolders) with a specific extension</title>
			<link>http://www.fianbakken.com/blogs/index.php/main/?p=42&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			<pubDate>Tue, 26 Oct 2010 07:00:27 +0000</pubDate>			<dc:creator>Harald S. Fianbakken</dc:creator>
			<category domain="main">Development</category>			<guid isPermaLink="false">42@http://www.fianbakken.com/blogs/</guid>
						<description>&lt;p&gt;
After many years with bash-scripting and the power of unix in my fingertips, seeing that Microsoft finally made a good commandline shell was pleasant. 
&lt;/p&gt;

&lt;p&gt;
For finding files in unix from a particular folder i'd often use: &lt;strong&gt;find . -name *.jpg&lt;/strong&gt; (or similar). Today I had the same need on  windows. I needed to copy all files (images) from a rootfolder (and all files withing the subfolders) to another folder. The following lines will help you along to do just that (just add a copy for each of the files).
&lt;/p&gt;
&lt;pre&gt;
$items = Get-ChildItem -Recurse &quot;C:\SomeDirectory\&quot;
$filesWithDirectory = $items|?{$_.extension -eq &quot;.jpg&quot;}|select Directory,Name 
&lt;/pre&gt;

&lt;p&gt;
This will give you a table with the following syntax (so you can use it in a foreach loop to copy or to whatever):
&lt;/p&gt;
&lt;pre&gt;
Directory              Name
c:\somedir\blabla\     somepicture.jpg 
&lt;/pre&gt;

&lt;p&gt;&lt;strong&gt;
Enjoy!&lt;/strong&gt;
&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.fianbakken.com/blogs/index.php/main/?p=42&amp;amp;more=1&amp;amp;c=1&amp;amp;tb=1&amp;amp;pb=1&quot;&gt;Original post&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>
After many years with bash-scripting and the power of unix in my fingertips, seeing that Microsoft finally made a good commandline shell was pleasant. 
</p>

<p>
For finding files in unix from a particular folder i'd often use: <strong>find . -name *.jpg</strong> (or similar). Today I had the same need on  windows. I needed to copy all files (images) from a rootfolder (and all files withing the subfolders) to another folder. The following lines will help you along to do just that (just add a copy for each of the files).
</p>
<pre>
$items = Get-ChildItem -Recurse "C:\SomeDirectory\"
$filesWithDirectory = $items|?{$_.extension -eq ".jpg"}|select Directory,Name 
</pre>

<p>
This will give you a table with the following syntax (so you can use it in a foreach loop to copy or to whatever):
</p>
<pre>
Directory              Name
c:\somedir\blabla\     somepicture.jpg 
</pre>

<p><strong>
Enjoy!</strong>
</p><div class="item_footer"><p><small><a href="http://www.fianbakken.com/blogs/index.php/main/?p=42&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">Original post</a></small></p></div>]]></content:encoded>
								<comments>http://www.fianbakken.com/blogs/index.php/main/?p=42&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1#comments</comments>
			<wfw:commentRss>http://www.fianbakken.com/blogs/index.php/main/?tempskin=_rss2&#38;disp=comments&#38;p=42</wfw:commentRss>
		</item>
				<item>
			<title>Sharepoint - Fast Search gotchas</title>
			<link>http://www.fianbakken.com/blogs/index.php/main/?p=41&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			<pubDate>Tue, 26 Oct 2010 06:42:53 +0000</pubDate>			<dc:creator>Harald S. Fianbakken</dc:creator>
			<category domain="main">Development</category>			<guid isPermaLink="false">41@http://www.fianbakken.com/blogs/</guid>
						<description>&lt;p&gt;
After fighting with Sharepoint 2010 and Fast Search for Sharepoint 2010 for a while, I thought I'd would be a good idea to 
write a post summarizing gotchas and things to check if something goes wrong. I'm starting to get a list of things that might help save some people time in debugging.
&lt;/p&gt;
&lt;p&gt;
Any comments / ideas you'd like to share with me for such a post?
&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.fianbakken.com/blogs/index.php/main/?p=41&amp;amp;more=1&amp;amp;c=1&amp;amp;tb=1&amp;amp;pb=1&quot;&gt;Original post&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>
After fighting with Sharepoint 2010 and Fast Search for Sharepoint 2010 for a while, I thought I'd would be a good idea to 
write a post summarizing gotchas and things to check if something goes wrong. I'm starting to get a list of things that might help save some people time in debugging.
</p>
<p>
Any comments / ideas you'd like to share with me for such a post?
</p><div class="item_footer"><p><small><a href="http://www.fianbakken.com/blogs/index.php/main/?p=41&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">Original post</a></small></p></div>]]></content:encoded>
								<comments>http://www.fianbakken.com/blogs/index.php/main/?p=41&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1#comments</comments>
			<wfw:commentRss>http://www.fianbakken.com/blogs/index.php/main/?tempskin=_rss2&#38;disp=comments&#38;p=41</wfw:commentRss>
		</item>
				<item>
			<title>FAST - Unable to connect to search Service</title>
			<link>http://www.fianbakken.com/blogs/index.php/main/?p=40&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			<pubDate>Fri, 22 Oct 2010 11:31:22 +0000</pubDate>			<dc:creator>Harald S. Fianbakken</dc:creator>
			<category domain="alt">Sharepoint</category>
<category domain="main">FAST Search</category>			<guid isPermaLink="false">40@http://www.fianbakken.com/blogs/</guid>
						<description>&lt;p&gt;
FAST suddenly stopped working on the Sharepoint frontend. 
Doing a search from the search site, resulted in the following error: &quot;Unable to Connect Search Service. &quot;
&lt;/p&gt;
&lt;p&gt;
I scanned the event logs; none giving any useful information, all seemed to be working. 
&lt;/p&gt;
&lt;p&gt;
The only two errors if relevance were: 
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
[Microsoft.Office.Server.Search.Query.SearchServiceNotFoundException]: The search request was unable to connect to the Search Service.
&lt;/li&gt;
&lt;li&gt;
[Microsoft.Office.Server.Search.Administration.SearchServiceApplicationFault]: The creator of this fault did not specify a Reason
&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
Useful right? .. Not particularly..
&lt;br /&gt;
&lt;p&gt;
I did a &quot;nctrl status&quot; on the fast-backends and admin, all services was running. Why all of the sudden did the query service stop working?
&lt;br /&gt;
It turns out that the server-clocks were different (not synchronized). I adjusted the date &amp;amp; time (one server was 8 minutes behind the other) and it started working automagically!
&lt;br /&gt; &lt;br /&gt;
I'm guessing WCF times out behind the scenes or some communication error occurs silently because of this. But no useful info in any logs. Quite frustrating!
&lt;br /&gt; &lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
So, lesson learnt: Check the system time on ALL Servers! They should be the same. 
&lt;br /&gt;
I hope this will be useful for others with the same problem(as google provides no results for this behaviour).
&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.fianbakken.com/blogs/index.php/main/?p=40&amp;amp;more=1&amp;amp;c=1&amp;amp;tb=1&amp;amp;pb=1&quot;&gt;Original post&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>
FAST suddenly stopped working on the Sharepoint frontend. 
Doing a search from the search site, resulted in the following error: "Unable to Connect Search Service. "
</p>
<p>
I scanned the event logs; none giving any useful information, all seemed to be working. 
</p>
<p>
The only two errors if relevance were: 
</p>
<ul>
<li>
[Microsoft.Office.Server.Search.Query.SearchServiceNotFoundException]: The search request was unable to connect to the Search Service.
</li>
<li>
[Microsoft.Office.Server.Search.Administration.SearchServiceApplicationFault]: The creator of this fault did not specify a Reason
</li>
</ul>
<br />
Useful right? .. Not particularly..
<br />
<p>
I did a "nctrl status" on the fast-backends and admin, all services was running. Why all of the sudden did the query service stop working?
<br />
It turns out that the server-clocks were different (not synchronized). I adjusted the date &amp; time (one server was 8 minutes behind the other) and it started working automagically!
<br /> <br />
I'm guessing WCF times out behind the scenes or some communication error occurs silently because of this. But no useful info in any logs. Quite frustrating!
<br /> <br />
</p>
<p>
So, lesson learnt: Check the system time on ALL Servers! They should be the same. 
<br />
I hope this will be useful for others with the same problem(as google provides no results for this behaviour).
</p><div class="item_footer"><p><small><a href="http://www.fianbakken.com/blogs/index.php/main/?p=40&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">Original post</a></small></p></div>]]></content:encoded>
								<comments>http://www.fianbakken.com/blogs/index.php/main/?p=40&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1#comments</comments>
			<wfw:commentRss>http://www.fianbakken.com/blogs/index.php/main/?tempskin=_rss2&#38;disp=comments&#38;p=40</wfw:commentRss>
		</item>
				<item>
			<title>Windows Server 2008 R2 - 64-bit 100% CPU Load</title>
			<link>http://www.fianbakken.com/blogs/index.php/main/?p=38&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			<pubDate>Mon, 27 Sep 2010 08:26:31 +0000</pubDate>			<dc:creator>Harald S. Fianbakken</dc:creator>
			<category domain="alt">.NET</category>
<category domain="alt">Software</category>
<category domain="main">Windows 2008 R2</category>			<guid isPermaLink="false">38@http://www.fianbakken.com/blogs/</guid>
						<description>I've experienced on several occations an annoying &quot;feature&quot; in Windows Server 2008 (R2). The CPU usage will be stuck on 100%. It might as well be related to the way VMWare ESXI is handling things, but the problem can be solved in windows.
&lt;p&gt;
I've only discovered this issue when running a 64-bit server with 16 GB ram (or more). The server will be stuck on 100% cpu load and continously increase memory usage (it seems like a memory bug to me..). It's all related to how windows uses paging and caching of the internal memory of windows. 
&lt;/p&gt;
&lt;p&gt;
Take a look at this post: &lt;a href=&quot;http://blogs.msdn.com/b/ntdebugging/archive/2009/02/06/microsoft-windows-dynamic-cache-service.aspx&quot;&gt;http://blogs.msdn.com/b/ntdebugging/archive/2009/02/06/microsoft-windows-dynamic-cache-service.aspx&lt;/a&gt;
and look at the Dynamic Cache Manager service (can be downloaded and installed from &lt;a href=&quot;http://www.microsoft.com/downloads/details.aspx?FamilyID=e24ade0a-5efe-43c8-b9c3-5d0ecb2f39af&quot;&gt;http://www.microsoft.com/downloads/details.aspx?FamilyID=e24ade0a-5efe-43c8-b9c3-5d0ecb2f39af&lt;/a&gt; )
&lt;/p&gt;
&lt;p&gt;
I've installed it on most server and after tweaking the params, the server load falls down to normal. Quite neat and a really annoying bug if you don't know where to look.
&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.fianbakken.com/blogs/index.php/main/?p=38&amp;amp;more=1&amp;amp;c=1&amp;amp;tb=1&amp;amp;pb=1&quot;&gt;Original post&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[I've experienced on several occations an annoying "feature" in Windows Server 2008 (R2). The CPU usage will be stuck on 100%. It might as well be related to the way VMWare ESXI is handling things, but the problem can be solved in windows.
<p>
I've only discovered this issue when running a 64-bit server with 16 GB ram (or more). The server will be stuck on 100% cpu load and continously increase memory usage (it seems like a memory bug to me..). It's all related to how windows uses paging and caching of the internal memory of windows. 
</p>
<p>
Take a look at this post: <a href="http://blogs.msdn.com/b/ntdebugging/archive/2009/02/06/microsoft-windows-dynamic-cache-service.aspx">http://blogs.msdn.com/b/ntdebugging/archive/2009/02/06/microsoft-windows-dynamic-cache-service.aspx</a>
and look at the Dynamic Cache Manager service (can be downloaded and installed from <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=e24ade0a-5efe-43c8-b9c3-5d0ecb2f39af">http://www.microsoft.com/downloads/details.aspx?FamilyID=e24ade0a-5efe-43c8-b9c3-5d0ecb2f39af</a> )
</p>
<p>
I've installed it on most server and after tweaking the params, the server load falls down to normal. Quite neat and a really annoying bug if you don't know where to look.
</p><div class="item_footer"><p><small><a href="http://www.fianbakken.com/blogs/index.php/main/?p=38&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">Original post</a></small></p></div>]]></content:encoded>
								<comments>http://www.fianbakken.com/blogs/index.php/main/?p=38&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1#comments</comments>
			<wfw:commentRss>http://www.fianbakken.com/blogs/index.php/main/?tempskin=_rss2&#38;disp=comments&#38;p=38</wfw:commentRss>
		</item>
				<item>
			<title>Powershell tricks - BCS - List External content types (LOB Systems)</title>
			<link>http://www.fianbakken.com/blogs/index.php/main/?p=37&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			<pubDate>Sat, 14 Aug 2010 21:33:43 +0000</pubDate>			<dc:creator>Harald S. Fianbakken</dc:creator>
			<category domain="alt">Development</category>
<category domain="alt">Sharepoint</category>
<category domain="main">Powershell</category>			<guid isPermaLink="false">37@http://www.fianbakken.com/blogs/</guid>
						<description>&lt;p&gt;I spent a few hours figuring this out,  hope it's useful for someone:)&lt;/p&gt;
&lt;p&gt;From Powershell list the external content types (ECTS) / LOB (Line of Business) from the BCS/BDC (catalog meta data) service.&lt;/p&gt;
&lt;p&gt;This is useful if you're scripting e.g. like we are adding of content-sources using the BDC models created.  Here it is:&lt;/p&gt;
&lt;blockquote&gt;$ctx = &quot;http://localhost&quot;&lt;br /&gt;
# Get the BDC context&lt;br /&gt;
$bdc = Get-SPBusinessDataCatalogMetaDataObject -BdcObjectType Catalog -ServiceContext $ctx&lt;br /&gt;
# Get the list of all LOB systems&lt;br /&gt;
$lobs = $bdc.GetLobSystems(&quot;*&quot;)&lt;br /&gt;
Foreach($lob in $lobs){&lt;br /&gt;
$lobId = $lob.Id&lt;br /&gt; $lobName = $lob.Name 	&lt;br /&gt; $lobDisplayName = $lob.DefaultDisplayName&lt;br /&gt; $lobEntities = $lob.Entities 	&lt;br /&gt; $lobSystemInstance = $lob.SystemInstances 	&lt;br /&gt; Write-Host $lob.DefaultDisplayName &lt;br /&gt;}&lt;/blockquote&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.fianbakken.com/blogs/index.php/main/?p=37&amp;amp;more=1&amp;amp;c=1&amp;amp;tb=1&amp;amp;pb=1&quot;&gt;Original post&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>I spent a few hours figuring this out,  hope it's useful for someone:)</p>
<p>From Powershell list the external content types (ECTS) / LOB (Line of Business) from the BCS/BDC (catalog meta data) service.</p>
<p>This is useful if you're scripting e.g. like we are adding of content-sources using the BDC models created.  Here it is:</p>
<blockquote>$ctx = "http://localhost"<br />
# Get the BDC context<br />
$bdc = Get-SPBusinessDataCatalogMetaDataObject -BdcObjectType Catalog -ServiceContext $ctx<br />
# Get the list of all LOB systems<br />
$lobs = $bdc.GetLobSystems("*")<br />
Foreach($lob in $lobs){<br />
$lobId = $lob.Id<br /> $lobName = $lob.Name 	<br /> $lobDisplayName = $lob.DefaultDisplayName<br /> $lobEntities = $lob.Entities 	<br /> $lobSystemInstance = $lob.SystemInstances 	<br /> Write-Host $lob.DefaultDisplayName <br />}</blockquote><div class="item_footer"><p><small><a href="http://www.fianbakken.com/blogs/index.php/main/?p=37&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">Original post</a></small></p></div>]]></content:encoded>
								<comments>http://www.fianbakken.com/blogs/index.php/main/?p=37&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1#comments</comments>
			<wfw:commentRss>http://www.fianbakken.com/blogs/index.php/main/?tempskin=_rss2&#38;disp=comments&#38;p=37</wfw:commentRss>
		</item>
				<item>
			<title>External Content Types - BDC</title>
			<link>http://www.fianbakken.com/blogs/index.php/main/?p=36&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			<pubDate>Wed, 11 Aug 2010 21:13:01 +0000</pubDate>			<dc:creator>Harald S. Fianbakken</dc:creator>
			<category domain="main">Development</category>			<guid isPermaLink="false">36@http://www.fianbakken.com/blogs/</guid>
						<description>&lt;p&gt;We've created an ECT (External Content Type) for our Fast Search Crawler to process. This worked all well. After playing around with it and doing various refactoring, when used in an external list, sharepoint throws the following error:&lt;/p&gt;
&lt;p&gt;&quot;Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator. Correlation ID: e5f9698d-23e3-4926-9fdd-63f17073f3ec.&quot;&lt;/p&gt;
&lt;p&gt;After spending a couple of hours trying to figure out what went wrong (Cause no logging showed anything useful), it turns out that the ECT field and properties is still stuck for the old version. I tried deleting the old versions before redeploying. No luck, the old fields where still there.&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;a href=&quot;/blogs/media/blogs/main/images/screen-1.png&quot;&gt;&lt;img src=&quot;/blogs/media/blogs/main/images/screen-1.png&quot; alt=&quot;&quot; width=&quot;500&quot; height=&quot;127&quot; /&gt;&lt;/a&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;Finally, we figured out what to do: It looks like the ECT is stuck in the Application Service Proxy aswell, and when redeployed / removed, this is not updated. Solution: Log in to Central Admin - Goto BDC application proxy, remove the ECTS and redeploy !:D Voila! You would have to recreate the external lists though. But it works.&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;a href=&quot;/blogs/media/blogs/main/images/screen-2.png&quot;&gt;&lt;img src=&quot;/blogs/media/blogs/main/images/screen-2.png&quot; alt=&quot;&quot; width=&quot;500&quot; height=&quot;127&quot; /&gt;&lt;/a&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.fianbakken.com/blogs/index.php/main/?p=36&amp;amp;more=1&amp;amp;c=1&amp;amp;tb=1&amp;amp;pb=1&quot;&gt;Original post&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>We've created an ECT (External Content Type) for our Fast Search Crawler to process. This worked all well. After playing around with it and doing various refactoring, when used in an external list, sharepoint throws the following error:</p>
<p>"Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator. Correlation ID: e5f9698d-23e3-4926-9fdd-63f17073f3ec."</p>
<p>After spending a couple of hours trying to figure out what went wrong (Cause no logging showed anything useful), it turns out that the ECT field and properties is still stuck for the old version. I tried deleting the old versions before redeploying. No luck, the old fields where still there.</p>
<p>&#160;</p>
<a href="http://www.fianbakken.com/blogs/media/blogs/main/images/screen-1.png"><img src="http://www.fianbakken.com/blogs/media/blogs/main/images/screen-1.png" alt="" width="500" height="127" /></a>
<p>&#160;</p>
<p>Finally, we figured out what to do: It looks like the ECT is stuck in the Application Service Proxy aswell, and when redeployed / removed, this is not updated. Solution: Log in to Central Admin - Goto BDC application proxy, remove the ECTS and redeploy !:D Voila! You would have to recreate the external lists though. But it works.</p>
<p>&#160;</p>
<a href="http://www.fianbakken.com/blogs/media/blogs/main/images/screen-2.png"><img src="http://www.fianbakken.com/blogs/media/blogs/main/images/screen-2.png" alt="" width="500" height="127" /></a>
<p>&#160;</p><div class="item_footer"><p><small><a href="http://www.fianbakken.com/blogs/index.php/main/?p=36&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">Original post</a></small></p></div>]]></content:encoded>
								<comments>http://www.fianbakken.com/blogs/index.php/main/?p=36&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1#comments</comments>
			<wfw:commentRss>http://www.fianbakken.com/blogs/index.php/main/?tempskin=_rss2&#38;disp=comments&#38;p=36</wfw:commentRss>
		</item>
				<item>
			<title>Sharepoint 2010 - Powershell commands</title>
			<link>http://www.fianbakken.com/blogs/index.php/main/?p=35&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			<pubDate>Wed, 28 Jul 2010 12:34:12 +0000</pubDate>			<dc:creator>Harald S. Fianbakken</dc:creator>
			<category domain="main">Sharepoint</category>
<category domain="alt">SQL</category>			<guid isPermaLink="false">35@http://www.fianbakken.com/blogs/</guid>
						<description>&lt;p&gt;Ever tried to run powershell command on the server with another user (not the one sharepoint was installed with)?&lt;/p&gt;
&lt;p&gt;You might recognize an error like &quot;The local farm is not accessible. Cmdlets with FeatureDependecy are not registered&quot;.&lt;/p&gt;
&lt;p&gt;Luckily, it's fairly easy to solve this problem (Please don't do this on a production server, or minimize the access needed);&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Log onto your sql-server&lt;/li&gt;
&lt;li&gt;Goto security&lt;/li&gt;
&lt;li&gt;Add the user you're having trouble with&lt;/li&gt;
&lt;li&gt;Under &quot;user mapping&quot; ; select the Sharpoint_Config&lt;/li&gt;
&lt;li&gt;Add the Roles: db_owner and Sharepoint_Shell_Access&lt;/li&gt;
&lt;li&gt;Press OK. &lt;/li&gt;
&lt;li&gt;Re-open Powershell using the troublesome user and it should work! &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;/blogs/media/blogs/main/images/Sharepoint-config.png&quot;&gt;&lt;img src=&quot;/blogs/media/blogs/main/images/Sharepoint-config.png&quot; alt=&quot;&quot; width=&quot;352&quot; height=&quot;316&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.fianbakken.com/blogs/index.php/main/?p=35&amp;amp;more=1&amp;amp;c=1&amp;amp;tb=1&amp;amp;pb=1&quot;&gt;Original post&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>Ever tried to run powershell command on the server with another user (not the one sharepoint was installed with)?</p>
<p>You might recognize an error like "The local farm is not accessible. Cmdlets with FeatureDependecy are not registered".</p>
<p>Luckily, it's fairly easy to solve this problem (Please don't do this on a production server, or minimize the access needed);</p>
<ul>
<li>Log onto your sql-server</li>
<li>Goto security</li>
<li>Add the user you're having trouble with</li>
<li>Under "user mapping" ; select the Sharpoint_Config</li>
<li>Add the Roles: db_owner and Sharepoint_Shell_Access</li>
<li>Press OK. </li>
<li>Re-open Powershell using the troublesome user and it should work! </li>
</ul>
<p>&#160;</p>
<div class="image_block"><a href="http://www.fianbakken.com/blogs/media/blogs/main/images/Sharepoint-config.png"><img src="http://www.fianbakken.com/blogs/media/blogs/main/images/Sharepoint-config.png" alt="" width="352" height="316" /></a></div>
<p>&#160;</p><div class="item_footer"><p><small><a href="http://www.fianbakken.com/blogs/index.php/main/?p=35&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">Original post</a></small></p></div>]]></content:encoded>
								<comments>http://www.fianbakken.com/blogs/index.php/main/?p=35&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1#comments</comments>
			<wfw:commentRss>http://www.fianbakken.com/blogs/index.php/main/?tempskin=_rss2&#38;disp=comments&#38;p=35</wfw:commentRss>
		</item>
				<item>
			<title>Sharepoint 2010 - Solution deployment</title>
			<link>http://www.fianbakken.com/blogs/index.php/main/?p=34&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1</link>
			<pubDate>Tue, 27 Jul 2010 12:13:20 +0000</pubDate>			<dc:creator>Harald S. Fianbakken</dc:creator>
			<category domain="alt">Development</category>
<category domain="main">Sharepoint</category>
<category domain="alt">.NET</category>			<guid isPermaLink="false">34@http://www.fianbakken.com/blogs/</guid>
						<description>&lt;p&gt;OK.&lt;/p&gt;
&lt;p&gt;Here's the first version of the solution deployer. It consists of a powershell script (that must be run in order to be able to deploy solutions from the web), a webpart for deploying /updating/removing the solutions and some custom code doing all the work.&lt;/p&gt;
&lt;p&gt;I created a webpart listing all solutions (with a configurable path / dir to scan for solutions) with the different commands. Forgive me for the GUI, I couldn't care less for the GUI for this utility ;)&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;/blogs/media/blogs/main/images/Nyhetsvisning.png&quot;&gt;&lt;img src=&quot;/blogs/media/blogs/main/images/Nyhetsvisning.png&quot; alt=&quot;&quot; width=&quot;427&quot; height=&quot;203&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: When the deploy / Remove is clicked a job is created which will start the deploy / removal job ASAP. This will do a IISReset making the site unavailable for a while.&lt;/p&gt;
&lt;p&gt;This code comes with no warranty, nor have the update method been tested extensively. There will be improvements to the code and the webpart will be made more configurable (e.g removing hardcoded paths etc.).&lt;/p&gt;
&lt;p&gt;This can easily be automated by making visual studio build the solutions to a remotely shared folder on the server, then the webpart will pick up the WSP-files and the developers can then update them from the interface itself.&lt;/p&gt;
&lt;p&gt;The files are attached to this post.&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://www.fianbakken.com/blogs/index.php/main/?p=34&amp;amp;more=1&amp;amp;c=1&amp;amp;tb=1&amp;amp;pb=1&quot;&gt;Original post&lt;/a&gt;&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>OK.</p>
<p>Here's the first version of the solution deployer. It consists of a powershell script (that must be run in order to be able to deploy solutions from the web), a webpart for deploying /updating/removing the solutions and some custom code doing all the work.</p>
<p>I created a webpart listing all solutions (with a configurable path / dir to scan for solutions) with the different commands. Forgive me for the GUI, I couldn't care less for the GUI for this utility ;)</p>
<p>&#160;</p>
<div class="image_block"><a href="http://www.fianbakken.com/blogs/media/blogs/main/images/Nyhetsvisning.png"><img src="http://www.fianbakken.com/blogs/media/blogs/main/images/Nyhetsvisning.png" alt="" width="427" height="203" /></a></div>
<p>&#160;</p>
<p><strong>Note</strong>: When the deploy / Remove is clicked a job is created which will start the deploy / removal job ASAP. This will do a IISReset making the site unavailable for a while.</p>
<p>This code comes with no warranty, nor have the update method been tested extensively. There will be improvements to the code and the webpart will be made more configurable (e.g removing hardcoded paths etc.).</p>
<p>This can easily be automated by making visual studio build the solutions to a remotely shared folder on the server, then the webpart will pick up the WSP-files and the developers can then update them from the interface itself.</p>
<p>The files are attached to this post.</p><div class="item_footer"><p><small><a href="http://www.fianbakken.com/blogs/index.php/main/?p=34&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1">Original post</a></small></p></div>]]></content:encoded>
								<comments>http://www.fianbakken.com/blogs/index.php/main/?p=34&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1#comments</comments>
			<wfw:commentRss>http://www.fianbakken.com/blogs/index.php/main/?tempskin=_rss2&#38;disp=comments&#38;p=34</wfw:commentRss>
		</item>
			</channel>
</rss>

