Congratulations!

[Valid RSS] This is a valid RSS feed.

Recommendations

This feed is valid, but interoperability with the widest range of feed readers could be improved by implementing the following recommendations.

Source: http://khurrampunjwani.wordpress.com/feed/

  1. <?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
  2. xmlns:content="http://purl.org/rss/1.0/modules/content/"
  3. xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  4. xmlns:dc="http://purl.org/dc/elements/1.1/"
  5. xmlns:atom="http://www.w3.org/2005/Atom"
  6. xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
  7. xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  8. 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/"
  9. >
  10.  
  11. <channel>
  12. <title>Azure, .NET, DevSecOps &#38; SharePoint Insights and Guides.</title>
  13. <atom:link href="https://khurrampunjwani.wordpress.com/feed/" rel="self" type="application/rss+xml" />
  14. <link>https://khurrampunjwani.wordpress.com</link>
  15. <description></description>
  16. <lastBuildDate>Mon, 05 Jul 2021 13:16:47 +0000</lastBuildDate>
  17. <language>en</language>
  18. <sy:updatePeriod>
  19. hourly </sy:updatePeriod>
  20. <sy:updateFrequency>
  21. 1 </sy:updateFrequency>
  22. <generator>http://wordpress.com/</generator>
  23. <cloud domain='khurrampunjwani.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
  24. <image>
  25. <url>https://secure.gravatar.com/blavatar/9d90537c5cdd72a454e2804d25b243c7aa23976fa3fb8aecf2b368ea6e0fbeed?s=96&#038;d=https%3A%2F%2Fs0.wp.com%2Fi%2Fbuttonw-com.png</url>
  26. <title>Azure, .NET, DevSecOps &#038; SharePoint Insights and Guides.</title>
  27. <link>https://khurrampunjwani.wordpress.com</link>
  28. </image>
  29. <atom:link rel="search" type="application/opensearchdescription+xml" href="https://khurrampunjwani.wordpress.com/osd.xml" title="Azure, .NET, DevSecOps &#38; SharePoint Insights and Guides." />
  30. <atom:link rel='hub' href='https://khurrampunjwani.wordpress.com/?pushpress=hub'/>
  31. <item>
  32. <title>Easily migrate your MSTest2 project to XUnit.</title>
  33. <link>https://khurrampunjwani.wordpress.com/2021/06/24/easily-migrate-your-mstest2-project-to-xunit/</link>
  34. <comments>https://khurrampunjwani.wordpress.com/2021/06/24/easily-migrate-your-mstest2-project-to-xunit/#respond</comments>
  35. <dc:creator><![CDATA[Khurram Punjwani]]></dc:creator>
  36. <pubDate>Thu, 24 Jun 2021 03:40:32 +0000</pubDate>
  37. <category><![CDATA[.NET]]></category>
  38. <category><![CDATA[CodeProject]]></category>
  39. <category><![CDATA[.NET Core]]></category>
  40. <category><![CDATA[Dotnet]]></category>
  41. <category><![CDATA[MSTest]]></category>
  42. <category><![CDATA[Unit Testing]]></category>
  43. <category><![CDATA[Visual Studio]]></category>
  44. <category><![CDATA[VS2019]]></category>
  45. <category><![CDATA[XUnit]]></category>
  46. <guid isPermaLink="false">http://khurrampunjwani.wordpress.com/?p=452</guid>
  47.  
  48. <description><![CDATA[Open your MSTest2 project using Visual Studio and follow the steps below for migration. 1. Install the XUnit NuGet package. 2. Remove the following MSTest2 packages below. MSTest.TestAdapter MSTest.TestFramework 3. Open Replace in Files windows by clicking on the Edit Menu and then Replace in Files option. 4. Change Look in from Entire solution to&#8230;]]></description>
  49. <content:encoded><![CDATA[
  50. <p class="has-black-color has-text-color">Open your MSTest2 project using Visual Studio and follow the steps below for migration.</p>
  51.  
  52.  
  53.  
  54. <p class="has-black-color has-text-color">1. Install the XUnit NuGet package.</p>
  55.  
  56.  
  57.  
  58. <p class="has-black-color has-text-color">2. Remove the following MSTest2 packages below.</p>
  59.  
  60.  
  61.  
  62. <p class="has-black-color has-text-color">MSTest.TestAdapter</p>
  63.  
  64.  
  65.  
  66. <p class="has-black-color has-text-color">MSTest.TestFramework</p>
  67.  
  68.  
  69.  
  70. <p class="has-black-color has-text-color">3. Open Replace in Files windows by clicking on the Edit Menu and then Replace in Files option.</p>
  71.  
  72.  
  73.  
  74. <p class="has-black-color has-text-color">4. Change Look in from Entire solution to Current project to replace MSTest2 namespaces and attributes with XUnit.</p>
  75.  
  76.  
  77.  
  78. <figure class="wp-block-image size-large"><a href="https://khurrampunjwani.files.wordpress.com/2021/06/image-2.png"><img width="694" height="657" data-attachment-id="463" data-permalink="https://khurrampunjwani.wordpress.com/image-2/" data-orig-file="https://khurrampunjwani.files.wordpress.com/2021/06/image-2.png" data-orig-size="694,657" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}" data-image-title="image-2" data-image-description="" data-image-caption="" data-medium-file="https://khurrampunjwani.files.wordpress.com/2021/06/image-2.png?w=300" data-large-file="https://khurrampunjwani.files.wordpress.com/2021/06/image-2.png?w=694" src="https://khurrampunjwani.files.wordpress.com/2021/06/image-2.png?w=694" alt="" class="wp-image-463" srcset="https://khurrampunjwani.files.wordpress.com/2021/06/image-2.png 694w, https://khurrampunjwani.files.wordpress.com/2021/06/image-2.png?w=150 150w, https://khurrampunjwani.files.wordpress.com/2021/06/image-2.png?w=300 300w" sizes="(max-width: 694px) 100vw, 694px" /></a></figure>
  79.  
  80.  
  81.  
  82. <p class="has-black-color has-text-color">5. Replace the following one by one.</p>
  83.  
  84.  
  85.  
  86. <ol type="1" class="has-black-color has-text-color"><li>Microsoft.VisualStudio.TestTools.UnitTesting with Xunit</li><li>[TestClass] with empty</li><li>[TestMethod] with [Fact]</li><li>Assert.Are with Assert.</li><li>Assert.Is with Assert.</li></ol>
  87.  
  88.  
  89.  
  90. <p class="has-black-color has-text-color">That&#8217;s it. You can build the project and run all the tests to verify the migration.</p>
  91.  
  92.  
  93.  
  94. <p></p>
  95. ]]></content:encoded>
  96. <wfw:commentRss>https://khurrampunjwani.wordpress.com/2021/06/24/easily-migrate-your-mstest2-project-to-xunit/feed/</wfw:commentRss>
  97. <slash:comments>0</slash:comments>
  98. <media:content url="https://0.gravatar.com/avatar/c7a7e744a5cfe76fce00cc315923884a1f2f4f970b879bb9ad69a4b7f894db24?s=96&#38;d=&#38;r=G" medium="image">
  99. <media:title type="html">khurrampunjwani</media:title>
  100. </media:content>
  101.  
  102. <media:content url="https://khurrampunjwani.files.wordpress.com/2021/06/image-2.png?w=694" medium="image" />
  103. </item>
  104. <item>
  105. <title>Reusing Css styles in Nintex Workflow notification emails</title>
  106. <link>https://khurrampunjwani.wordpress.com/2016/01/27/reusing-css-styles-in-nintex-workflow-notification-emails/</link>
  107. <comments>https://khurrampunjwani.wordpress.com/2016/01/27/reusing-css-styles-in-nintex-workflow-notification-emails/#comments</comments>
  108. <dc:creator><![CDATA[Khurram Punjwani]]></dc:creator>
  109. <pubDate>Wed, 27 Jan 2016 03:30:13 +0000</pubDate>
  110. <category><![CDATA[Nintex]]></category>
  111. <category><![CDATA[SharePoint]]></category>
  112. <category><![CDATA[SharePoint 2013]]></category>
  113. <category><![CDATA[Nintex Workflows]]></category>
  114. <guid isPermaLink="false">http://khurrampunjwani.wordpress.com/?p=438</guid>
  115.  
  116. <description><![CDATA[Workflows can have a lot of notifications and customizing and reformatting them individually can take a bit of time, perhaps a better way would be to apply css styles somewhere in a single css file and reuse it through out. Nintex Workflow uses a css file containing default styles which it embeds within emails. We&#8230;]]></description>
  117. <content:encoded><![CDATA[<p>Workflows can have a lot of notifications and customizing and reformatting them individually can take a bit of time, perhaps a better way would be to apply css styles somewhere in a single css file and reuse it through out.</p>
  118. <p>Nintex Workflow uses a css file containing default styles which it embeds within emails. We can easily create a copy it with our custom styles and this way we can avoid changing css for every single notification and also if we want to apply a simple change to all notification emails, it can be simply be applied to this single file.</p>
  119. <p>To do this, let&#8217;s first download the default css file. Please go to <strong>Central Administration</strong>, <strong>Nintex Workflow Management </strong>and then <strong>Global Settings</strong>, you will see a link to css file</p>
  120. <p><img src="https://khurrampunjwani.files.wordpress.com/2016/01/012616_0637_reusingcsss11.png" alt="" /></p>
  121. <p>Paste this url in the browser to download this css, it would be something like <em><a href="http://SharePointServer:Port/_layouts/15/NintexWorkflow/HtmlEditorStyles.css">http://SharePointServer:Port/_layouts/15/NintexWorkflow/HtmlEditorStyles.css</a><br />
  122. </em></p>
  123. <p>Let&#8217;s rename this file to avoid overwriting the default and edit it.</p>
  124. <p>Now to publish changes upload the new file to anywhere in layouts folder, change the link above and save it.</p>
  125. <p>There a quite a few style rules in this css, Be mindful of the comments above which states that each style rule must be followed by a { on the next line and end with a } on its own line for the parser to function correctly</p>
  126. <p>All have the styles have some meta data information embedded with &#8220;–ms-&#8221; prefix and this is how email editor maps styles. For example at the top there are styles for colors with –ms-color prefix and some colors, if we take the first one, -ms-color says &#8220;Dark Red&#8221; and now we see it in email editor there is a Dark Red color as well, now we change color attribute value here we can use this in the editor, we can even change names so it is easier to find.</p>
  127. <pre class="brush: css; title: ; notranslate">
  128. .ntx-rteForeColor-1
  129. {
  130.  color: darkred;
  131.  -ms-name: &quot;&quot;;
  132.  -ms-color:&quot;Dark Red&quot;;
  133. }
  134. </pre>
  135. <p><img src="https://khurrampunjwani.files.wordpress.com/2016/01/012616_0637_reusingcsss21.png" alt="" /></p>
  136. <p>Likewise there are styles for Fonts, Headings and others. To change default font and styles in body, we can make changes in following rule</p>
  137. <pre class="brush: css; title: ; notranslate">
  138. .ntx-rte-messageBody
  139. {
  140.  font-family: Calibri, Verdana, Arial, Sans-Serif;
  141.  font-size: 11pt;
  142.  color: Black;
  143. }
  144. </pre>
  145. <p>One of the most frequently used one would be changing styles for tables. Default styles are listed in design tab in ribbon upon selecting a table and we can customize one these styles.</p>
  146. <p><img src="https://khurrampunjwani.files.wordpress.com/2016/01/012616_0637_reusingcsss31.png" alt="" /></p>
  147. <p>In the CSS file these styles are named with –ms-name attribute, try searching for &#8220;Table Style 2 &#8211; Medium&#8221; and then you can which style is being used. Following are rules being applied to this table design</p>
  148. <pre class="brush: css; title: ; notranslate">
  149. .ntx-rteTable-1
  150. {
  151.  -ms-name:&quot;Table Style 2 - Medium&quot;;
  152.  border-width: 0px;
  153.  border-style: none;
  154.  border-collapse: collapse;
  155.  font-family: Tahoma;
  156. }
  157.  
  158. .ntx-rteTable-1 tr.ntx-rteTableHeaderRow-1
  159. {
  160.  margin: 10px;
  161.  padding: 10px;
  162.  color: #3F4D6B;
  163.  background: #D6E8FF;
  164.  text-align: left;
  165.  font-size: 10pt;
  166.  font-style: normal;
  167.  font-family: Tahoma;
  168.  text-transform: capitalize;
  169.  font-weight: bold;
  170.  border-spacing: 10px;
  171.  line-height: 14pt;
  172.  vertical-align: top;
  173. }
  174.  
  175. .ntx-rteTable-1 td.ntx-rteTableHeaderFirstCol-1
  176. {
  177.  padding: 0in 5.4pt 0in 5.4pt;
  178.  color: #3a4663;
  179.  line-height: 14pt;
  180. }
  181.  
  182. .ntx-rteTable-1 td.ntx-rteTableHeaderLastCol-1
  183. {
  184.  padding: 0in 5.4pt 0in 5.4pt;
  185.  color: #3a4663;
  186.  line-height: 14pt;
  187. }
  188.  
  189. .ntx-rteTable-1 td.ntx-rteTableHeaderOddCol-1
  190. {
  191.  padding:0in 5.4pt 0in 5.4pt;
  192.  color: #3a4663;
  193.  line-height: 14pt;
  194. }
  195.  
  196. .ntx-rteTable-1 td.ntx-rteTableHeaderEvenCol-1
  197. {
  198.  padding:0in 5.4pt 0in 5.4pt; color: #3a4663;
  199.  line-height: 14pt;
  200. }
  201.  
  202. .ntx-rteTable-1 tr.ntx-rteTableOddRow-1
  203. {
  204.  color: #666666;
  205.  background-color: #F2F3F4;
  206.  font-size: 10pt;
  207.  vertical-align: top;
  208. }
  209.  
  210. .ntx-rteTable-1 tr.ntx-rteTableEvenRow-1
  211. {
  212.  color: #666666;
  213.  background-color: #E7EBF7;
  214.  font-size: 10pt;
  215.  vertical-align: top;
  216. }
  217.  
  218. .ntx-rteTable-1 td.ntx-rteTableFirstCol-1
  219. {
  220.  padding: 0in 5.4pt 0in 5.4pt;
  221. }
  222.  
  223. .ntx-rteTable-1 td.ntx-rteTableLastCol-1
  224. {
  225.  padding:0in 5.4pt 0in 5.4pt;
  226. }
  227.  
  228. .ntx-rteTable-1 td.ntx-rteTableOddCol-1
  229. {
  230.  padding: 0in 5.4pt 0in 5.4pt;
  231. }
  232.  
  233. .ntx-rteTable-1 td.ntx-rteTableEvenCol-1
  234. {
  235.  padding:0in 5.4pt 0in 5.4pt;
  236. }
  237.  
  238. .ntx-rteTable-1 tr.ntx-rteTableFooterRow-1
  239. {
  240.  background-color: #D6E8FF;
  241.  color: #4A5A80;
  242.  font-weight: 500;
  243.  font-size: 10pt;
  244.  font-family: Tahoma;
  245.  line-height: 11pt;
  246. }
  247.  
  248. .ntx-rteTable-1 td.ntx-rteTableFooterFirstCol-1
  249. {
  250.  padding: 0in 5.4pt 0in 5.4pt;
  251.  border-top: solid gray 1.0pt;
  252.  text-align: left;
  253. }
  254.  
  255. .ntx-rteTable-1 td.ntx-rteTableFooterLastCol-1
  256. {
  257.  padding:0in 5.4pt 0in 5.4pt;
  258.  border-top:solid gray 1.0pt;
  259.  text-align:left;
  260. }
  261.  
  262. .ntx-rteTable-1 td.ntx-rteTableFooterOddCol-1
  263. {
  264.  padding: 0in 5.4pt 0in 5.4pt;
  265.  text-align: left;
  266.  border-top: solid gray 1.0pt;
  267. }
  268.  
  269. .ntx-rteTable-1 td.ntx-rteTableFooterEvenCol-1
  270. {
  271.  padding: 0in 5.4pt 0in 5.4pt;
  272.  text-align: left;
  273.  border-top: solid gray 1.0pt;
  274. }
  275. </pre>
  276. <p>I hope you find this post useful, thanks.</p>
  277. ]]></content:encoded>
  278. <wfw:commentRss>https://khurrampunjwani.wordpress.com/2016/01/27/reusing-css-styles-in-nintex-workflow-notification-emails/feed/</wfw:commentRss>
  279. <slash:comments>2</slash:comments>
  280. <media:content url="https://0.gravatar.com/avatar/c7a7e744a5cfe76fce00cc315923884a1f2f4f970b879bb9ad69a4b7f894db24?s=96&#38;d=&#38;r=G" medium="image">
  281. <media:title type="html">khurrampunjwani</media:title>
  282. </media:content>
  283.  
  284. <media:content url="https://khurrampunjwani.files.wordpress.com/2016/01/012616_0637_reusingcsss11.png" medium="image" />
  285.  
  286. <media:content url="https://khurrampunjwani.files.wordpress.com/2016/01/012616_0637_reusingcsss21.png" medium="image" />
  287.  
  288. <media:content url="https://khurrampunjwani.files.wordpress.com/2016/01/012616_0637_reusingcsss31.png" medium="image" />
  289. </item>
  290. <item>
  291. <title>Nintex Workflow 2010 &#8211; The workflow could not update the item, possibly because one or more columns for the item require a different type of information.</title>
  292. <link>https://khurrampunjwani.wordpress.com/2015/02/19/nintex-workflow-2010-the-workflow-could-not-update-the-item-possibly-because-one-or-more-columns-for-the-item-require-a-different-type-of-information/</link>
  293. <comments>https://khurrampunjwani.wordpress.com/2015/02/19/nintex-workflow-2010-the-workflow-could-not-update-the-item-possibly-because-one-or-more-columns-for-the-item-require-a-different-type-of-information/#respond</comments>
  294. <dc:creator><![CDATA[Khurram Punjwani]]></dc:creator>
  295. <pubDate>Thu, 19 Feb 2015 10:00:00 +0000</pubDate>
  296. <category><![CDATA[Nintex]]></category>
  297. <category><![CDATA[SharePoint]]></category>
  298. <category><![CDATA[Workflows]]></category>
  299. <guid isPermaLink="false">http://khurrampunjwani.wordpress.com/?p=424</guid>
  300.  
  301. <description><![CDATA[While trying to set field value or update list item action after set item permissions for setting workflow initiator&#8217;s permission to read only so that he or she could not modify the list item I was getting the following error in email. The workflow could not update the item, possibly because one or more columns&#8230;]]></description>
  302. <content:encoded><![CDATA[<p>While trying to set field value or update list item action after set item permissions for setting workflow initiator&#8217;s permission to read only so that he or she could not modify the list item I was getting the following error in email. </p>
  303. <p><em>The workflow could not update the item, possibly because one or more columns for the item require a different type of information.</em> </p>
  304. <p>On the workflow status page in the history list an event was logged with Error event type and outcome of that event was access denied.</p>
  305. <p>After exploring a little bit I found out that this error was coming because Nintex workflow runs in the user context of initiator so if the initiator doesn&#8217;t have permission to modify list items set field value and update list items actions would fail.</p>
  306. <p>There is a way to run the workflow in the context of user who publishes it. Thia option can be enabled by <strong>editing an action</strong>, go to <strong>common settings</strong> and then enable &#8220;Run as workflow owner&#8221;. This option is not available in all actions so to use it in actions where it is not available please drop an action set action in the workflow, enable this setting and then drop the actions you want to use, in my case I was using state machine workflow and then was using set field value. </p>
  307. <p><a href="https://khurrampunjwani.files.wordpress.com/2015/02/wpid-wp-1424336628903.jpeg"><img title="wp-1424336628903" class="alignnone size-full" alt="image" src="https://khurrampunjwani.files.wordpress.com/2015/02/wpid-wp-1424336628903.jpeg" /></a></p>
  308. <p>I hope you find this post useful. Thanks for reading.</p>
  309. ]]></content:encoded>
  310. <wfw:commentRss>https://khurrampunjwani.wordpress.com/2015/02/19/nintex-workflow-2010-the-workflow-could-not-update-the-item-possibly-because-one-or-more-columns-for-the-item-require-a-different-type-of-information/feed/</wfw:commentRss>
  311. <slash:comments>0</slash:comments>
  312. <media:content url="https://0.gravatar.com/avatar/c7a7e744a5cfe76fce00cc315923884a1f2f4f970b879bb9ad69a4b7f894db24?s=96&#38;d=&#38;r=G" medium="image">
  313. <media:title type="html">khurrampunjwani</media:title>
  314. </media:content>
  315.  
  316. <media:content url="https://khurrampunjwani.files.wordpress.com/2015/02/wpid-wp-1424336628903.jpeg" medium="image">
  317. <media:title type="html">wp-1424336628903</media:title>
  318. </media:content>
  319. </item>
  320. <item>
  321. <title>Powershell to create calendar in SharePoint with categorized overlays</title>
  322. <link>https://khurrampunjwani.wordpress.com/2014/04/07/powershell-to-create-calendar-in-sharepoint-with-categorized-overlays/</link>
  323. <comments>https://khurrampunjwani.wordpress.com/2014/04/07/powershell-to-create-calendar-in-sharepoint-with-categorized-overlays/#comments</comments>
  324. <dc:creator><![CDATA[Khurram Punjwani]]></dc:creator>
  325. <pubDate>Mon, 07 Apr 2014 09:30:16 +0000</pubDate>
  326. <category><![CDATA[CodeProject]]></category>
  327. <category><![CDATA[Powershell]]></category>
  328. <category><![CDATA[SharePoint]]></category>
  329. <category><![CDATA[SharePoint 2010]]></category>
  330. <guid isPermaLink="false">http://khurrampunjwani.wordpress.com/?p=410</guid>
  331.  
  332. <description><![CDATA[Creating calendars in SharePoint 2010, changing default categories and then creating view and overlay for each category can take a lot of clicks. To save time and effort I created a powershell script which can be used as follows &#38; &#8216;.\Calendar Overlay.ps1&#8217; -webUrl {SITEURL} -listName &#8220;{LISTNAME}&#8221; -categories &#8220;{CommaSeparatedCategories}&#8221; It takes three command line parameters which&#8230;]]></description>
  333. <content:encoded><![CDATA[<p>Creating calendars in SharePoint 2010, changing default categories and then creating view and overlay for each category can take a lot of clicks. To save time and effort I created a powershell script which can be used as follows</p>
  334. <p>&amp; &#8216;.\Calendar Overlay.ps1&#8217; -webUrl {SITEURL} -listName &#8220;{LISTNAME}&#8221; -categories &#8220;{CommaSeparatedCategories}&#8221;</p>
  335. <p>It takes three command line parameters which are</p>
  336. <p>-webUrl – The site url where you want to create the calendar</p>
  337. <p>-listName – The name of calendar list</p>
  338. <p>-categories – Comma separated values for categories</p>
  339. <p>For example if you would like to create a calendar named Yearly events on <a href="http://myspsite/marketing" rel="nofollow">http://myspsite/marketing</a> with road show, marketing boot camp 1 and digital campaign 1. You can pass in the following arguments</p>
  340. <p>&amp; &#8216;.\Calendar Overlay.ps1&#8217; -webUrl <a href="http://myspsite/marketing" rel="nofollow">http://myspsite/marketing</a> -listName &#8220;Yearly Events&#8221; -categories &#8220;Road show, Marketing Boot camp 1, Digital Campaign 1&#8221;</p>
  341. <p>The resulting calendar would look like</p>
  342. <p><img src="https://khurrampunjwani.files.wordpress.com/2014/04/040714_0758_powershellt1.jpg" alt="Calendar overlays created with Powershell" /></p>
  343. <p>Source for the script is as follows:</p>
  344. <pre>
  345. ###############################################################################
  346. # Creating Calendar overlays in SharePoint 2010 using Powershell
  347. # Version          : 1.0
  348. # Url              : https://khurrampunjwani.wordpress.com
  349. # Creator          : Khurram Punjwani, http://twitter.com/khurrampunjwani
  350. ###############################################################################
  351.  
  352. param (
  353.    [string]$webUrl = $(throw "-webUrl is required."),
  354. [string]$listName = $(throw "-listName is required."),
  355.    [string]$categories = $(throw "-categories is required.")
  356. )
  357.  
  358. [array]$categoriesArray = $categories -split ","
  359.  
  360. Function Get-SPCalendarWeb(){
  361.  
  362. #Clear screen first
  363. Clear-Host
  364. #Load web where Calendar is supposed to be created
  365. $web = Get-SPWeb -Identity $webUrl
  366. Write-Host "SP Web Loaded " $web.Title
  367. #Create new calendar
  368. New-SPCalendar
  369.  
  370. $web.Dispose()
  371. }
  372.  
  373. Function Add-TestEntries($cal){
  374. $listItem = $cal.AddItem()
  375. $listItem["Title"] = "Test 1"
  376. $listItem["Category"] = $categoriesArray[0]
  377. $listItem["EventDate"] = [System.DateTime]::Now
  378. $listItem["EndDate"] = [System.DateTime]::Now.AddHours(4)
  379. $listItem.Update()
  380. $listItem = $cal.AddItem()
  381. $listItem["Title"] = "Test 2"
  382. $listItem["Category"] = $categoriesArray[1]
  383. $listItem["EventDate"] = [System.DateTime]::Now
  384. $listItem["EndDate"] = [System.DateTime]::Now.AddHours(4)
  385. $listItem.Update()
  386. }
  387.  
  388. Function New-SPCalendar(){
  389. $web.Lists.Add($listName,"",[Microsoft.SharePoint.SPListTemplateType]::Events)
  390. $cal = $web.Lists.TryGetList($listName);
  391. Write-Host "Calendar created"
  392. #Delete default categories and add the ones specified in command line
  393. Add-CalendarCategories $cal
  394. #Add Views with Filters
  395. Add-SPCalendarViews $cal
  396.  
  397. #Add test entries
  398. Add-TestEntries $cal
  399. }
  400.  
  401. Function Add-SPCalendarViews($cal){
  402. $view = $cal.Views["Calendar"]
  403. $viewFields = $view.ViewFields.ToStringCollection()
  404. $viewData = ""
  405.    $viewData += ""
  406.    $viewData += ""
  407.    $viewData += ""
  408.    $viewData += ""
  409. #XML for calendar overlays
  410. $calendarSettings = "  "
  411. #To show different color for category views
  412. $colorIndex = 1
  413. #Create views for categories so there will be one view for each category
  414. foreach($category in $categoriesArray){
  415. #Create filter for the view to show events from the respective category
  416. $viewQuery = ""
  417. $viewQuery += ""
  418. $viewQuery += ""
  419. $viewQuery += ""
  420. $viewQuery += ""
  421. $viewQuery += ""
  422. $viewQuery += ""
  423. $viewQuery += ""
  424. $viewQuery += ""
  425. $viewQuery += ""
  426. $viewQuery += %{"{0}" -f $category}
  427. $viewQuery += ""
  428. $viewQuery += ""
  429. $viewQuery += ""
  430. $newView = $cal.Views.Add($category,$viewFields,$viewQuery,3,$false,
  431. $false,"CALENDAR",$false)
  432. $newView.ViewData = $viewData
  433. $newView.Update()
  434.  
  435. %{"View created for {0} category" -f $category} | Write-Host
  436. #Update XML for Calendar Overlay, each view would be added as an overlay
  437. $calendarSettings += %{"  " -f $category}
  438. $calendarSettings += %{"</pre>
  439. ]]></content:encoded>
  440. <wfw:commentRss>https://khurrampunjwani.wordpress.com/2014/04/07/powershell-to-create-calendar-in-sharepoint-with-categorized-overlays/feed/</wfw:commentRss>
  441. <slash:comments>2</slash:comments>
  442. <media:content url="https://0.gravatar.com/avatar/c7a7e744a5cfe76fce00cc315923884a1f2f4f970b879bb9ad69a4b7f894db24?s=96&#38;d=&#38;r=G" medium="image">
  443. <media:title type="html">khurrampunjwani</media:title>
  444. </media:content>
  445.  
  446. <media:content url="https://khurrampunjwani.files.wordpress.com/2014/04/040714_0758_powershellt1.jpg" medium="image">
  447. <media:title type="html">Calendar overlays created with Powershell</media:title>
  448. </media:content>
  449. </item>
  450. <item>
  451. <title>Getting authentication prompt again and again while trying to access #SharePoint 2010 Rest Interface</title>
  452. <link>https://khurrampunjwani.wordpress.com/2013/10/09/getting-authentication-prompt-again-and-again-while-trying-to-access-sharepoint-2010-rest-interface/</link>
  453. <comments>https://khurrampunjwani.wordpress.com/2013/10/09/getting-authentication-prompt-again-and-again-while-trying-to-access-sharepoint-2010-rest-interface/#comments</comments>
  454. <dc:creator><![CDATA[Khurram Punjwani]]></dc:creator>
  455. <pubDate>Wed, 09 Oct 2013 11:00:15 +0000</pubDate>
  456. <category><![CDATA[SharePoint]]></category>
  457. <category><![CDATA[SharePoint 2010]]></category>
  458. <category><![CDATA[SharePoint Tools]]></category>
  459. <guid isPermaLink="false">http://khurrampunjwani.wordpress.com/?p=404</guid>
  460.  
  461. <description><![CDATA[While trying to access to ListData.svc service in a SharePoint 2010 sub site I was getting authentication prompt to enter credentials again and again. I was using a SharePoint Farm administrator account so was sure that permission is not the cause of this problem. So I started SharePoint Manager, browsed to the sub site and&#8230;]]></description>
  462. <content:encoded><![CDATA[<p>While trying to access to ListData.svc service in a SharePoint 2010 sub site I was getting authentication prompt to enter credentials again and again. I was using a SharePoint Farm administrator account so was sure that permission is not the cause of this problem. So I started SharePoint Manager, browsed to the sub site and saw that there was a problem in a feature</p>
  463. <p><img title="SharePoint Manager Site Feature List" alt="SharePoint Manager Site Feature List" src="https://khurrampunjwani.files.wordpress.com/2013/10/100913_1035_gettingauth1.png" width="389" height="182" /></p>
  464. <p>Afterwards I checked in the list nodes of the same site to see which lists were included in this missing feature, after clicking on one of the lists I got the following error which hinted that this list was the one included in the feature.</p>
  465. <p><img title="SharePoint Orphaned list exception" alt="SharePoint Orphaned list exception" src="https://khurrampunjwani.files.wordpress.com/2013/10/100913_1035_gettingauth2.png" width="447" height="309" /></p>
  466. <p>Further in the properties window there was an error message in the content type field</p>
  467. <p><img title="SharePoint Manager List Properties" alt="SharePoint Manager List Properties" src="https://khurrampunjwani.files.wordpress.com/2013/10/100913_1035_gettingauth3.png" width="624" height="471" /></p>
  468. <p>I deleted this orphaned lists and the service worked fine then.</p>
  469. <p>I hope you found this post helpful. Thanks</p>
  470. ]]></content:encoded>
  471. <wfw:commentRss>https://khurrampunjwani.wordpress.com/2013/10/09/getting-authentication-prompt-again-and-again-while-trying-to-access-sharepoint-2010-rest-interface/feed/</wfw:commentRss>
  472. <slash:comments>2</slash:comments>
  473. <media:content url="https://0.gravatar.com/avatar/c7a7e744a5cfe76fce00cc315923884a1f2f4f970b879bb9ad69a4b7f894db24?s=96&#38;d=&#38;r=G" medium="image">
  474. <media:title type="html">khurrampunjwani</media:title>
  475. </media:content>
  476.  
  477. <media:content url="https://khurrampunjwani.files.wordpress.com/2013/10/100913_1035_gettingauth1.png" medium="image">
  478. <media:title type="html">SharePoint Manager Site Feature List</media:title>
  479. </media:content>
  480.  
  481. <media:content url="https://khurrampunjwani.files.wordpress.com/2013/10/100913_1035_gettingauth2.png" medium="image">
  482. <media:title type="html">SharePoint Orphaned list exception</media:title>
  483. </media:content>
  484.  
  485. <media:content url="https://khurrampunjwani.files.wordpress.com/2013/10/100913_1035_gettingauth3.png" medium="image">
  486. <media:title type="html">SharePoint Manager List Properties</media:title>
  487. </media:content>
  488. </item>
  489. <item>
  490. <title>Download links for Office Server 2010 and #SharePoint 2010 Service Pack 2 (#SP2) Packages</title>
  491. <link>https://khurrampunjwani.wordpress.com/2013/07/24/download-links-for-office-server-2010-and-sharepoint-2010-service-pack-2-sp2-packages/</link>
  492. <comments>https://khurrampunjwani.wordpress.com/2013/07/24/download-links-for-office-server-2010-and-sharepoint-2010-service-pack-2-sp2-packages/#respond</comments>
  493. <dc:creator><![CDATA[Khurram Punjwani]]></dc:creator>
  494. <pubDate>Wed, 24 Jul 2013 07:30:15 +0000</pubDate>
  495. <category><![CDATA[SharePoint 2010]]></category>
  496. <category><![CDATA[service pack 2]]></category>
  497. <category><![CDATA[SP2]]></category>
  498. <category><![CDATA[SP2010]]></category>
  499. <guid isPermaLink="false">http://khurrampunjwani.wordpress.com/?p=377</guid>
  500.  
  501. <description><![CDATA[SharePoint Service Pack 2 (SP2) has been officially released. It was published on 21st July 2013 and contains new updates which improve security, performance, and stability. Please refer the&#160;SP2 change list for complete list of fixed issues. This service pack includes all cumulative updates (CU) from June 2011 till April 2013 and public updates (PU)&#8230;]]></description>
  502. <content:encoded><![CDATA[<p>SharePoint Service Pack 2 (SP2) has been officially released. It was published on 21<sup>st</sup> July 2013 and contains new updates which improve security, performance, and stability. Please refer the&nbsp;<a title="SharePoint 2010 Service Pack 2 Changes" href="http://download.microsoft.com/download/9/5/9/959F3A24-80B3-4930-8FF8-D3C631BB878F/Microsoft%20Office%20and%20SharePoint%202010%20Service%20Pack%202%20Changes.xlsx" target="_blank">SP2 change list</a> for complete list of fixed issues.</p>
  503. <p>This service pack includes all cumulative updates (CU) from June 2011 till April 2013 and public updates (PU) from July 2011 till May 2013 which were released after Service Pack 1 (SP1)</p>
  504. <p>To download, please click the following links.</p>
  505. <div>
  506. <table style="border-collapse:collapse;" border="0">
  507. <col style="width:452px;" />
  508. <col style="width:186px;" />
  509. <tbody valign="top">
  510. <tr>
  511. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=8fe2d922-db95-437b-94b8-726ee4707e37" target="_blank">Microsoft SharePoint Server 2010 Service Pack 2</a></td>
  512. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://support.microsoft.com/kb/2687453" target="_blank">KB2687453</a></td>
  513. </tr>
  514. <tr>
  515. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=1338e09c-9df3-489c-9dfd-0f339acda0b4" target="_blank">Microsoft SharePoint Foundation 2010 Service Pack 2</a></td>
  516. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://support.microsoft.com/kb/2687464" target="_blank">KB2687464</a></td>
  517. </tr>
  518. <tr>
  519. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=b203e608-5c29-45e7-a4a9-a579578ec710" target="_blank">Microsoft SharePoint Foundation 2010 Language Pack Service Pack 2</a></td>
  520. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://support.microsoft.com/kb/2687466" target="_blank">KB2687466</a></td>
  521. </tr>
  522. <tr>
  523. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=c4a1596d-6eb3-43d1-a7bf-2c5415ceff60" target="_blank">Microsoft FAST Search Server 2010 for SharePoint Service Pack 2</a></td>
  524. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://support.microsoft.com/kb/2687446" target="_blank">KB2687446</a></td>
  525. </tr>
  526. <tr>
  527. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=eb4b509e-f464-4cd9-9e23-894e4439b99b" target="_blank">Microsoft Search Server 2010 Service Pack 2</a></td>
  528. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://support.microsoft.com/kb/2687461" target="_blank">KB2687461</a></td>
  529. </tr>
  530. <tr>
  531. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=09fb704c-01fd-4159-be21-c8b230fb9b41" target="_blank">Microsoft 2010 Server Language Pack Service Pack 2</a></td>
  532. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://support.microsoft.com/kb/2687462" target="_blank">KB2687462</a></td>
  533. </tr>
  534. <tr>
  535. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=8092874c-4585-49ea-b2b6-02aa8f7f089b" target="_blank">Microsoft Office Web Apps Service Pack 2</a></td>
  536. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://support.microsoft.com/kb/2687470" target="_blank">KB2687470</a></td>
  537. </tr>
  538. <tr>
  539. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=387a7889-8266-429a-bfd3-b6bb2f9cbe63" target="_blank">Microsoft SharePoint and Project Server 2010 Service Pack 2</a></td>
  540. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://support.microsoft.com/kb/2687452" target="_blank">KB2687452</a></td>
  541. </tr>
  542. <tr>
  543. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=b97974a3-af37-4a2d-a0cb-da5726eb7f8b" target="_blank">Microsoft Groove Server 2010 Service Pack 2</a></td>
  544. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://support.microsoft.com/kb/2687448" target="_blank">KB2687448</a></td>
  545. </tr>
  546. <tr>
  547. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=c3e648aa-ec62-45cb-825b-c62101805c70" target="_blank">Microsoft SharePoint 2010 Indexing Connector for Documentum Service Pack 2</a></td>
  548. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://support.microsoft.com/kb/2687459" target="_blank">KB2687459</a></td>
  549. </tr>
  550. <tr>
  551. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=38620083-dab1-458e-89b6-524f078dd16b" target="_blank">Microsoft Duet Enterprise for SharePoint and SAP Service Pack 2</a></td>
  552. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://support.microsoft.com/kb/2687445" target="_blank">KB2687445</a></td>
  553. </tr>
  554. <tr>
  555. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=50fe4509-d3c2-457d-a802-b037070a7fc4" target="_blank">Microsoft SharePoint Designer 2010 Service Pack 2 (64-bit)</a></td>
  556. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://support.microsoft.com/kb/2687463" target="_blank">KB2687463</a></td>
  557. </tr>
  558. <tr>
  559. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=87b98b01-9582-4875-9c89-3661add734d9" target="_blank">Microsoft SharePoint Designer 2010 Service Pack 2 (32-bit) </a></td>
  560. <td style="padding-left:7px;padding-right:7px;padding-bottom:7px;"><a href="http://support.microsoft.com/kb/2687463" target="_blank">KB2687463</a></td>
  561. </tr>
  562. </tbody>
  563. </table>
  564. </div>
  565. <p><em>Please note June 2013 CU is not included and has to be installed separately. To download it, please click the following links.<br />
  566. </em></p>
  567. <p><a title="SharePoint Foundation 2010 June 2013 CU" href="http://support.microsoft.com/hotfix/KBHotfix.aspx?kbln=en-us&amp;kbnum=2817552" target="_blank">SharePoint Foundation 2010 June 2013 CU</a></p>
  568. <p><a title="SharePoint Server 2010 June 2013 CU" href="http://support.microsoft.com/hotfix/KBHotfix.aspx?kbln=en-us&amp;kbnum=2817527" target="_blank">SharePoint Server 2010 June 2013 CU</a></p>
  569. <p>Thanks for reading and have a nice day. Cheers</p>
  570. ]]></content:encoded>
  571. <wfw:commentRss>https://khurrampunjwani.wordpress.com/2013/07/24/download-links-for-office-server-2010-and-sharepoint-2010-service-pack-2-sp2-packages/feed/</wfw:commentRss>
  572. <slash:comments>0</slash:comments>
  573. <media:content url="https://0.gravatar.com/avatar/c7a7e744a5cfe76fce00cc315923884a1f2f4f970b879bb9ad69a4b7f894db24?s=96&#38;d=&#38;r=G" medium="image">
  574. <media:title type="html">khurrampunjwani</media:title>
  575. </media:content>
  576. </item>
  577. <item>
  578. <title>Changing SharePoint 2010 lookup column Date Time and Number formatting</title>
  579. <link>https://khurrampunjwani.wordpress.com/2013/05/31/changing-sharepoint-2010-lookup-column-date-time-and-number-formatting/</link>
  580. <comments>https://khurrampunjwani.wordpress.com/2013/05/31/changing-sharepoint-2010-lookup-column-date-time-and-number-formatting/#comments</comments>
  581. <dc:creator><![CDATA[Khurram Punjwani]]></dc:creator>
  582. <pubDate>Fri, 31 May 2013 17:00:31 +0000</pubDate>
  583. <category><![CDATA[SharePoint]]></category>
  584. <category><![CDATA[SharePoint 2010]]></category>
  585. <category><![CDATA[SSRS]]></category>
  586. <category><![CDATA[Reporting]]></category>
  587. <guid isPermaLink="false">http://khurrampunjwani.wordpress.com/?p=374</guid>
  588.  
  589. <description><![CDATA[Few days back I was creating a report using SharePoint 2010 list as data source in Report Builder 3. The list I was using had the following lookup columns: StartDate (DateTime Column) FinishDate (DateTime Column) Budget (Number) Now when I tried to change the datetime and number formatting, I noticed formatting was not being applied.&#8230;]]></description>
  590. <content:encoded><![CDATA[<p>Few days back I was creating a report using SharePoint 2010 list as data source in Report Builder 3. The list I was using had the following lookup columns:</p>
  591. <ul>
  592. <li>StartDate (DateTime Column)</li>
  593. <li>FinishDate (DateTime Column)</li>
  594. <li>Budget (Number)</li>
  595. </ul>
  596. <p>Now when I tried to change the datetime and number formatting, I noticed formatting was not being applied.</p>
  597. <p>After spending some time I found out that in order to apply number and datetime formatting to lookup columns, they must be converted to a proper data type. So instead of binding field directly to a column, I used the following expressions to convert these lookup columns in proper data types</p>
  598. <p><img title="Convert SharePoint 2010 lookup column to proper data type" alt="Convert SharePoint 2010 lookup column to proper data type" src="https://khurrampunjwani.files.wordpress.com/2013/05/053113_1700_changingsha1.png" width="629" height="533" /></p>
  599. <p>The complete list of conversion functions can be found under Common functions and then Conversion. In my case for dates I used CDate(FieldName) and for number column I used CInt(FieldName)</p>
  600. <p><img title="Convert SharePoint 2010 lookup column to proper data type" alt="Convert SharePoint 2010 lookup column to proper data type" src="https://khurrampunjwani.files.wordpress.com/2013/05/053113_1700_changingsha2.png" width="550" height="500" /></p>
  601. ]]></content:encoded>
  602. <wfw:commentRss>https://khurrampunjwani.wordpress.com/2013/05/31/changing-sharepoint-2010-lookup-column-date-time-and-number-formatting/feed/</wfw:commentRss>
  603. <slash:comments>1</slash:comments>
  604. <media:content url="https://0.gravatar.com/avatar/c7a7e744a5cfe76fce00cc315923884a1f2f4f970b879bb9ad69a4b7f894db24?s=96&#38;d=&#38;r=G" medium="image">
  605. <media:title type="html">khurrampunjwani</media:title>
  606. </media:content>
  607.  
  608. <media:content url="https://khurrampunjwani.files.wordpress.com/2013/05/053113_1700_changingsha1.png" medium="image">
  609. <media:title type="html">Convert SharePoint 2010 lookup column to proper data type</media:title>
  610. </media:content>
  611.  
  612. <media:content url="https://khurrampunjwani.files.wordpress.com/2013/05/053113_1700_changingsha2.png" medium="image">
  613. <media:title type="html">Convert SharePoint 2010 lookup column to proper data type</media:title>
  614. </media:content>
  615. </item>
  616. <item>
  617. <title>Why AutoSPInstaller?</title>
  618. <link>https://khurrampunjwani.wordpress.com/2013/03/13/why-autospinstaller/</link>
  619. <comments>https://khurrampunjwani.wordpress.com/2013/03/13/why-autospinstaller/#respond</comments>
  620. <dc:creator><![CDATA[Khurram Punjwani]]></dc:creator>
  621. <pubDate>Wed, 13 Mar 2013 09:43:36 +0000</pubDate>
  622. <category><![CDATA[SharePoint]]></category>
  623. <category><![CDATA[SharePoint 2010]]></category>
  624. <category><![CDATA[SharePoint Tools]]></category>
  625. <category><![CDATA[Configuration Database]]></category>
  626. <guid isPermaLink="false">http://khurrampunjwani.wordpress.com/?p=349</guid>
  627.  
  628. <description><![CDATA[Let&#8217;s assume we&#8217;ve to create a new SharePoint 2010 server so we install SharePoint 2010 and then start the configuration wizard. After we&#8217;re through with the configuration wizard, most probably when we&#8217;ll start SQL Server Management Studio we&#8217;ll see something like the following This type of inconsistent naming can be very unpleasant and might not&#8230;]]></description>
  629. <content:encoded><![CDATA[<p>Let&#8217;s assume we&#8217;ve to create a new SharePoint 2010 server so we install SharePoint 2010 and then start the configuration wizard. After we&#8217;re through with the configuration wizard, most probably when we&#8217;ll start SQL Server Management Studio we&#8217;ll see something like the following
  630. </p>
  631. <p><img src="https://khurrampunjwani.files.wordpress.com/2013/03/031313_0943_whyautospin11.jpg" alt="SharePoint Databases with Guids" />
  632. </p>
  633. <p>This type of inconsistent naming can be very unpleasant and might not be very handy for our DBAs, wouldn&#8217;t it be better if we&#8217;d something like
  634. </p>
  635. <p><img src="https://khurrampunjwani.files.wordpress.com/2013/03/031313_0943_whyautospin21.jpg" alt="" />
  636. </p>
  637. <p>So what we do. We can run some powershell scripts to manually configure our Farm and install services (For more details, please visit <a href="http://technet.microsoft.com/en-us/library/cc262839.aspx#section6">http://technet.microsoft.com/en-us/library/cc262839.aspx#section6</a>)
  638. </p>
  639. <p>Another good alternate is that we use <a href="http://autospinstaller.codeplex.com/">AutoSPInstaller</a> which can automate the process of installing (including downloading and installation of pre- requisites) and configuring SharePoint 2010 based on inputs we provide in an xml file. There is an editor available to edit scripts for AutoSPInstaller as well called <a href="http://autospinstallergui.codeplex.com/">AutoSPInstallerGUI</a>
  640. </p>
  641. <p>For detailed instructions on how to use AutoSPInstaller, please visit <a href="http://www.softlanding.ca/Blog/Lists/Posts/Post.aspx?ID=30">http://www.softlanding.ca/Blog/Lists/Posts/Post.aspx?ID=30</a>.
  642. </p>
  643. <p>Thanks for reading. I hope you found this post useful. Please don&#8217;t forget to share this post. Cheers
  644. </p></p>
  645. ]]></content:encoded>
  646. <wfw:commentRss>https://khurrampunjwani.wordpress.com/2013/03/13/why-autospinstaller/feed/</wfw:commentRss>
  647. <slash:comments>0</slash:comments>
  648. <media:content url="https://0.gravatar.com/avatar/c7a7e744a5cfe76fce00cc315923884a1f2f4f970b879bb9ad69a4b7f894db24?s=96&#38;d=&#38;r=G" medium="image">
  649. <media:title type="html">khurrampunjwani</media:title>
  650. </media:content>
  651.  
  652. <media:content url="https://khurrampunjwani.files.wordpress.com/2013/03/031313_0943_whyautospin11.jpg" medium="image">
  653. <media:title type="html">SharePoint Databases with Guids</media:title>
  654. </media:content>
  655.  
  656. <media:content url="https://khurrampunjwani.files.wordpress.com/2013/03/031313_0943_whyautospin21.jpg" medium="image" />
  657. </item>
  658. <item>
  659. <title>Changing SharePoint 2010 search box icon using CSS</title>
  660. <link>https://khurrampunjwani.wordpress.com/2012/11/12/changing-sharepoint-2010-search-box-icon-using-css/</link>
  661. <comments>https://khurrampunjwani.wordpress.com/2012/11/12/changing-sharepoint-2010-search-box-icon-using-css/#comments</comments>
  662. <dc:creator><![CDATA[Khurram Punjwani]]></dc:creator>
  663. <pubDate>Mon, 12 Nov 2012 11:00:35 +0000</pubDate>
  664. <category><![CDATA[SharePoint 2010]]></category>
  665. <category><![CDATA[Branding]]></category>
  666. <category><![CDATA[CSS]]></category>
  667. <guid isPermaLink="false">http://khurrampunjwani.wordpress.com/?p=333</guid>
  668.  
  669. <description><![CDATA[There are a few ways to change the search box icon like specifying image URL by creating or using existing delegate control and another way to change it on runtime using JavaScript but there is another simpler way so let’s explore it and look at the html for icon which is being generated by the&#8230;]]></description>
  670. <content:encoded><![CDATA[<p>There are a few ways to change the search box icon like specifying image URL by creating or using existing delegate control and another way to change it on runtime using JavaScript but there is another simpler way so let’s explore it and look at the html for icon which is being generated by the SmallSearchInputBox html control</p>
  671. <pre class="brush: xml; title: ; notranslate">
  672. &amp;lt;a href=&amp;quot;javascript:S3031AEBB_Submit()&amp;quot; title=&amp;quot;Search&amp;quot; id=&amp;quot;ctl00_PlaceHolderSearchArea_ctl01_S3031AEBB_go&amp;quot;&amp;gt;
  673. &amp;lt;img style=&amp;quot;border-width:0px;&amp;quot; src=&amp;quot;/_layouts/images/gosearch15.png&amp;quot; alt=&amp;quot;Search&amp;quot; class=&amp;quot;srch-gosearchimg&amp;quot; onmouseout=&amp;quot;this.src='\u002f_layouts\u002fimages\u002fgosearch15.png'&amp;quot; onmouseover=&amp;quot;this.src='\u002f_layouts\u002fimages\u002fgosearchhover15.png'&amp;quot; title=&amp;quot;Search&amp;quot;&amp;gt;
  674. &amp;lt;/a&amp;gt;
  675. </pre>
  676. <p>We can see that there is an inline img tag inside an anchor tag so if we set the img tag display’s to none and specify background image for the anchor we can easily change icon so let’s try this out. To apply the following CSS, we’ll have to create a CSS in Style Library in which we&#8217;ll override default styling and specify it as an alternate CSS in Master page site settings.</p>
  677. <pre class="brush: css; title: ; notranslate">
  678. td.ms-sbgo
  679. {
  680. padding:0px 3px 0px 3px;
  681. }
  682.  
  683. td.ms-sbgo a
  684. {
  685.    background-image: url(/Style%20Library/Images/our_search_button.png);
  686.    background-repeat: no-repeat;
  687.    background-position: top left;
  688.    display:block;
  689.    width:20px;
  690.    height:19px;
  691. }
  692.  
  693. td.ms-sbgo a img
  694. {
  695.    display: none;
  696. }
  697. </pre>
  698. ]]></content:encoded>
  699. <wfw:commentRss>https://khurrampunjwani.wordpress.com/2012/11/12/changing-sharepoint-2010-search-box-icon-using-css/feed/</wfw:commentRss>
  700. <slash:comments>1</slash:comments>
  701. <media:content url="https://0.gravatar.com/avatar/c7a7e744a5cfe76fce00cc315923884a1f2f4f970b879bb9ad69a4b7f894db24?s=96&#38;d=&#38;r=G" medium="image">
  702. <media:title type="html">khurrampunjwani</media:title>
  703. </media:content>
  704. </item>
  705. <item>
  706. <title>How to add or remove languages from Advance Search Page in SharePoint 2010</title>
  707. <link>https://khurrampunjwani.wordpress.com/2012/10/29/how-to-add-or-remove-languages-from-advance-search-page-in-sharepoint-2010/</link>
  708. <comments>https://khurrampunjwani.wordpress.com/2012/10/29/how-to-add-or-remove-languages-from-advance-search-page-in-sharepoint-2010/#comments</comments>
  709. <dc:creator><![CDATA[Khurram Punjwani]]></dc:creator>
  710. <pubDate>Mon, 29 Oct 2012 12:00:54 +0000</pubDate>
  711. <category><![CDATA[SharePoint]]></category>
  712. <category><![CDATA[SharePoint 2010]]></category>
  713. <category><![CDATA[SharePoint Search]]></category>
  714. <guid isPermaLink="false">http://khurrampunjwani.wordpress.com/?p=324</guid>
  715.  
  716. <description><![CDATA[Changing the language list on Advance search page is very simple, just follow these steps. Step 1: Go to Advance page, site actions and then edit page. Step 2: Now edit advance search box web part and collapse properties section. Step 3: Copy xml from properties textbox and paste it in any xml editor like&#8230;]]></description>
  717. <content:encoded><![CDATA[<p>Changing the language list on Advance search page is very simple, just follow these steps.</p>
  718. <p>Step 1: Go to Advance page, site actions and then edit page.</p>
  719. <p>Step 2: Now edit advance search box web part and collapse properties section.</p>
  720. <p>Step 3: Copy xml from properties textbox and paste it in any xml editor like Visual Studio so we can modify it easily</p>
  721. <p>Step 4: Search for languages tag and remove any language that is not necessary from the list. For example let’s remove all languages except English from the list, now it should look like</p>
  722. <pre class="brush: xml; title: ; notranslate">
  723. &lt;Languages&gt;
  724. &lt;Language LangRef=&quot;en&quot; /&gt;
  725. &lt;/Languages&gt;
  726. </pre>
  727. <p>Step 5: To add another language, just add another Language element with LangRef attribute. Values for LangRef attribute will LangID from the LangDefs element. For example if we want to add Arabic then our Languages element would look like</p>
  728. <pre class="brush: xml; title: ; notranslate">
  729. &lt;Languages&gt;
  730. &lt;Language LangRef=&quot;en&quot;/&gt;
  731. &lt;Language LangRef=&quot;ar&quot;/&gt;
  732. &lt;/Languages&gt;
  733. </pre>
  734. <p>Step 6: Copy the entire xml and paste it in properties textbox in advance search box web parts (Where we initially copied the xml from) and save the page.</p>
  735. <p>That’s it we are done.</p>
  736. <p>I hope you find this post useful. Thanks</p>
  737. ]]></content:encoded>
  738. <wfw:commentRss>https://khurrampunjwani.wordpress.com/2012/10/29/how-to-add-or-remove-languages-from-advance-search-page-in-sharepoint-2010/feed/</wfw:commentRss>
  739. <slash:comments>1</slash:comments>
  740. <media:content url="https://0.gravatar.com/avatar/c7a7e744a5cfe76fce00cc315923884a1f2f4f970b879bb9ad69a4b7f894db24?s=96&#38;d=&#38;r=G" medium="image">
  741. <media:title type="html">khurrampunjwani</media:title>
  742. </media:content>
  743. </item>
  744. </channel>
  745. </rss>
  746.  

If you would like to create a banner that links to this page (i.e. this validation result), do the following:

  1. Download the "valid RSS" banner.

  2. Upload the image to your own server. (This step is important. Please do not link directly to the image on this server.)

  3. Add this HTML to your page (change the image src attribute if necessary):

If you would like to create a text link instead, here is the URL you can use:

http://www.feedvalidator.org/check.cgi?url=http%3A//khurrampunjwani.wordpress.com/feed/

Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda