<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.inetium.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Kirk Hofer - All Comments</title><link>http://blogs.inetium.com/blogs/khofer/default.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2008 (Build: 30417.1769)</generator><item><title>re: FIX: Can't Move/Copy an SPListItem</title><link>http://blogs.inetium.com/blogs/khofer/archive/2008/03/16/fix-can-t-move-copy-an-splistitem.aspx#18409</link><pubDate>Fri, 03 Oct 2008 02:48:17 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:18409</guid><dc:creator>Sivaram</dc:creator><description>&lt;p&gt;The MoveTo command is not working between two identical list&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SPFile fileitem = webApplication.Sites[0].RootWeb.GetFile(itemsp.Url);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;string strDestinationPath= webApplication.Sites[0].RootWeb.Url + &amp;quot;/&amp;quot; + &amp;quot;Lists&amp;quot;+ &amp;quot;/&amp;quot; + &amp;quot;ReferralBackup&amp;quot; + &amp;quot;/&amp;quot; + itemsp.ID + &amp;quot;_.000&amp;quot;;&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;fileitem.MoveTo(strDestinationPath);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;itemsp.Update();&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=18409" width="1" height="1"&gt;</description></item><item><title>[Sharepoint] Outils de pr&amp;eacute;chauffe - ..::LoLoFx::..</title><link>http://blogs.inetium.com/blogs/khofer/archive/2007/11/13/simple-sharepoint-warm-up-script.aspx#18375</link><pubDate>Thu, 25 Sep 2008 09:03:26 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:18375</guid><dc:creator>[Sharepoint] Outils de préchauffe - ..::LoLoFx::..</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;[Sharepoint] Outils de pr&amp;eacute;chauffe - ..::LoLoFx::..&lt;/p&gt;
&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=18375" width="1" height="1"&gt;</description></item><item><title>Warm Up Your Demo Servers</title><link>http://blogs.inetium.com/blogs/khofer/archive/2007/11/13/simple-sharepoint-warm-up-script.aspx#18351</link><pubDate>Thu, 18 Sep 2008 14:37:39 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:18351</guid><dc:creator>The Bamboo Team Blog</dc:creator><description>&lt;p&gt;Ok, you&amp;#39;ve got a demo to do in a few minutes and you&amp;#39;ve just booted up your demo server. You&lt;/p&gt;
&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=18351" width="1" height="1"&gt;</description></item><item><title>Warm Up Your Demo Servers</title><link>http://blogs.inetium.com/blogs/khofer/archive/2007/11/13/simple-sharepoint-warm-up-script.aspx#18350</link><pubDate>Thu, 18 Sep 2008 12:58:08 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:18350</guid><dc:creator>The Bamboo Team Blog</dc:creator><description>&lt;p&gt;Ok, you&amp;#39;ve got a demo to do in a few minutes and you&amp;#39;ve just booted up your demo server. You&lt;/p&gt;
&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=18350" width="1" height="1"&gt;</description></item><item><title>re: FIX: Can't Move/Copy an SPListItem</title><link>http://blogs.inetium.com/blogs/khofer/archive/2008/03/16/fix-can-t-move-copy-an-splistitem.aspx#18226</link><pubDate>Tue, 02 Sep 2008 12:45:24 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:18226</guid><dc:creator>John P</dc:creator><description>&lt;p&gt;As a note, to make this scalable you should follow the procedure below. &amp;nbsp;I have only seen this work within the context of the same list, but you might be able to get it working with two identically configured lists. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;SPFile file = currentWeb.GetFile(itemToMove.Url);&lt;/p&gt;
&lt;p&gt;file.MoveTo(newLocationUrl + &amp;quot;/&amp;quot; + itemToMove.ID.ToString() + &amp;quot;_.000&amp;quot;);&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;itemToMove.Update();&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=18226" width="1" height="1"&gt;</description></item><item><title>Roland Serman  &amp;raquo; Blog Archive   &amp;raquo; SharePoint Powershell Warm Up Script</title><link>http://blogs.inetium.com/blogs/khofer/archive/2007/11/13/simple-sharepoint-warm-up-script.aspx#18202</link><pubDate>Wed, 27 Aug 2008 16:04:02 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:18202</guid><dc:creator>Roland Serman  » Blog Archive   » SharePoint Powershell Warm Up Script</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;Roland Serman &amp;nbsp;&amp;raquo; Blog Archive &amp;nbsp; &amp;raquo; SharePoint Powershell Warm Up Script&lt;/p&gt;
&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=18202" width="1" height="1"&gt;</description></item><item><title>SharePoint Powershell Warm Up Script &amp;laquo; Roland Serman&amp;#8217;s Weblog</title><link>http://blogs.inetium.com/blogs/khofer/archive/2007/11/13/simple-sharepoint-warm-up-script.aspx#18201</link><pubDate>Wed, 27 Aug 2008 16:03:52 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:18201</guid><dc:creator>SharePoint Powershell Warm Up Script « Roland Serman’s Weblog</dc:creator><description>&lt;p&gt;Pingback from &amp;nbsp;SharePoint Powershell Warm Up Script &amp;laquo; Roland Serman&amp;#8217;s Weblog&lt;/p&gt;
&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=18201" width="1" height="1"&gt;</description></item><item><title>re: Simple SharePoint Warm Up Script</title><link>http://blogs.inetium.com/blogs/khofer/archive/2007/11/13/simple-sharepoint-warm-up-script.aspx#18200</link><pubDate>Wed, 27 Aug 2008 00:52:17 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:18200</guid><dc:creator>khofer</dc:creator><description>&lt;p&gt;Roland,&lt;/p&gt;
&lt;p&gt;You could definitely do this with backup as well. &amp;nbsp;I haven&amp;#39;t tried it but it would work for sure. &amp;nbsp;Instead of the call to get the web page, you could easily switch to use stsadm and backup.&lt;/p&gt;
&lt;p&gt;Kirk&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=18200" width="1" height="1"&gt;</description></item><item><title>re: Simple SharePoint Warm Up Script</title><link>http://blogs.inetium.com/blogs/khofer/archive/2007/11/13/simple-sharepoint-warm-up-script.aspx#18199</link><pubDate>Wed, 27 Aug 2008 00:49:38 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:18199</guid><dc:creator>khofer</dc:creator><description>&lt;p&gt;A, it should warm up the site collection. &amp;nbsp;That is the main thing. &amp;nbsp;Sort of like how thoe welcome page works it will still hit the root and warm it up&lt;/p&gt;
&lt;p&gt;Kirk&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=18199" width="1" height="1"&gt;</description></item><item><title>re: Simple SharePoint Warm Up Script</title><link>http://blogs.inetium.com/blogs/khofer/archive/2007/11/13/simple-sharepoint-warm-up-script.aspx#18196</link><pubDate>Mon, 25 Aug 2008 17:58:15 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:18196</guid><dc:creator>Roland</dc:creator><description>&lt;p&gt;Love the script, been trying to figure out how to do this for some time, but haven&amp;#39;t really had the time to play with PowerShell as much as I would&amp;#39;ve liked.&lt;/p&gt;
&lt;p&gt;Quick question, how would you go about enuming all the sites and then doing an stsadm backup of each site collection?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=18196" width="1" height="1"&gt;</description></item><item><title>re: FIX: Can't Move/Copy an SPListItem</title><link>http://blogs.inetium.com/blogs/khofer/archive/2008/03/16/fix-can-t-move-copy-an-splistitem.aspx#17994</link><pubDate>Thu, 24 Jul 2008 18:57:06 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:17994</guid><dc:creator>Discovia</dc:creator><description>&lt;p&gt;This sould come with a warning. &amp;nbsp;My items disappeared too. &amp;nbsp;Although they show up in the item count of the list; they are no longer visable.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=17994" width="1" height="1"&gt;</description></item><item><title>re: Simple SharePoint Warm Up Script</title><link>http://blogs.inetium.com/blogs/khofer/archive/2007/11/13/simple-sharepoint-warm-up-script.aspx#17948</link><pubDate>Wed, 02 Jul 2008 19:04:12 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:17948</guid><dc:creator>Andrea</dc:creator><description>&lt;p&gt;Hi there,&lt;/p&gt;
&lt;p&gt;I was trying to use your script but it doesn&amp;#39;t seem to actually &amp;quot;warm up&amp;quot; my pages. My site is content.domain.com/pages/default.aspx. When I run your script the write-host only lists content.domain.com. Is it actually warming up the pages/default.aspx part or do I need to add that somehow?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;A&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=17948" width="1" height="1"&gt;</description></item><item><title>re: FIX: Can't Move/Copy an SPListItem</title><link>http://blogs.inetium.com/blogs/khofer/archive/2008/03/16/fix-can-t-move-copy-an-splistitem.aspx#17342</link><pubDate>Thu, 08 May 2008 02:03:00 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:17342</guid><dc:creator>Kirk</dc:creator><description>&lt;p&gt;Sorry for the late responses on some of these (sorry Matt...site just told me I had comments). &amp;nbsp;This was only tested on the SAME list. &amp;nbsp;Haven&amp;#39;t tried the CopyTo() with the SPFile. &amp;nbsp;Is it the same Site Collection or different? &amp;nbsp;In the first code bit Ajay, you mentioned CopyTo(), did you try MoveTo() first? &amp;nbsp;I know the move has some issues across SCs.&lt;/p&gt;
&lt;p&gt;Kirk&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=17342" width="1" height="1"&gt;</description></item><item><title>re: FIX: Can't Move/Copy an SPListItem</title><link>http://blogs.inetium.com/blogs/khofer/archive/2008/03/16/fix-can-t-move-copy-an-splistitem.aspx#17340</link><pubDate>Thu, 08 May 2008 01:37:17 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:17340</guid><dc:creator>Ajay</dc:creator><description>&lt;p&gt;Hi Kirk,&lt;/p&gt;
&lt;p&gt;When I do the moveto.. the item moves from the list but is not visible in the new list.&lt;/p&gt;
&lt;p&gt;If I copy the same item in the list and do moveto again, then I get the error message that item already exists.. &lt;/p&gt;
&lt;p&gt;Can you please tell why is this happening.&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;p&gt;Ajay&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=17340" width="1" height="1"&gt;</description></item><item><title>re: FIX: Can't Move/Copy an SPListItem</title><link>http://blogs.inetium.com/blogs/khofer/archive/2008/03/16/fix-can-t-move-copy-an-splistitem.aspx#17283</link><pubDate>Tue, 06 May 2008 03:16:09 GMT</pubDate><guid isPermaLink="false">7346ef18-9fb1-4a4e-be41-9add5078176c:17283</guid><dc:creator>Ajay</dc:creator><description>&lt;p&gt;Hey Mate,&lt;/p&gt;
&lt;p&gt;I am using your code,, but cannot see the item in the new list.&lt;/p&gt;
&lt;p&gt;It moves from the original list but does not appear in the list where it is moved to.&lt;/p&gt;
&lt;p&gt;Though if I try to move again without setting overwrite == true overwrite it complains.. that item exits.&lt;/p&gt;
&lt;p&gt;Can you please let me know if it appears in the new list.&lt;/p&gt;
&lt;p&gt;My code is &lt;/p&gt;
&lt;p&gt; foreach (SPListItem item in items)&lt;/p&gt;
&lt;p&gt;{&lt;/p&gt;
&lt;p&gt;SPFile f = site.GetFile(item.Url);&lt;/p&gt;
&lt;p&gt;string url = myUrl + &amp;quot;/Lists/&amp;quot; + toDocumentLibrary.Title + &amp;quot;/&amp;quot; + f.Name;&lt;/p&gt;
&lt;p&gt; f.CopyTo(url);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;//f.CopyTo(url,true);&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.inetium.com/aggbug.aspx?PostID=17283" width="1" height="1"&gt;</description></item></channel></rss>