tag:blogger.com,1999:blog-17022481638027376522024-02-07T08:18:28.258+03:00Practical Tips and Tricks for SharePoint Development and moreAnonymoushttp://www.blogger.com/profile/04900863599980174013noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-1702248163802737652.post-69518297583131777112016-03-22T14:20:00.003+03:002016-08-03T11:34:34.385+03:00Increase VMware Performance and Decrease the Needed Space by Disabling the .vmem File<div dir="rtl" style="text-align: right;" trbidi="on">
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: "segoe ui" , sans-serif; font-size: 12pt;">Dear all,<o:p></o:p></span></div>
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: "segoe ui" , sans-serif; font-size: 12pt;">I you want to increase the I/O performance, and decrease the disk space needed to run your VM, your should consider disabling the memory swap file (.vmem).<o:p></o:p></span></div>
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<br /></div>
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: "segoe ui" , sans-serif; font-size: 12pt;">Actually, .vmem is the virtual machine's paging file, which backs up the guest main memory on the host file system. This file exists only when the virtual machine is running, or if the virtual machine has crashed.</span><span style="font-family: "segoe ui" , sans-serif; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<br /></div>
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: "segoe ui" , sans-serif; font-size: 12pt;">Therefore, if you do not want VMware to create a memory swap file, which is as large as the chosen RAM of your guest OS, go to:<o:p></o:p></span></div>
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: "courier new"; font-size: 10.5pt;">C:\ProgramData\VMware\VMware Workstation\config.ini</span><span style="font-family: "courier new"; font-size: 12pt;"><o:p></o:p></span></div>
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: "segoe ui" , sans-serif; font-size: 12pt;">And add the following: <o:p></o:p></span></div>
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: "courier new"; font-size: 12pt;">mainMem.useNamedFile = "FALSE"<br />prefvmx.minVmMemPct = "100"<br />MemTrimRate = "0"<o:p></o:p></span></div>
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<br /></div>
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: "segoe ui" , sans-serif; font-size: 12pt;">This supposed to increase the performance of your VM; Since VMware will no more maintain duplicating your guest RAM to the hard disk. Therefore, you should notice the performance difference. Additionally, you will gain more disk space, because VMware now will not create a large file to duplicate your guest OS RAM.<o:p></o:p></span></div>
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<br /></div>
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: "segoe ui" , sans-serif; font-size: 12pt;">However, here are something you have to pay attention for:<o:p></o:p></span></div>
<ul dir="ltr" style="text-align: left;" type="disc">
<li class="MsoNormal" style="background: white;"><span style="font-family: "segoe ui" , sans-serif; font-size: 12.0pt;">If the VM has crashed, you will not be able to restore the state of your guest OS with the running applications.<o:p></o:p></span></li>
<li class="MsoNormal" style="background: white;"><span style="font-family: "segoe ui" , sans-serif; font-size: 12.0pt;">Suspend will take more time than before changing those configuration.<o:p></o:p></span></li>
<li class="MsoNormal" style="background: white;"><span style="font-family: "segoe ui" , sans-serif; font-size: 12.0pt;">For suspend and resume, you still need a file with the size of the configured RAM of your gust OS. Such that, for every suspend action, VMware will create a new "<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;"><snapshot_name_and_number></span>.<span style="background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial;">vmem" file</span>.<o:p></o:p></span></li>
</ul>
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: "segoe ui" , sans-serif; font-size: 12pt;">You may find more info at:<o:p></o:p></span></div>
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: "segoe ui" , sans-serif; font-size: 12pt;"><a href="https://www.vmware.com/support/ws55/doc/ws_learning_files_in_a_vm.html"><span style="color: blue;">https://www.vmware.com/support/ws55/doc/ws_learning_files_in_a_vm.html</span></a><o:p></o:p></span></div>
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: "segoe ui" , sans-serif; font-size: 12pt;"><a href="https://communities.vmware.com/thread/510562?start=0&tstart=0"><span style="color: blue;">https://communities.vmware.com/thread/510562?start=0&tstart=0</span></a><o:p></o:p></span></div>
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: "segoe ui" , sans-serif; font-size: 12pt;"><a href="http://www.virtualizationhowto.com/2014/10/performance-tweaks-vmware-workstation-10/"><span style="color: blue;">http://www.virtualizationhowto.com/2014/10/performance-tweaks-vmware-workstation-10/</span></a><o:p></o:p></span></div>
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<br /></div>
<div class="MsoNormal" dir="ltr" style="background: white; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-family: "segoe ui" , sans-serif; font-size: 12pt;">Best Wishes,<o:p></o:p></span></div>
<div dir="ltr" style="text-align: left;">
</div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/04900863599980174013noreply@blogger.com0tag:blogger.com,1999:blog-1702248163802737652.post-9017916910696061402012-09-05T13:41:00.001+03:002017-12-27T02:49:06.499+03:00SharePoint 2010 >> Useful Web Part Configuration<div dir="rtl" style="text-align: right;" trbidi="on">
<div dir="ltr" style="text-align: left;">
<span style="font-family: "tahoma" , sans-serif; font-size: small;">When you add some Web Part you can do handful things like following:</span></div>
<ul dir="ltr" style="text-align: left;">
<li><h3>
Change the Web Part Group:</h3>
</li>
</ul>
<div dir="ltr" style="text-align: left;">
<span style="font-family: "tahoma" , sans-serif; font-size: small;">Change the group that the Web Part will be categorized in, which is shown when inserting the web part on a page:</span><span style="font-size: small;">At
the file Elements.xml, exists under your Web Part folder, modify
value="Cusotm" at the following line to be something like "Starways":</span>
</div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; margin-left: 40px; text-align: left;">
<span style="font-size: small;"><span style="color: blue; font-family: "consolas";"><</span><span style="color: #a31515; font-family: "consolas";">Property</span><span style="color: blue; font-family: "consolas";"> </span><span style="color: red; font-family: "consolas";">Name</span><span style="color: blue; font-family: "consolas";">=</span><span style="font-family: "consolas";">"<span style="color: blue;">Group</span>"<span style="color: blue;"> </span><span style="color: red;">Value</span><span style="color: blue;">=</span>"Custom"<span style="color: blue;"> /></span></span></span></div>
<ul dir="ltr" style="text-align: left;">
<li><h3>
<b>Change Web Part Title and Description</b></h3>
</li>
</ul>
<div dir="ltr" style="text-align: left;">
<span style="font-size: small;">Those which are used when inserting the web part:<br />At
file YourWebPartName.webpart, exists under your Web Part folder, change
the text in the following nodes to some meaning full one:
</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<br /></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-size: small;"><span style="color: blue; font-family: "consolas";">
<</span><span style="color: #a31515; font-family: "consolas";">property</span><span style="color: blue; font-family: "consolas";"> </span><span style="color: red; font-family: "consolas";">name</span><span style="color: blue; font-family: "consolas";">=</span><span style="font-family: "consolas";">"<span style="color: blue;">Title</span>"<span style="color: blue;"> </span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">string</span>"<span style="color: blue;">></span></span>YourWebPartName<span style="font-family: "consolas";"><span style="color: blue;"></</span><span style="color: #a31515;">property</span><span style="color: blue;">></span></span></span></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-size: small;"><span style="color: blue; font-family: "consolas";">
<</span><span style="color: #a31515; font-family: "consolas";">property</span><span style="color: blue; font-family: "consolas";"> </span><span style="color: red; font-family: "consolas";">name</span><span style="color: blue; font-family: "consolas";">=</span><span style="font-family: "consolas";">"<span style="color: blue;">Description</span>"<span style="color: blue;"> </span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">string</span>"<span style="color: blue;">></span>My Visual WebPart<span style="color: blue;"></</span><span style="color: #a31515;">property</span><span style="color: blue;">></span></span></span></div>
<ul dir="ltr" style="text-align: left;">
<li><h3 style="text-align: left;">
Hide Chrome immediately when the Web Part is added:<span style="font-size: small;"><br /></span></h3>
</li>
</ul>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-size: small;">At file YourWebPartName.webpart, exists under your Web Part folder, add the following node under <span style="color: blue; font-family: "consolas";"><</span><span style="color: #a31515; font-family: "consolas";">properties</span><span style="color: blue; font-family: "consolas";">></span>:</span></div>
<div dir="ltr" style="text-align: left;">
<span style="font-size: small;"><span style="color: blue; font-family: "consolas";">
<</span><span style="color: #a31515; font-family: "consolas";">property</span><span style="color: blue; font-family: "consolas";"> </span><span style="color: red; font-family: "consolas";">name</span><span style="color: blue; font-family: "consolas";">=</span><span style="font-family: "consolas";">"<span style="color: blue;">ChromeType</span>"<span style="color: blue;"> </span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">chrometype</span>"<span style="color: blue;">></span>None<span style="color: blue;"></</span><span style="color: #a31515;">property</span><span style="color: blue;">></span></span></span></div>
<ul dir="ltr" style="text-align: left;">
<li><h3 style="text-align: left;">
Provide any default value for your Web Part properties:</h3>
</li>
</ul>
<div dir="ltr" style="text-align: left;">
<span style="font-size: small;">Similar to hiding the Chrome. At file YourWebPartName.webpart, exists under your Web Part folder, add something similar to the following node, under <span style="color: blue; font-family: "consolas";"><</span><span style="color: #a31515; font-family: "consolas";">properties</span><span style="color: blue; font-family: "consolas";">></span>:</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-size: small;"><span style="color: blue; font-family: "consolas";">
<</span><span style="color: #a31515; font-family: "consolas";">property</span><span style="color: blue; font-family: "consolas";"> </span><span style="color: red; font-family: "consolas";">name</span><span style="color: blue; font-family: "consolas";">=</span><span style="font-family: "consolas";">"<span style="color: blue;">ListName</span>"<span style="color: blue;"> </span><span style="color: red;">type</span><span style="color: blue;">=</span>"<span style="color: blue;">string</span>"<span style="color: blue;">>You Default List Name</span><span style="color: blue;"></</span><span style="color: #a31515;">property</span><span style="color: blue;">></span></span></span></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<br /></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<br /></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 12pt; text-align: left;">
<span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt;">
Kindly support me by giving some good feedback, adding some useful
comments, share it at Facebook and/or make a +1 for this article at
Google from the bottom of the page. </span></div>
<div align="center" class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;">
<span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt;">________________________________</span></div>
<div align="center" class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;">
<span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt;"> (Muhammad Altabba)</span><span dir="RTL" lang="AR-SA" style="font-family: "tahoma" , "sans-serif"; font-size: 12pt;">محمد الطباع </span></div>
<div align="center" class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;">
<span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt;">SharePoint Developer with Project Management and Team Leadership Activities</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<br /></div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
<br /></div>
</div>
Anonymoushttp://www.blogger.com/profile/04900863599980174013noreply@blogger.com0tag:blogger.com,1999:blog-1702248163802737652.post-45622409912548796332012-02-26T16:59:00.000+03:002017-12-27T02:49:28.335+03:00SharePoint 2010 Custom Welcome Control<div dir="rtl" style="text-align: right;" trbidi="on">
<div dir="ltr" style="text-align: left;">
Draft</div>
</div>
Anonymoushttp://www.blogger.com/profile/04900863599980174013noreply@blogger.com0tag:blogger.com,1999:blog-1702248163802737652.post-74432708410229095962012-02-24T23:09:00.010+03:002017-12-27T02:49:55.703+03:00SharePoint 2010 >> Possible ways to get logged in User Name & Handling Changes in FBA Users' Names if Membership Provider Name Changed<div dir="rtl" style="text-align: right;" trbidi="on">
<div>
<div>
<div align="center" style="text-align: center;">
<span dir="RTL" lang="AR-SA" style="font-family: "tahoma" , "sans-serif";">بسم الله الرحمن الرحيم </span></div>
<div dir="ltr" style="text-align: left;">
</div>
</div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
<br />
<div class="MsoNormal">
<span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt; line-height: 115%;">You may needed, in many cases, to have the logged in user name in SharePoint 2010. And you may found all old FBA (Form Based Authentication) user names changed suddenly after you change the Membership Provider name. For this or that, you need to read this article.</span></div>
<span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt; line-height: 115%;">To get the logged in user name you have the following methods available in SharePoint 2010 Web Part User Control:</span></div>
<ul dir="ltr" style="text-align: left;">
<li><span style="font-family: "symbol"; font-size: 12pt; line-height: 115%;"><span style="font: 7pt "Times New Roman";"></span></span><span dir="LTR"></span><span style="color: #0070c0; font-family: "consolas"; font-size: 9.5pt; line-height: 115%;">this</span><span style="font-family: "consolas"; font-size: 9.5pt; line-height: 115%;">.Page.User.Identity.Name</span><span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt; line-height: 115%;"></span></li>
<li><span style="font-family: "symbol"; font-size: 12pt; line-height: 115%;"></span><span dir="LTR"></span><span style="color: #2b91af; font-family: "consolas"; font-size: 9.5pt; line-height: 115%;">HttpContext</span><span style="font-family: "consolas"; font-size: 9.5pt; line-height: 115%;">.Current.User.Identity.Name</span><span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt; line-height: 115%;"> </span></li>
<li><span style="font-family: "symbol"; font-size: 12pt; line-height: 115%;"></span><span dir="LTR"></span><span style="color: #31859c; font-family: "consolas"; font-size: 9.5pt; line-height: 115%;">SPContext</span><span style="font-family: "consolas"; font-size: 9.5pt; line-height: 115%;">.Current.Web.CurrentUser.LoginName</span><span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt; line-height: 115%;"></span></li>
<li><span style="font-family: "symbol"; font-size: 12pt; line-height: 115%;"></span><span dir="LTR"></span><span style="color: #31859c; font-family: "consolas"; font-size: 9.5pt; line-height: 115%;">SPContext</span><span style="font-family: "consolas"; font-size: 9.5pt; line-height: 115%;">.Current.Web.CurrentUser.Name</span><span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt; line-height: 115%;"></span></li>
</ul>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
<span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt; line-height: 115%;">Actually, there is also: "System.Web.Security.Membership.GetUser().UserName". But it gave me Exception with message: [Method or operation is not implemented]</span></div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
<span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt; line-height: 115%;">However, I called each of the previous four properties for both windows (SharePoint System Account) and forms authentication. They returned with the following:</span></div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
<span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt; line-height: 115%;">For <span style="font-size: small;">"System Account" user with user called "</span></span><span style="font-family: "tahoma" , "sans-serif";"><span style="font-size: small;">user _name"</span> </span><span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt; line-height: 115%;">and domain named </span><span style="font-family: "tahoma" , "sans-serif";">"domain_name"</span><span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt; line-height: 115%;">:</span><br />
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableLightListAccent1" style="border-collapse: collapse; border: medium none; width: 601px;"><tbody>
<tr style="height: 12.6pt; mso-yfti-firstrow: yes; mso-yfti-irow: -1;"> <td style="background: #4F81BD; border: solid windowtext 1.0pt; height: 12.6pt; mso-background-themecolor: accent1; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 252.9pt;" width="337"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-yfti-cnfc: 5;">
<b><span style="color: white; font-family: "tahoma" , "sans-serif";">Property</span></b></div>
</td> <td style="background: #4F81BD; border-left: none; border: solid windowtext 1.0pt; height: 12.6pt; mso-background-themecolor: accent1; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;" width="264"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-yfti-cnfc: 1;">
<b><span style="color: white; font-family: "tahoma" , "sans-serif";">Returned Value</span></b></div>
</td> </tr>
<tr style="height: 13.4pt; mso-yfti-irow: 0;"> <td style="border-top: none; border: solid windowtext 1.0pt; height: 13.4pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 252.9pt;" width="337"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-yfti-cnfc: 68;">
<b><span style="font-family: "consolas"; font-size: 9.5pt;">Page.User.Identity.Name</span></b><b><span style="font-family: "tahoma" , "sans-serif";"> or</span></b></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-yfti-cnfc: 68; text-autospace: none;">
<b><span style="color: #2b91af; font-family: "consolas"; font-size: 9.5pt;">HttpContext</span></b><b><span style="font-family: "consolas"; font-size: 9.5pt;">.Current.User.Identity.Name</span></b></div>
</td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 13.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;" width="264"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-yfti-cnfc: 64;">
<span style="font-family: "tahoma" , "sans-serif";">0#.w|domain_name\user_name</span></div>
</td> </tr>
<tr style="height: 7.25pt; mso-yfti-irow: 1;"> <td style="border-top: none; border: solid windowtext 1.0pt; height: 7.25pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 252.9pt;" width="337"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-yfti-cnfc: 4;">
<b><span style="color: #31859c; font-family: "consolas"; font-size: 9.5pt;">SPContext</span></b><b><span style="font-family: "consolas"; font-size: 9.5pt;">.Current.Web.CurrentUser.LoginName</span></b><b><span style="font-family: "tahoma" , "sans-serif";"></span></b></div>
</td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 7.25pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;" width="264"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: "tahoma" , "sans-serif";">SHAREPOINT\system</span></div>
</td> </tr>
<tr style="height: 7.25pt; mso-yfti-irow: 2; mso-yfti-lastrow: yes;"> <td style="border-top: none; border: solid windowtext 1.0pt; height: 7.25pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 252.9pt;" width="337"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-yfti-cnfc: 68;">
<b><span style="color: #31859c; font-family: "consolas"; font-size: 9.5pt;">SPContext</span></b><b><span style="font-family: "consolas"; font-size: 9.5pt;">.Current.Web.CurrentUser.Name</span></b><b><span style="font-family: "tahoma" , "sans-serif";"></span></b></div>
</td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 7.25pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;" width="264"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-yfti-cnfc: 64;">
<span style="font-family: "tahoma" , "sans-serif";">System Account</span></div>
</td> </tr>
</tbody></table>
</div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
<div class="MsoNormal" dir="ltr" style="text-align: left;">
<div class="MsoNormal">
<span style="font-family: "tahoma" , "sans-serif";">For a Form Based Authenticated User called "fba_user" and Membership Provider called "membership_provider":</span><b><span style="color: white; font-family: "consolas"; font-size: 9.5pt; line-height: 115%;"> </span></b></div>
<table border="1" cellpadding="0" cellspacing="0" class="MsoTableLightListAccent1" style="border-collapse: collapse; border: medium none; width: 601px;"><tbody>
<tr style="height: 12.6pt; mso-yfti-firstrow: yes; mso-yfti-irow: -1;"> <td style="background: #4F81BD; border: solid windowtext 1.0pt; height: 12.6pt; mso-background-themecolor: accent1; mso-border-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 252.9pt;" width="337"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-yfti-cnfc: 5;">
<b><span style="color: white; font-family: "tahoma" , "sans-serif";">Property</span></b></div>
</td> <td style="background: #4F81BD; border-left: none; border: solid windowtext 1.0pt; height: 12.6pt; mso-background-themecolor: accent1; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;" width="264"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-yfti-cnfc: 1;">
<b><span style="color: white; font-family: "tahoma" , "sans-serif";">Returned Value</span></b></div>
</td> </tr>
<tr style="height: 7.25pt; mso-yfti-irow: 0;"> <td style="border-top: none; border: solid windowtext 1.0pt; height: 7.25pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 252.9pt;" width="337"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-yfti-cnfc: 68;">
<b><span style="font-family: "consolas"; font-size: 9.5pt;">Page.User.Identity.Name</span></b><b><span style="font-family: "tahoma" , "sans-serif";"> or</span></b></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-layout-grid-align: none; mso-yfti-cnfc: 68; text-autospace: none;">
<b><span style="color: #2b91af; font-family: "consolas"; font-size: 9.5pt;">HttpContext</span></b><b><span style="font-family: "consolas"; font-size: 9.5pt;">.Current.User.Identity.Name</span></b></div>
</td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 7.25pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;" width="264"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-yfti-cnfc: 64;">
<span style="font-family: "tahoma" , "sans-serif";">0#.f|membership_provider|fba_user</span></div>
</td> </tr>
<tr style="height: 12.6pt; mso-yfti-irow: 1;"> <td style="border-top: none; border: solid windowtext 1.0pt; height: 12.6pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 252.9pt;" width="337"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-yfti-cnfc: 4;">
<b><span style="color: #31859c; font-family: "consolas"; font-size: 9.5pt;">SPContext</span></b><b><span style="font-family: "consolas"; font-size: 9.5pt;">.Current.Web.CurrentUser.LoginName</span></b><b><span style="font-family: "tahoma" , "sans-serif";"></span></b></div>
</td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 12.6pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;" width="264"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in;">
<span style="font-family: "tahoma" , "sans-serif";">0#.f|membership_provider|fba_user</span></div>
</td> </tr>
<tr style="height: 13.4pt; mso-yfti-irow: 2; mso-yfti-lastrow: yes;"> <td style="border-top: none; border: solid windowtext 1.0pt; height: 13.4pt; mso-border-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 252.9pt;" width="337"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-yfti-cnfc: 68;">
<b><span style="color: #31859c; font-family: "consolas"; font-size: 9.5pt;">SPContext</span></b><b><span style="font-family: "consolas"; font-size: 9.5pt;">.Current.Web.CurrentUser.Name</span></b><b><span style="font-family: "tahoma" , "sans-serif";"></span></b></div>
</td> <td style="border-bottom: solid windowtext 1.0pt; border-left: none; border-right: solid windowtext 1.0pt; border-top: none; height: 13.4pt; mso-border-alt: solid windowtext .5pt; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding: 0in 5.4pt 0in 5.4pt; width: 2.75in;" width="264"><div class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; mso-yfti-cnfc: 64;">
<span style="font-family: "tahoma" , "sans-serif";">fba_user</span></div>
</td> </tr>
</tbody></table>
</div>
</div>
</div>
<br />
<div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
<span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt; line-height: 115%;">But, the value for the last one (</span><span style="font-family: "tahoma" , "sans-serif";">SPContext.Current.Web.CurrentUser.Name</span><span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt; line-height: 115%;">) could be changed to the format: 0#.f|membership_provider|fba_user, instantly, if you changed the membership provider named! This means that the user name will be ugly. Moreover, this ugly name will be shown in the ribbon!</span></div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
<span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt; line-height: 115%;">However, get relaxed you can easily fix the name at your code; you can just extract the username from the long text. This can be easily done by:</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<br />
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="color: blue; font-family: "consolas"; font-size: 9.5pt;">public</span><span style="font-family: "consolas"; font-size: 9.5pt;"> <span style="color: blue;">string</span> GetFlatUserName()<o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;">{<o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> <span style="color: green;">//First,
be sure that the user is not anonymous user:</span><o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> <span style="color: blue;">if</span>
(<span style="color: #2b91af;">SPContext</span>.Current == <span style="color: blue;">null</span> || <span style="color: #2b91af;">SPContext</span>.Current.Web.CurrentUser
== <span style="color: blue;">null</span>)<o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> <span style="color: blue;">return</span> <span style="color: #a31515;">"Anonymous"</span>;<o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> <span style="color: green;">//Second,
parse it:</span><o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> <span style="color: blue;">else</span><o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> <span style="color: blue;">string</span> flatUserName = <span style="color: blue;">this</span>.Page.User.Identity.Name;<o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> <span style="color: blue;">if</span> (flatUserName.Contains(<span style="color: #a31515;">"\\"</span>))<o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> flatUserName =
flatUserName.Substring(flatUserName.IndexOf(<span style="color: #a31515;">"\\"</span>)
+ 1);<o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> <span style="color: blue;">else</span> <span style="color: blue;">if</span> (flatUserName.Contains(<span style="color: #a31515;">"|"</span>))<o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> {<o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> flatUserName =
flatUserName.Substring(flatUserName.IndexOf(<span style="color: #a31515;">"|"</span>)
+ 1);<o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> <span style="color: blue;">return</span> flatUserName;<o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;"> }<o:p></o:p></span></div>
<div class="MsoNormal" style="direction: ltr; margin-bottom: 0.0001pt; unicode-bidi: embed;">
<span style="font-family: "consolas"; font-size: 9.5pt;">}<o:p></o:p></span></div>
</div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
<span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt; line-height: 115%;">For more on fixing the ugly name shown in the Ribbon check: <a href="http://practicalsharepoint2010.blogspot.com/2012/02/sharepoint-2010-custom-welcome-control.html">SharePoint 2010 Custom Welcome Control</a>)</span></div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
<br /></div>
<div class="MsoNormal" style="line-height: normal; margin-bottom: 12pt;">
</div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 12pt; text-align: left;">
<span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt;"> Kindly support me by giving some good feedback, adding some useful comments, share it at Facebook and/or make a +1 for this article at Google from the bottom of the page. </span></div>
<div align="center" class="MsoNormal" style="line-height: normal; margin-bottom: .0001pt; margin-bottom: 0in; text-align: center;">
<span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt;">________________________________</span></div>
<div align="center" class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;">
<span dir="RTL" lang="AR-SA" style="font-family: "tahoma" , "sans-serif"; font-size: 12pt;"></span><span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt;"> (Muhammad Altabba)</span><span dir="RTL" lang="AR-SA" style="font-family: "tahoma" , "sans-serif"; font-size: 12pt;">محمد الطباع </span><span dir="LTR"></span><span dir="LTR"></span><span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt;"><span dir="LTR"></span><span dir="LTR"></span></span></div>
<div align="center" class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: center;">
<span style="font-family: "tahoma" , "sans-serif"; font-size: 12pt;">SharePoint Developer with Project Management and Team Leadership Activities</span></div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
<br /></div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/04900863599980174013noreply@blogger.com1tag:blogger.com,1999:blog-1702248163802737652.post-5150525844085678762012-02-14T16:12:00.000+03:002017-12-27T02:50:43.199+03:00Configuring Windows Users for SharePoint 2010 Administration and Development<div dir="rtl" style="text-align: right;" trbidi="on">
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="background: none repeat scroll 0% 0% white; margin: 12pt 0in 0.0001pt; text-align: center; vertical-align: baseline;">
</div>
<div align="center" class="MsoNormal" style="text-align: center;">
</div>
<div align="center" class="MsoNormal" style="text-align: center;">
<b><span dir="RTL" lang="AR-SA" style="border: 1pt none; color: black; font-family: "tahoma" , "sans-serif"; font-size: 12pt; font-weight: normal; line-height: 115%; padding: 0in;">بسم الله الرحمن الرحيم</span></b><b><span style="border: 1pt none; color: black; font-family: "tahoma" , "sans-serif"; font-size: 12pt; font-weight: normal; line-height: 115%; padding: 0in;"></span></b></div>
<div dir="ltr" style="background: none repeat scroll 0% 0% white; margin: 12pt 0in 0.0001pt; text-align: center; vertical-align: baseline;">
<b><span style="border: 1pt none; color: black; font-family: "arial" , "sans-serif"; font-size: 14pt; padding: 0in;"></span></b></div>
<div dir="ltr" style="background: none repeat scroll 0% 0% white; font-family: Arial,Helvetica,sans-serif; margin: 12pt 0in 0.0001pt; text-align: left; vertical-align: baseline;">
<b><span style="border: 1pt none; color: black; font-size: 14pt; padding: 0in;">Configure a users to do Administration and Development on a Web Application</span></b></div>
<div class="MsoNormal" dir="ltr" style="font-family: Arial,Helvetica,sans-serif; line-height: normal; margin: 12pt 0in 0.0001pt; text-align: left;">
<b><span style="font-size: 10.5pt;">You will need to do two things:</span></b></div>
<div dir="ltr" style="background: none repeat scroll 0% 0% white; font-family: Arial,Helvetica,sans-serif; margin: 12pt 0in 0.0001pt 0.75in; text-align: left; text-indent: -0.5in; vertical-align: baseline;">
<b style="mso-bidi-font-weight: normal;"><span style="color: black;">I)<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></b><span dir="LTR"></span><b><span style="border: 1pt none; color: black; padding: 0in;">Give user Full Control at Web Application Level Permission Policies</span></b><span style="color: black;"></span></div>
<div class="MsoNormal" dir="ltr" style="font-family: Arial,Helvetica,sans-serif; line-height: normal; margin: 12pt 0in 0.0001pt; orphans: 2; outline-width: 0px; text-align: left; widows: 2; word-spacing: 0px;">
<span style="color: black; font-size: 10.5pt;">Follow those steps as provided in </span><a href="http://technet.microsoft.com/en-us/library/ff608071.aspx" target="_blank">Manage permission policies for a Web application (SharePoint Server 2010)</a>:<span style="color: black; font-size: 10.5pt;"></span></div>
<ol dir="ltr" start="1" style="font-family: Arial,Helvetica,sans-serif; margin-top: 0in; text-align: left;" type="1">
<li class="MsoNormal" style="color: black; line-height: normal; margin-bottom: 0.0001pt;"><span style="font-size: 10pt;">Verify that you have the following administrative credentials:</span></li>
</ol>
<div class="MsoNormal" dir="ltr" style="font-family: Arial,Helvetica,sans-serif; line-height: normal; margin: 0in 0in 0.0001pt 66pt; text-align: left; text-indent: -0.25in;">
<span style="color: black; font-size: 10pt;">·<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span dir="LTR"></span><span style="color: black; font-size: 10pt;">You must be a member of the Farm Administrators group on the computer that is running the SharePoint Central Administration Web site.</span></div>
<ol dir="ltr" start="2" style="font-family: Arial,Helvetica,sans-serif; margin-top: 0in; text-align: left;" type="1">
<li class="MsoNormal" style="color: black; line-height: normal; margin-bottom: 0.0001pt;"><span style="font-size: 10pt;">On the Central Administration Web site, in the <b>Application Management</b> section, click <b>Manage web applications</b>.</span></li>
<li class="MsoNormal" style="color: black; line-height: normal; margin-bottom: 0.0001pt;"><span style="font-size: 10pt;">Click to highlight the line for the Web application whose permission policy you want to manage.</span></li>
<li class="MsoNormal" style="color: black; line-height: normal; margin-bottom: 0.0001pt;"><span style="font-size: 10pt;">In the Policy group of the ribbon, click <b>User Policy</b>.</span></li>
<li class="MsoNormal" style="color: black; line-height: normal; margin-bottom: 0.0001pt;"><span style="font-size: 10pt;">In the Policy for Web Application dialog box, select the check box next to the user or group that you want to manage, and then click <b>Add Users</b>.</span></li>
<li class="MsoNormal" style="color: black; line-height: normal; margin-bottom: 0.0001pt;"><span style="font-size: 10pt;">In the Add Users dialog box, in the <b>Zone</b> list, click the zone to which you want the permission policy to apply.</span></li>
<li class="MsoNormal" style="color: black; line-height: normal; margin-bottom: 0.0001pt;"><span style="font-size: 10pt;">In the <b>Choose Users</b> section, type the user names, group names, or e-mail addresses that you want to add to the permission policy. You can also click the applicable icon to check a name or browse for names.</span></li>
<li class="MsoNormal" style="color: black; line-height: normal; margin-bottom: 0.0001pt;"><span style="font-size: 10pt;">In the <b>Choose Permissions</b> section, select the permissions that you want the users to have. <i>In case that you want the user to be able to do everything including deployment, you choose “<b>Full Control</b>”.</i></span></li>
<li class="MsoNormal" style="color: black; line-height: normal; margin-bottom: 0.0001pt;"><span style="font-size: 10pt;">In the <b>Choose System Settings</b> section, check <b>Account operates as System</b> if you want to specify whether a user account should be displayed as SHAREPOINT\System instead of the actual accounts that perform specific tasks within the SharePoint environment.</span></li>
<li class="MsoNormal" style="color: black; line-height: normal; margin-bottom: 0.0001pt;"><span style="font-size: 10pt;">Click <b>Finish</b>.</span></li>
</ol>
<div dir="ltr" style="background: none repeat scroll 0% 0% white; font-family: Arial,Helvetica,sans-serif; margin: 12pt 0in 0.0001pt 0.75in; text-align: left; text-indent: -0.5in; vertical-align: baseline;">
<b><span style="border: 1pt none; color: black; padding: 0in;">II)<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-size: 7pt; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span></b><span dir="LTR"></span><b><span style="border: 1pt none; color: black; padding: 0in;">Provide the User with the ability to run the needed tools as Administrator:</span></b></div>
<div dir="ltr" style="background: none repeat scroll 0% 0% white; font-family: Arial,Helvetica,sans-serif; margin: 12pt 0in 0.0001pt; text-align: left; vertical-align: baseline;">
<b><span style="border: 1pt none; color: black; font-size: 10pt; font-weight: normal; padding: 0in;">After login to the server, the user must be able to run applications and tools, provided by Microsoft, like: </span></b><b><span style="border: 1pt none; color: black; font-size: 10pt; padding: 0in;">SharePoint PowerShell</span></b><b><span style="border: 1pt none; color: black; font-size: 10pt; font-weight: normal; padding: 0in;">,</span></b><b><span style="border: 1pt none; color: black; font-size: 10pt; padding: 0in;"> Visual Studio</span></b><b><span style="border: 1pt none; color: black; font-size: 10pt; font-weight: normal; padding: 0in;">, </span></b><b><span style="border: 1pt none; color: black; font-size: 10pt; padding: 0in;">Command Prompt</span></b><b><span style="border: 1pt none; color: black; font-size: 10pt; font-weight: normal; padding: 0in;">, </span></b><b><span style="border: 1pt none; color: black; font-size: 10pt; padding: 0in;">SPMetal…</span></b></div>
<div dir="ltr" style="background: none repeat scroll 0% 0% white; font-family: Arial,Helvetica,sans-serif; margin: 12pt 0in 0.0001pt; text-align: left; vertical-align: baseline;">
<b><span style="border: 1pt none; color: black; font-size: 10pt; font-weight: normal; padding: 0in;">And he must be able to install and run, as an administrator, programs and tools like: </span></b><b><span style="border: 1pt none; color: black; font-size: 10pt; padding: 0in;">CAML Query Builder</span></b><b><span style="border: 1pt none; color: black; font-size: 10pt; font-weight: normal; padding: 0in;">.</span></b></div>
<div dir="ltr" style="background: none repeat scroll 0% 0% white; font-family: Arial,Helvetica,sans-serif; margin: 12pt 0in 0.0001pt; text-align: left; vertical-align: baseline;">
<b><span style="border: 1pt none; color: black; font-size: 10pt; font-weight: normal; padding: 0in;">You may manage to do this by adding the user to the </span></b><b><span style="border: 1pt none; color: black; font-size: 10pt; padding: 0in;">Local Administrators</span></b><b><span style="border: 1pt none; color: black; font-size: 10pt; font-weight: normal; padding: 0in;"> group; Or, any other good way.</span></b><b><span style="color: black; font-size: 10pt;"></span></b></div>
<div class="MsoNormal" dir="ltr" style="font-family: Arial,Helvetica,sans-serif; line-height: normal; margin: 12pt 0in 0.0001pt; orphans: 2; outline-width: 0px; text-align: left; widows: 2; word-spacing: 0px;">
However, the previous configuring will not give the user the ability to do administration control on the farm level. If you in need for that check the next section.</div>
<div class="MsoNormal" dir="ltr" style="font-family: Arial,Helvetica,sans-serif; line-height: normal; margin: 12pt 0in 0.0001pt; text-align: left;">
<b><span style="font-size: 14pt;">Plan for Farm Administration User:</span></b></div>
<div class="MsoNormal" dir="ltr" style="font-family: Arial,Helvetica,sans-serif; line-height: normal; margin: 12pt 0in 0.0001pt; text-align: left;">
To be able to act as an administrator on all SharePoint web applications and be able to configure thins like Quota and Service Applications (such as Search and Profile Synchronization), a user has to be a Farm Administrator. For that you have to do many things. For more information about managing Farm Administrators, kindly check this article: <a href="http://blog.octavie.nl/index.php/2011/11/07/creating-additional-sharepoint-2010-farm-administrators/" target="_blank">Creating Additional SharePoint 2010 Farm Administrators</a>.<br />
<span style="font-family: "tahoma" , sans-serif;"><br clear="all" /></span>
<div style="text-align: center;">
<span style="font-family: "tahoma" , sans-serif;">________________________________</span><br />
<div style="text-align: center;">
<span style="font-family: "tahoma" , sans-serif;">محمد الطباع</span> (<span style="font-family: "tahoma" , sans-serif;">Muhammad Altabba)</span></div>
</div>
<div style="text-align: center;">
<span style="font-family: "tahoma" , sans-serif;">SharePoint Developer with Project Management and Team Leadership Activities</span></div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/04900863599980174013noreply@blogger.com0tag:blogger.com,1999:blog-1702248163802737652.post-1975862233417674962012-02-06T22:48:00.000+03:002017-12-27T02:51:11.806+03:00Removing selection dotted borders around links that shows up on focus in Internet Explorer!<div dir="rtl" style="text-align: right;" trbidi="on">
<div style="font-family: Arial,Helvetica,sans-serif; text-align: center;">
</div>
<div align="center" style="font-family: Arial,Helvetica,sans-serif; text-align: center;">
<span dir="RTL" lang="AR-SA">بسم الله الرحمن الرحيم</span></div>
<div style="font-family: Arial,Helvetica,sans-serif;">
<div class="MsoNormal" dir="ltr" style="text-align: left;">
Dear all,</div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
If you want to remove the selection dotted borders, that is made by Internet Explorer on links, that shows up when there is a focus on a link; when for example the user clicks on that link. You can add the following to your page. Absolutely, if you are using ASP.net, you will put this in the master page:<span style="font-size: 9.5pt; line-height: 115%;"> </span></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="color: blue; font-size: 9.5pt;"><</span><span style="color: maroon; font-size: 9.5pt;">script</span><span style="font-size: 9.5pt;"> <span style="color: red;">type</span><span style="color: blue;">="text/javascript"</span> <span style="color: red;">src</span><span style="color: blue;">="</span></span> <span style="color: blue; font-size: 9.5pt;">http://code.jquery.com/jquery-1.7.1.js"></</span><span style="color: maroon; font-size: 9.5pt;">script</span><span style="color: blue; font-size: 9.5pt;">></span></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<br /></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="color: blue; font-size: 9.5pt;"><</span><span style="color: maroon; font-size: 9.5pt;">script</span><span style="font-size: 9.5pt;"> <span style="color: red;">language</span><span style="color: blue;">="javascript"</span> <span style="color: red;">type</span><span style="color: blue;">="text/javascript"></span></span></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-size: 9.5pt;"> jQuery(document).ready(<span style="color: blue;">function</span> () {</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-size: 9.5pt;"> jQuery(<span style="color: maroon;">'a'</span>).focus(<span style="color: blue;">function</span> () { jQuery(<span style="color: blue;">this</span>).blur(); });</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-size: 9.5pt;"> });</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="color: blue; font-size: 9.5pt;"></</span><span style="color: maroon; font-size: 9.5pt;">script</span><span style="color: blue; font-size: 9.5pt;">></span></div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
The code will execute when the page finish loading, and will be applied on all ‘a’ tags. And, it will remove the focus on that tag immediately after focusing on it.</div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
For more information about <b>ready()</b> function check:<span style="font-size: 9.5pt; line-height: 115%;"> <b>Tutorials: Introducing $(document).ready()</b> </span>at url: (<a href="http://docs.jquery.com/Tutorials:Introducing_$%28document%29.ready%28%29%29">http://docs.jquery.com/Tutorials:Introducing_$(document).ready()<b><span style="font-size: 9.5pt; line-height: 115%;">)</span></b></a><b><span style="font-size: 9.5pt; line-height: 115%;">. </span></b>And for more information about <b>focus()</b> function<b><span style="font-size: 9.5pt; line-height: 115%;">: </span></b><a href="http://api.jquery.com/focus/">http://api.jquery.com/focus/</a>. Also, you can check <a href="http://api.jquery.com/blur/">http://api.jquery.com/blur/</a> for information about <b>blur()</b>.</div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
However, if you need to still apply this after Ajax calls! You will need to do as the following. In case, you are using ASP.Net and C#:</div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="color: green; font-size: 9.5pt;">//Remove focus on links:</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="color: blue; font-size: 9.5pt;">string</span><span style="font-size: 9.5pt;"> scriptblock = <span style="color: #a31515;">"jQuery('a').focus(function(){jQuery(this).blur();});"</span>;</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="color: #2b91af; font-size: 9.5pt;">ScriptManager</span><span style="font-size: 9.5pt;">.RegisterClientScriptBlock(<span style="color: blue;">this</span>.upLibraryEvents,</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-size: 9.5pt;"> <span style="color: blue;">typeof</span>(<span style="color: #2b91af;">UpdatePanel</span>),</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: normal; margin-bottom: 0.0001pt; text-align: left;">
<span style="font-size: 9.5pt;"> <span style="color: #a31515;">"RemoveFocus"</span>, scriptblock, <span style="color: blue;">true</span>);</span></div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
<br /></div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
You may ask: Why? Why caring about this? This is not even noticeable from normal user! And even if, the user noticed it, it does no harm!</div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
The answer is that it is just to be used if the one, who is in somehow, responsible of quality assurance of your sites, tends to check the site not as a <b><u>normal</u></b> user!<br />
Thanks to Alaa' Alkateeb.</div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
Best Wishes,<br />
<br />
Kindly support me by giving some good feedback, adding some useful comments, share it at Facebook and/or make a +1 for the article at Google from the bottom of the page. <br />
<br />
<div style="text-align: center;">
________________________________<br />
<div style="text-align: center;">
محمد الطباع (Muhammad Altabba)</div>
</div>
<div style="text-align: center;">
SharePoint Developer with Project Management and Team Leadership Activities</div>
</div>
<div dir="ltr" style="text-align: left;">
</div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/04900863599980174013noreply@blogger.com0tag:blogger.com,1999:blog-1702248163802737652.post-64239344178704834962011-12-13T10:26:00.000+03:002017-12-27T02:51:54.361+03:00Search Configuration Best Practices<div dir="rtl" style="text-align: right;" trbidi="on">
<div style="font-family: Arial,Helvetica,sans-serif;">
<div dir="ltr" style="text-align: left;">
</div>
<div dir="ltr" style="text-align: left;">
<span lang="EN-AU" style="font-size: small; line-height: 115%;"> This is the best practice I had find to configure search in SharePoint 2010:</span></div>
<ol dir="ltr" start="1" style="margin-top: 0in; text-align: left;" type="1"><ol start="1" style="margin-top: 0in;" type="a">
<li class="MsoNormal"><span style="font-size: large;"><span lang="EN-AU" style="line-height: 115%;">Add a crawl component to a Search Service Application</span></span></li>
</ol>
</ol>
<div class="MsoNormal" dir="ltr" style="line-height: 140%; margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in; vertical-align: top;">
<span lang="EN-AU" style="font-size: small; line-height: 140%;">1)<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span dir="LTR" style="font-size: small;"></span><span lang="EN-AU" style="font-size: small; line-height: 140%;">In Central Administration, in the <b>Application Management</b> section, click <b>Manage service applications</b>.</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: 140%; margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in; vertical-align: top;">
<span lang="EN-AU" style="font-size: small; line-height: 140%;">2)<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span dir="LTR" style="font-size: small;"></span><span lang="EN-AU" style="font-size: small; line-height: 140%;">On the Service Applications page, click the name of the <b>Search Service Application</b> to which you want to add a crawl component.</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: 140%; margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in; vertical-align: top;">
<span lang="EN-AU" style="font-size: small; line-height: 140%;">3)<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span dir="LTR" style="font-size: small;"></span><span lang="EN-AU" style="font-size: small; line-height: 140%;">On the Search Administration page, in the <b>Search Application Topology</b> section, click the <b>Modify</b> button.</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: 140%; margin: 0in 0in 11.25pt 1.25in; text-align: left; vertical-align: top;">
<span lang="EN-AU" style="font-size: small; line-height: 140%;"><img alt="note" src="https://i.technet.microsoft.com/ee805950.note%28en-us,Office.14%29.gif" height="10" id="_x0000_i1025" width="10"><b>Note: </b>The SharePoint Search topology cannot be changed in Standalone installations.</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: 140%; margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in; vertical-align: top;">
<span lang="EN-AU" style="font-size: small; line-height: 140%;">4)<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span dir="LTR" style="font-size: small;"></span><span lang="EN-AU" style="font-size: small; line-height: 140%;"> On the Manage Search Topology page, click <b>New</b>, and then click <b>Crawl Component</b>.</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: 140%; margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in; vertical-align: top;">
<span lang="EN-AU" style="font-size: small; line-height: 140%;">5)<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span dir="LTR" style="font-size: small;"></span><span lang="EN-AU" style="font-size: small; line-height: 140%;">In the <b>Add Crawl Component</b> dialog box, in the <b>Server</b> list, click the farm server to which you want to add the crawl component.</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: 140%; margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in; vertical-align: top;">
<span lang="EN-AU" style="font-size: small; line-height: 140%;">6)<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span dir="LTR" style="font-size: small;"></span><span lang="EN-AU" style="font-size: small; line-height: 140%;">In the <b>Associated Crawl Database</b> list, click the crawl database you want to associate with the new crawl component.</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: 140%; margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in; vertical-align: top;">
<span lang="EN-AU" style="font-size: small; line-height: 140%;">7)<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span dir="LTR" style="font-size: small;"></span><span lang="EN-AU" style="font-size: small; line-height: 140%;">In the <b>Temporary Location of Index</b> field, you can optionally enter the location on the server that will be used for creating the index files before propagating them to the query components. If you want to accept the default location, leave the contents of this field unchanged.</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: 140%; margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in; vertical-align: top;">
<span lang="EN-AU" style="font-size: small; line-height: 140%;">8)<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span dir="LTR" style="font-size: small;"></span><span lang="EN-AU" style="font-size: small; line-height: 140%;">Click <b>OK</b> to add the new crawl component to the job queue.</span></div>
<div class="MsoNormal" dir="ltr" style="line-height: 140%; margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in; vertical-align: top;">
<span lang="EN-AU" style="font-size: small; line-height: 140%;">9)<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span dir="LTR" style="font-size: small;"></span><span lang="EN-AU" style="font-size: small; line-height: 140%;">On the Manage Search Topology page, click the <b>Apply Topology Changes</b> button to start the SharePoint timer job that will add the new crawl component to the farm on the specified server.</span></div>
<ol dir="ltr" start="1" style="margin-top: 0in; text-align: left;" type="1"><ol start="2" style="margin-top: 0in;" type="a">
<li class="MsoNormal" style="color: black;"><span style="font-size: large;"><span style="background: none repeat scroll 0% 0% white; line-height: 115%;">Create or Edit a content source.</span> <span style="background: none repeat scroll 0% 0% white; color: black; line-height: 115%;"> </span></span></li>
</ol>
</ol>
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;"></span></div>
<div dir="ltr" style="font-family: Arial,Helvetica,sans-serif; text-align: left;">
</div>
<div class="MsoNormal" dir="ltr" style="font-family: Arial,Helvetica,sans-serif; margin-left: 1in; text-align: left;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;">From </span><span lang="EN-AU" style="font-size: small; line-height: 115%;">Search</span><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;"> Administration Page, in the<span class="apple-converted-space"> </span><b>Crawling</b><span class="apple-converted-space"> </span>section at the quick navigation bar, click<span class="apple-converted-space"> </span><b>Content Sources</b>.</span></div>
<div class="MsoNormal" dir="ltr" style="font-family: Arial,Helvetica,sans-serif; margin-left: 1in; text-align: left;">
<span style="font-size: small;"><br /></span></div>
<div style="font-family: Arial,Helvetica,sans-serif;">
<h3 dir="ltr" style="margin: 0in 0in 0.0001pt 0.75in; text-align: left;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 112%;">To create a content source</span></h3>
<div dir="ltr" style="margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in;">
<span style="color: black; font-size: small;">1.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">On the Manage Content Sources page, click<span class="apple-converted-space"> </span><b>New Content Source</b>.</span></div>
<div dir="ltr" style="margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in;">
<span style="color: black; font-size: small;">2.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">On the Add Content Source page, in the<span class="apple-converted-space"> </span><b>Name</b><span class="apple-converted-space"> </span>section, in the<span class="apple-converted-space"> </span><b>Name</b><span class="apple-converted-space"> </span>box, type a name for the new content source.</span></div>
<div dir="ltr" style="margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in;">
<span style="color: black; font-size: small;">3.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">In the<span class="apple-converted-space"> </span><b>Content Source Type</b><span class="apple-converted-space"> </span>section, select the type of content that you want to crawl.</span></div>
<div dir="ltr" style="margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in;">
<span style="color: black; font-size: small;">4.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">In the<span class="apple-converted-space"> </span><b>Start Addresses</b><span class="apple-converted-space"> </span>section, in the<span class="apple-converted-space"> </span><b>Type start addresses below (one per line)</b><span class="apple-converted-space"> </span>box, type the URLs from which the crawler should begin crawling.</span></div>
<div dir="ltr" style="margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in;">
<span style="color: black; font-size: small;">5.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">In the<span class="apple-converted-space"> </span><b>Crawl Settings</b><span class="apple-converted-space"> </span>section, select the crawling behavior that you want.</span></div>
<div dir="ltr" style="margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in;">
<span style="color: black; font-size: small;">6.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">In the<span class="apple-converted-space"> </span><b>Crawl Schedules</b><span class="apple-converted-space"> </span>section, to specify a schedule for full crawls, select a defined schedule from the<span class="apple-converted-space"> </span><b>Full Crawl</b><span class="apple-converted-space"> </span>list. A full crawl crawls all content that is specified by the content source, regardless of whether the content has changed. To define a full crawl schedule, click<span class="apple-converted-space"> </span><b>Create schedule</b>.</span></div>
<div dir="ltr" style="margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in;">
<span style="color: black; font-size: small;">7.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">To specify a schedule for incremental crawls, select a defined schedule from the<span class="apple-converted-space"> </span><b>Incremental Crawl</b><span class="apple-converted-space"> </span>list. An incremental crawl crawls content that is specified by the content source that has changed since the last crawl. To define a schedule, click<span class="apple-converted-space"> </span><b>Create schedule</b>. You can change a defined schedule by clicking<span class="apple-converted-space"> </span><b>Edit schedule</b>.</span></div>
<div dir="ltr" style="margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in;">
<span style="color: black; font-size: small;">8.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">To prioritize this content source, in the<span class="apple-converted-space"> </span><b>Content Source Priority</b><span class="apple-converted-space"> </span>section, on the<span class="apple-converted-space"> </span><b>Priority</b><span class="apple-converted-space"> </span>list, select<span class="apple-converted-space"> </span><b>Normal</b><span class="apple-converted-space"> </span>or<span class="apple-converted-space"> </span><b>High</b>.</span></div>
<div dir="ltr" style="margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in;">
<span style="color: black; font-size: small;">9.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">To immediately begin a full crawl, in the<span class="apple-converted-space"> </span><b>Start Full Crawl</b><span class="apple-converted-space"> </span>section, select the<span class="apple-converted-space"> </span><b>Start full crawl of this content source</b><span class="apple-converted-space"> </span>check box, and then click<span class="apple-converted-space"> </span><b>OK</b>.</span></div>
<h1 dir="ltr" style="margin: 13.5pt 0in 6pt 0.75in; text-align: left;">
<span style="font-size: small;">
</span><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;"> </span></h1>
<h3 dir="ltr" style="margin: 0in 0in 0.0001pt 0.75in; text-align: left;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 112%;">To edit a content source</span></h3>
<div dir="ltr" style="margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in;">
<span style="color: black; font-size: small;">1.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">You can edit a content source to change the schedule on which the content is crawled, the crawl start addresses, the content source priority, or the name of the crawl. Crawl settings and content type cannot be changed when editing a content source.</span></div>
<div dir="ltr" style="margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in;">
<span style="color: black; font-size: small;">2.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">On the Manage Content Sources page, in the list of content sources, point to the name of the content source that you want to edit, click the arrow that appears, and then click<span class="apple-converted-space"> </span><b>Edit</b>.</span></div>
<div dir="ltr" style="margin: 0in 0in 11.25pt 1.25in; text-align: left; text-indent: -0.25in;">
<span style="color: black; font-size: small;">3.<span style="-moz-font-feature-settings: normal; -moz-font-language-override: normal; font-size-adjust: none; font-stretch: normal; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal;"> </span></span><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">After you have made the changes that you want, select the<span class="apple-converted-space"> </span><b>Start full crawl of this content source</b><span class="apple-converted-space"> </span>check box, and then click<span class="apple-converted-space"> </span><b>OK</b>.</span></div>
<ol dir="ltr" start="1" style="margin-top: 0in; text-align: left;" type="1"><ol start="3" style="margin-top: 0in;" type="a">
<li class="MsoNormal" style="color: black;"><span style="font-size: large;"><span style="background: none repeat scroll 0% 0% white; line-height: 115%;">Add some crawling rules to include or exclude paths from crawling. </span><b><span style="background: none repeat scroll 0% 0% white; line-height: 115%;"><br />
</span></b></span></li>
</ol>
</ol>
<div dir="ltr" style="margin: 0in 0in 11.25pt 0.25in; text-align: left; text-indent: 0.5in;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">Add rules to exclude the following paths:</span></div>
<ol dir="ltr" start="1" style="margin-top: 0in; text-align: left;" type="1"><ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal" style="color: black;"><span style="background: none repeat scroll 0% 0% white; font-size: small; line-height: 115%;">http://*/_catalogs/*</span></li>
<li class="MsoNormal" style="color: black;"><span style="background: none repeat scroll 0% 0% white; font-size: small; line-height: 115%;">http://*/_layouts/*</span></li>
<li class="MsoNormal" style="color: black;"><span style="background: none repeat scroll 0% 0% white; font-size: small; line-height: 115%;">http://*/Lists/* </span></li>
<li class="MsoNormal" style="color: black;"><span style="background: none repeat scroll 0% 0% white; font-size: small; line-height: 115%;">http://*/Documents/*</span></li>
<li class="MsoNormal" style="color: black;"><span style="background: none repeat scroll 0% 0% white; font-size: small; line-height: 115%;">http://*/Forms/*</span></li>
<li class="MsoNormal" style="color: black;"><span style="background: none repeat scroll 0% 0% white; font-size: small; line-height: 115%;">http://.*?/DocLib[0-9]*/.*?</span></li>
</ul>
</ol>
<div class="MsoNormal" dir="ltr" style="margin-left: 0.75in; text-align: left;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;">Note: just for the last rule you have to check the option: “Use regular expression syntax for matching this rule”</span></div>
<div class="MsoNormal" dir="ltr" style="text-align: left; text-indent: 0.5in;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;">You can add a rule, to exclude some URL, as in the following screenshot:</span></div>
<div class="separator" dir="ltr" style="clear: both; text-align: center;">
<span style="font-size: small;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-vaWO4NguU2zp_6vEUeEb1jctpYA4hsQD0Amuko02tc-d5_GNcYIOVLCbJcTiyatdt5xDTUwiFA58C23ThVRL1U1PI3keDfwyfCOesU8Ff1Qj6STZ64Nt0i9nUhAtxajta5YPKr_Bc4k/s1600/exclude+rules.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-vaWO4NguU2zp_6vEUeEb1jctpYA4hsQD0Amuko02tc-d5_GNcYIOVLCbJcTiyatdt5xDTUwiFA58C23ThVRL1U1PI3keDfwyfCOesU8Ff1Qj6STZ64Nt0i9nUhAtxajta5YPKr_Bc4k/s1600/exclude+rules.png" /></a></span></div>
<div align="center" class="MsoNormal" dir="ltr" style="text-align: center;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;"> </span><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;">Adding a rule to exclude some URL</span></div>
<div align="center" class="MsoNormal" dir="ltr" style="text-align: center;">
<span style="font-size: small;"><br /></span></div>
<div align="center" class="MsoNormal" dir="ltr" style="text-align: center;">
<span style="font-size: small;"><br /></span></div>
<div class="MsoNormal" dir="ltr" style="margin-left: 0.25in; text-align: left; text-indent: 0.5in;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;">Add the following rule to forcibly include pages as normal http pages. Select the option “Include all items in this path” And check the two options: “Crawl complex URLs” and “Crawl SharePoint content as normal http pages”:</span></div>
<ol dir="ltr" start="1" style="margin-top: 0in; text-align: left;" type="1"><ul style="margin-top: 0in;" type="disc">
<li class="MsoNormal" style="color: black;"><span style="background: none repeat scroll 0% 0% white; font-size: small; line-height: 115%;">http://*/pages/*.*</span></li>
</ul>
</ol>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;">(Note: if you was using non publishing site you would then use “http://*/sitepages/*.*” and also the previous deny rules may have to be modified.)</span></div>
<div class="MsoNormal" dir="ltr" style="margin-left: 0.25in; text-align: left; text-indent: 0.5in;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;">You can do the previous include rule as in this screen shoot:</span></div>
<div class="separator" dir="ltr" style="clear: both; text-align: center;">
<span style="font-size: small;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik-FnFjkPXSQL6V5XiOhcC86Yhnky1O9HlxHxKHAScIkhUdmD3Nfsg4xJ0BM6CC8-pAL8bJWpRkejcmfmMyRtiXTISp7ZbOWlPBYI4qymYV1mwgMWr8S6CJ2P8ery1YzEv_lvdvwgZPwk/s1600/include+pages+rule.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik-FnFjkPXSQL6V5XiOhcC86Yhnky1O9HlxHxKHAScIkhUdmD3Nfsg4xJ0BM6CC8-pAL8bJWpRkejcmfmMyRtiXTISp7ZbOWlPBYI4qymYV1mwgMWr8S6CJ2P8ery1YzEv_lvdvwgZPwk/s1600/include+pages+rule.png" /></a></span></div>
<div class="MsoNormal" dir="ltr" style="text-align: center;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;"> </span><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;">Adding a rule to include all files that have extensions</span></div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;"> </span></div>
<div dir="ltr" style="text-align: left;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;"><br clear="all" style="page-break-before: always;" /> </span></div>
<div class="MsoNormal" dir="ltr" style="margin-left: 0.25in; text-align: left; text-indent: 0.5in;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;">Also, add the following rule to give the crawler the chance to browse the directories without including those directories in the search. Note: this role work with integration with the previous rule that include all files in the search.</span></div>
<div class="MsoNormal" dir="ltr" style="margin-left: 0.25in; text-align: left; text-indent: 0.5in;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;">You can do the previous include rule as in this screen shoot:</span></div>
<div class="separator" dir="ltr" style="clear: both; text-align: center;">
<span style="font-size: small;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfnreM2OIrGHPukE0BaH85orJy2dMraSUZZVIdG0U14BtnbT6BRnaoYIIo3f1fB4Mq85OGBiIzqxoXJvB312M9dWQH80d3fQUqM-iJqHFXfNbNcv6xuxE-UonCEwl5y9nY_hRW7XKSZKY/s1600/include+directories+rule.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhfnreM2OIrGHPukE0BaH85orJy2dMraSUZZVIdG0U14BtnbT6BRnaoYIIo3f1fB4Mq85OGBiIzqxoXJvB312M9dWQH80d3fQUqM-iJqHFXfNbNcv6xuxE-UonCEwl5y9nY_hRW7XKSZKY/s1600/include+directories+rule.png" /></a></span></div>
<div class="MsoNormal" dir="ltr" style="margin-left: 0.25in; text-align: center; text-indent: 0.5in;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;"> Adding rule to allow searching inside directories without including the directories them self.</span></div>
<div class="MsoNormal" dir="ltr" style="margin-left: 0.25in; text-align: left; text-indent: 0.5in;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;"><br />
</span><br />
<div class="MsoNormal" style="line-height: normal;">
<span style="font-size: small;">Unfortunately,
the previous configuration will work well only for sites that <b>do not have a
redirection page at the root</b>. An example, of a site that has a redirection
page at the root, is a multilingual site with a variation redirection page at
the root. However, if this is your case, simply do two things. First, replace
the rule: "http://*/Forms/*" with an exclude rules for those three:
"http://*/Forms/Thumbnails.aspx", "http://*/Forms/AllItems.aspx"
and "http://*/Forms/DispForm.aspx". Second, do not use any include
rules. This will make you rules list as following:</span></div>
<ul style="text-align: left;">
<li><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">http://*/_catalogs/*</span></li>
<li><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">http://*/_layouts/*</span></li>
<li><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">http://*/Lists/*</span></li>
<li><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">http://*/Documents/*</span></li>
<li><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">http://*/Forms/Thumbnails.aspx</span></li>
<li><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">http://*/Forms/AllItems.aspx</span></li>
<li><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">http://*/Forms/DispForm.aspx
</span></li>
<li><span style="background: none repeat scroll 0% 0% white; color: black; font-size: small;">http://.*?/DocLib[0-9]*/.*?</span></li>
</ul>
<br />
<div class="MsoNormal" style="line-height: normal; text-indent: 0.5in;">
<span style="font-size: small;"> <span style="background: none repeat scroll 0% 0% white; color: black;">Note: just for the last rule you have to
check the option: “Use regular expression syntax for matching this rule”.</span></span></div>
</div>
<div class="MsoNormal" dir="ltr" style="margin-left: 0.25in; text-align: left; text-indent: 0.5in;">
<div class="MsoNormal" style="line-height: normal;">
<span style="font-size: small;"><span style="background: none repeat scroll 0% 0% white; color: black;"></span></span></div>
</div>
<div class="MsoNormal" dir="ltr" style="margin-left: 0.25in; text-align: left; text-indent: 0.5in;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;">Enjoy!</span><br />
<span style="font-size: small;"><br /></span>
<span style="font-size: small;">Kindly support me by giving some good feedback, adding some useful comments, share it at Facebook and/or make a +1 for the article at Google from the bottom of the page.</span><br />
<span style="font-size: small;">Thanks to </span><span style="font-size: small;">Abdullah Sibai & </span><span style="font-size: small;">Firas Kassoumeh</span> <br />
<div style="text-align: center;">
<span style="font-size: small;">________________________________</span><br />
<div style="text-align: center;">
<span style="font-size: small;">محمد الطباع (Muhammad Altabba)</span></div>
</div>
<div style="text-align: center;">
<span style="font-size: small;">SharePoint Developer with Project Management and Team Leadership Activities</span></div>
</div>
<div class="MsoNormal" dir="ltr" style="text-align: left;">
<span style="background: none repeat scroll 0% 0% white; color: black; font-size: small; line-height: 115%;"> </span></div>
</div>
</div>
Anonymoushttp://www.blogger.com/profile/04900863599980174013noreply@blogger.com0