<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Mark Arend</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/markarend/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/markarend/feed.xml</link>
    <description>SharePoint 2010 Explorations</description>
    <lastBuildDate>Wed, 17 Apr 2019 04:12:08 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Host Named Site Collections (HNSC) for SharePoint 2010 Architects</title>
      <link>https://docs.microsoft.com/archive/blogs/markarend/host-named-site-collections-hnsc-for-sharepoint-2010-architects</link>
      <pubDate>Wed, 30 May 2012 16:20:07 GMT</pubDate>
      <dc:creator><![CDATA[Mark Arend]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/markarend/2012/05/30/host-named-site-collections-hnsc-for-sharepoint-2010-architects/</guid>
      <description><![CDATA[I recently came across a very good blog posting on Host Named Site Collections (HNSC), and I...]]></description>
      <content:encoded><![CDATA[<p>I recently came across a very good blog posting on Host Named Site Collections (HNSC), and I recommend it: <a href="https://blogs.msdn.com/b/kaevans/archive/2012/03/27/what-every-sharepoint-admin-needs-to-know-about-host-named-site-collections.aspx">What Every SharePoint Admin Needs to Know about Host Named Site Collections</a> by Kirk Evans.&#160; Kirk has lots of good details here that will help answer questions on this popular feature with some obscure underpinnings.</p>  <p>However, I worked up other material on HNSC some time ago that’s not found in Kirk’s article.&#160; Mine is targeted more to the SharePoint Architect who is considering the best way to design and use HNSC in a SharePoint farm. </p>  <p>One small discrepancy with Kirk’s article—he relates a commonly accepted fact of HNSC: “if you are going to implement host named site collections, you should not use a host header for the containing web application that houses the host named site collections or it will not work properly.”&#160; The most unfortunate thing about this is that it requires you to use different IP&#160; addresses or ports if you want more than one web application to host HNSC.&#160; Fortunately, I was able to find that Microsoft does indeed support Host Headers <em>and</em> HNSC on the same web application; I give the procedure below and tips for verifying support through Microsoft Premier.&#160; This provides an additional degree of flexibility for architecting your SharePoint farm.</p>  <h4><a name="_Ref284323877">Host Named Site Collections</a></h4>  <p>The mechanism for consolidating existing web applications into individual site collections, yet retain their existing URLs, is to use Host-Named Site Collections (HNSC). This is a feature of SharePoint that allows individual site collections to have their own top-level URL. This section explores pertinent points from TechNet article <a href="https://technet.microsoft.com/en-us/library/cc424952.aspx">Plan for host-named site collections (SharePoint Server 2010)</a>.</p>  <p><b>Benefits</b></p>  <ul>   <li>Much more scalable for vanity URLs because there can be thousands of site collections per web application, but only 20 web applications per farm.</li>    <li>Managed paths may still be used on an HNSC web application, so that the more familiar “path-based” site collections may be created.</li>    <ul>     <li>An explicit or wildcard managed path may be created in the “normal” way, so that non-HNSC site collections may be created on them, as usual. This is done using Central Admin.</li>      <li>Also, explicit and wildcard managed paths may be created on the web app that will apply to each HNSC site collection created. That is, each HNSC site collection will have the same managed paths that are created this way. This is done using PowerShell scripts; an example below shows adding these kind of managed paths..</li>   </ul> </ul>  <p><b>Drawbacks</b></p>  <ul>   <li>HNSC may only be created using PowerShell scripts (or programmatically), not via the SharePoint UI. </li>    <ul>     <li>This introduces additional effort in creating them, similar to the effort of creating an additional web application, which requires a farm administrator, but with the added requirement of having to execute a PowerShell script on one of the farm servers. This also means that a higher level of access—server administrator—is required to create new HNSC. It would be possible to develop a simple extension to SharePoint that could be executed from Central Administration (or other administration site) to call the appropriate PowerShell script, so that this operation could be delegated back to a farm administrator.</li>   </ul>    <li>HNSC cannot use alternate access mappings. Host-named site collections are automatically considered to be in the Default zone, and the URL of the request must not be modified between the end user and the server. </li> </ul>  <p><b>Special considerations </b></p>  <p>For using SSL and SSL with encryption offloading, some special considerations apply.</p>  <ul>   <li>Because SharePoint Server 2010 uses the public URL in the Default zone of the Web application to determine whether host-named site collections will be rendered as HTTP or SSL, you can now use host-named site collections with off-box SSL termination. There are 3 requirements to use SSL termination with host-named site collections:</li>    <ul>     <li>The public URL in the Default zone of the Web application must be an HTTPS-based URL.</li>      <li>The SSL terminator or reverse proxy must preserve the original HTTP host header from the client.</li>      <li>If the client SSL request is sent to the default SSL port (443), then the SSL terminator or reverse proxy must forward the decrypted HTTP request to the front-end Web server on the default HTTP port (80). If the client SSL request is sent to a non-default SSL port, then the SSL terminator or reverse proxy must forward the decrypted HTTP request to the front-end Web server on the same non-default port.</li>   </ul>    <li>To use host-named site collections with off-box SSL termination, configure your Web application as you normally would for SSL termination and ensure that it meets the requirements described above. In this scenario, SharePoint Server 2010 will render links of its host-named site collections in that Web application using HTTPS instead HTTP.</li>    <li>SharePoint Server 2010 does not support a host-named site collection using both HTTP- and SSL-based URLs simultaneously. If some host-named site collections need to be available over HTTP while other host-named site collections need to be available over SSL, separate the host-named site collections into two different Web applications dedicated for that type of access. In this scenario, HTTP host-named site collections should be in a Web application dedicated for HTTP access and SSL host-named site collections should be in a Web application dedicated for SSL access.</li> </ul>  <p>Both types of site collections may be mixed on the same web application. Comparison of features:</p>  <table border="1" cellspacing="0" cellpadding="0"><tbody>     <tr>       <td valign="top" width="211">         <p><b>Feature</b></p>       </td>        <td width="257">         <p><b>Path-Based Site Collection</b></p>       </td>        <td width="257">         <p><b>Host-Named Site Collection</b></p>       </td>     </tr>      <tr>       <td valign="top" width="211">         <p>Managed Paths</p>       </td>        <td width="257">         <p>YES</p>       </td>        <td width="257">         <p>YES*</p>       </td>     </tr>      <tr>       <td valign="top" width="211">         <p>Create new site collection at top level</p>       </td>        <td width="257">         <p>SharePoint UI</p>       </td>        <td width="257">         <p>PowerShell Script</p>       </td>     </tr>      <tr>       <td valign="top" width="211">         <p>Create new site collection on a managed path</p>       </td>        <td width="257">         <p>SharePoint UI</p>       </td>        <td width="257">         <p>PowerShell Script</p>       </td>     </tr>      <tr>       <td valign="top" width="211">         <p>Authentication Zone</p>       </td>        <td width="257">         <p>Choose: Default, Internet, Intranet, Extranet, Custom</p>       </td>        <td width="257">         <p>Default only</p>       </td>     </tr>      <tr>       <td valign="top" width="211">         <p>Alternate Access Mapping (AAM)</p>       </td>        <td width="257">         <p>YES</p>       </td>        <td width="257">         <p>No</p>       </td>     </tr>      <tr>       <td valign="top" width="211">         <p>SSL</p>       </td>        <td width="257">         <p>YES</p>       </td>        <td width="257">         <p>YES</p>       </td>     </tr>      <tr>       <td valign="top" width="211">         <p>SSL Termination (encryption offloading)</p>       </td>        <td width="257">         <p>YES</p>       </td>        <td width="257">         <p>YES**</p>       </td>     </tr>      <tr>       <td valign="top" width="211">         <p>Kerberos</p>       </td>        <td width="257">         <p>YES</p>       </td>        <td width="257">         <p>YES</p>       </td>     </tr>   </tbody></table>  <p>* Managed paths for HNSC and the site collections created on them must both be created using PowerShell scripts. The example later in this section shows both of these techniques.</p>  <p>** Offloading encryption for SSL sites is possible with HNSC, but has slightly more stringent requirements for configuration. Specifically: the public URL in the Default zone of the Web application must be an HTTPS-based URL, and the SSL terminator or reverse proxy must preserve the original HTTP host header from the client. Also, best to use standard ports 80 and 443.</p>  <p>Kerberos authentication works with HNSC as it does with an HH web application—must register a Service Principal Name (SPN) for the external URL on the identity of the application pool that hosts the web app.</p>  <p>The strategy recommended is:</p>  <ul>   <li>Create a <b>Host-Named Site Collection</b> for every request for a site that requires its own “vanity” URL. That these URLs can be either of the format <a href="https://newsite.bcbsfl.com">https://newsite.customer.com</a>, or even <a href="https://www.newsite.com">https://www.newsite.com</a>, as far as SharePoint is concerned.</li>    <ul>     <li>DNS must be configured to serve the appropriate addresses.&#160; If there are more than one web application in the farm that contain Host-Named Site Collections, then it will probably not be possible to use a wildcard DNS “A” record such as *.customer.com to direct all traffic correctly, but each HNSC will need a separate DNS “A” record. See analysis of options for creating multiple web apps, below.</li>      <li>This option is for a less frequent, more “long-term” type of configuration request, justifying the additional effort.</li>   </ul>    <li>Create a <b>Path-Based Site Collection</b> for every request for a site that falls in the category of an existing web application. These use URLs such as <a href="https://teams.bcbsfl.com/sites/TeamOne">https://teams.customer.com/sites/TeamOne</a>, where TeamOne is the path-based site collection that may be created through the SharePoint UI. Explicit managed paths may also be used, such as <a href="https://teams.customer.com/TeamTwo">https://teams.customer.com/TeamTwo</a>. </li>    <ul>     <li>This option is for a more frequent type, “immediate” type of configuration request for new teams, communities, projects, etc., and can be accomplished entirely within SharePoint without server or external dependencies.</li>   </ul> </ul>  <p>From an organization standpoint, it may be desirable to use a few individual web applications to organize sites by certain criteria, to better manage different types of sites from a standpoint of security, reliability, performance, scalability or SLA.&#160; For the examples below, we’ll consider two web applications labeled “Standard” and “Sensitive”, then deploy HNSC to each web application.</p>  <p>Basic instructions for creating HNSC assume there is only one web application that supports these on the farm. When deploying multiple web applications that each will host HNSC, some additional complexity is required to create the web applications correctly. The following table compares the options for accomplishing this.</p>  <h5>Options for creating multiple web apps for Host-Named Site Collections (HNSC)</h5>  <p>When creating multiple web applications in SharePoint, they are often configured to use different <b>Host Header</b> (HH) names to ensure uniqueness, while having the same IP address and port (80 or 443). Host Header names on web applications are largely incompatible with Host-Named Site Collections, but can be made to work in a supported way.&#160; The following table examines each option for creating multiple web apps, and their implications for HNSC:</p>  <table border="1" cellspacing="0" cellpadding="0"><tbody>     <tr>       <td valign="top" width="166">         <p><b>Option</b><b></b></p>       </td>        <td valign="top" width="386">         <p><b>Implications</b><b></b></p>       </td>        <td valign="top" width="160">         <p><b>Supported?</b><b></b></p>       </td>     </tr>      <tr>       <td valign="top" width="166">         <p>1. Create web apps using different <b>ports</b></p>       </td>        <td valign="top" width="386">         <p>Configure entirely through SharePoint UI.</p>          <p>Some HNSC will require nonstandard ports in URLs; e.g. <a href="https://teams.customer.com:81">https://teams.customer.com:81</a></p>          <p>All URLs must include port numbers (That is, <i>one</i> web application hosting HNSC could use default port 80, but any additional web apps hosting HNSC would need to use a different port, and this would be required in all URLs hosted by those web applications.)</p>       </td>        <td valign="top" width="160">         <p><b>Yes</b> (out-of-box)</p>       </td>     </tr>      <tr>       <td valign="top" width="166">         <p>2. Create web apps using different <b>IP addresses</b></p>       </td>        <td valign="top" width="386">         <p>Requires multiple IP addresses, one per each web app that’s hosting HNSC.</p>          <p>Must manually configure different IP addresses, per web app, per server.</p>          <p>Must create VIP for each HNSC web app</p>          <p>Must configure DNS for each HNSC to appropriate VIP</p>          <p>Gives desired URLs, consolidated into multiple web applications, separated by category to enforce security, performance, reliability and scalability.&#160; However, there is additional complexity of maintaining different IP addresses and mappings in DNS and the load balancer.</p>       </td>        <td valign="top" width="160">         <p><b>Yes</b> (KB927376, applies also to SharePoint 2010)</p>       </td>     </tr>      <tr>       <td valign="top" width="166">         <p>3. Create web apps using different <b>host headers</b></p>       </td>        <td valign="top" width="386">         <p>Blocks HNSC URLs being recognized by IIS.</p>          <p>Must manually configure IIS to bind HNSC URLs to unblock, per web app, per server.</p>          <p>This option has all the benefits of option 2, with the added benefit that DNS can be configured with wildcard third-level domain names so that creation of a new HNSC does not necessarily require a new DNS record.</p>       </td>        <td valign="top" width="160">         <p><b>Yes</b> (reference Microsoft Premier case 111022261144490)<b></b></p>       </td>     </tr>   </tbody></table>  <h4>Option 1 – Identify by Port</h4>  <p>This is the simplest approach, described in the reference article <a href="https://technet.microsoft.com/en-us/library/cc424952.aspx">Plan for host-named site collections (SharePoint Server 2010)</a>.&#160; </p>  <p>The problem with this approach is that if you want to configure more than one web application for HNSC, then only one of them may use default port 80 or 443, while the others must use different ports; many organizations don’t wish to require their users to enter ports for URLs to the various sites they plan for their intranet.</p>  <h4>Option 2 – Identify by IP Address</h4>  <p>This approach allows the creation of multiple web applications that are uniquely identified by IP address.&#160; This means that “clean” URLs may be presented to the end user, without ports.&#160; The drawbacks here are not necessarily terrible, but worth considering:</p>  <ul>   <li>Multiple IP addresses are required on the farm WFE servers; one per HNSC web application per WFE server.&#160; This isn’t hard to configure, but some companies have policies against it that must be waived with a business justification.</li>    <li>Creating a new HNSC web application means a new IP address must be provisioned onto each of the WFE servers, and into the load balancer, with a new Virtual IP (VIP) address as well.</li> </ul>  <p><b>IP Addresses.</b> The first web application configured to host HNSC could use the “default” IP address of the server, but each additional web application to host HNSC must have a unique IP address. To accomplish this, the Network Interface Card (NIC) providing user access on each WFE server must be configured with multiple IP addresses. Naturally IP addresses will be different across all servers.</p>  <p><b>Load Balancer.</b> The load balancer that distributes requests across all web front end servers must be configured with multiple Virtual IP (VIP) addresses. Each VIP will load balance out to the IP addresses associated with a separate web application across the WFE servers.</p>  <p><b>DNS.</b> Finally, DNS must be configured with the root URLs of the HNSC, each targeted to the appropriate load-balanced VIP. A wildcard “A” record like <b>*.customer.com</b> cannot be used, unless DNS can be configured to guarantee that it will first honor all explicit “A” records such as <b>teams.customer.com</b>.</p>  <p>The following diagram shows conceptually the relationship among these aspects, also illustrating how non-HNSC web applications are configured:</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/68/30/metablogapi/0336.image_6DAFB3AD.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-68-30-metablogapi/0336.image_5F00_6DAFB3AD.png"><img style="margin-right: auto; margin-left: auto; float: none; display: block; background-image: none;" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/68/30/metablogapi/2084.image_thumb_36F258A9.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-68-30-metablogapi/2084.image_5F00_thumb_5F00_36F258A9.png" width="653" height="326" /></a></p>  <p>In this diagram, each WFE has a “default” IP address; this is used for all requests to the server that are not host-named site collections, including Host Header web applications (e.g. mysite.customer.com, app.customer.com) and web applications distinguished with a separate port. Also, one web app hosting HNSC may also use this IP address. Then, additional IP addresses are shown, corresponding to each additional web application serving HNSC. Note, this arrangement minimizes the number of IP addresses required on each server. If that is not of great concern, it will be clearer to simply use a unique IP address for each HNSC web app, <i>not</i> configuring one of these on the default IP.</p>  <p>There must be a load-balanced VIP corresponding to each of the separate IP addresses across the WFE servers. VIP.1 is the “typical” VIP that distributes inbound requests to each server’s default IP address. VIP.2 distributes inbound requests to each server’s next additional IP address, and so on.</p>  <p>Note: for DNS entry <b>*.customer.com</b>, this will only work if DNS can be configured to examine inbound requests against all other explicit <b>A</b> records prior to following this wildcard entry.</p>  <p><strong>How to create web applications with different IP addresses for HNSC</strong></p>  <p>The following PowerShell scripts illustrate steps for configuring different IP addresses per web app, per server. This script creates two web apps, configures them to different IP addresses, then creates managed paths and a series of host-named site collections on the web apps. This approach follows <a href="https://support.microsoft.com/kb/927376">KB article 927376</a>, which gives the supported method for configuring web applications on different IP addresses. Written for MOSS 2007, KB article <a href="https://support.microsoft.com/kb/927376">927376</a> also applies to SharePoint 2010.</p>  <p><b>Full example scenario for option 2</b></p>  <p>1. Create web applications on the farm using host header names. Use the SharePoint UI to do this, or a PowerShell script such as the following.</p>  <table><tbody>     <tr>       <td> </td>        <td bgcolor="#cccccc"><font face="Courier New">           <p style="backcolor: #aaaaaa;"># Create web apps using Host Headers so multiple can be created on port 80.</p>            <p># Run this once per farm</p>            <p>New-SPWebApplication -ApplicationPool &quot;SharePoint Web Apps&quot; -Name &quot;Portal&quot; –HostHeader Portal -DataBaseName &quot;WSS_Content_Portal&quot; -DatabaseServer &quot;FARMSQL&quot; -Path &quot;C:\inetpub\wwwroot\wss\VirtualDirectories\Portal&quot; -Port 80 -URL &quot;https://Portal:80&quot; </p>            <p>New-SPWebApplication -ApplicationPool &quot;SharePoint Web Apps&quot; -Name &quot;Teams&quot; -HostHeader Teams -DataBaseName &quot;WSS_Content_Teams&quot; -DatabaseServer &quot;FARMSQL&quot; -Path &quot;C:\inetpub\wwwroot\wss\VirtualDirectories\Teams&quot; -Port 80 -URL &quot;https://Teams:80&quot; </p>         </font></td>     </tr>   </tbody></table>  <p>2. Change the bindings on the web applications just created in order to use IP addresses. It’s recommended to do this using PowerShell because the scripts can be created ahead of time and reviewed for correctness over multiple runs, instead of relying on a manual configuration via IIS manager each time. Note that the IP addresses will be different for each WFE server.</p>  <table><tbody>     <tr>       <td> </td>        <td bgcolor="#cccccc"><font face="Courier New">           <p># Change bindings on web applications from host headers to IP Addresses</p>            <p># Run this once on each WFE server</p>            <p># Requires IIS Administration module</p>            <p>Import-Module WebAdministration</p>            <p># Remove bindings with Host Headers from IIS sites</p>            <p>Remove-WebBinding -Name &quot;Portal&quot; -HostHeader &quot;Portal&quot;</p>            <p>Remove-WebBinding -Name &quot;Teams&quot; -HostHeader &quot;Teams&quot;</p>            <p># Replace with new bindings having unique IP Addresses</p>            <p>New-WebBinding -Name &quot;Portal&quot; -IPAddress 192.168.3.11 -Port 80</p>            <p>New-WebBinding -Name &quot;Teams&quot; -IPAddress 192.168.3.12 -Port 80</p>         </font></td>     </tr>   </tbody></table>  <p>3. Create Host-Named Site Collections on the web applications. PowerShell must be used to do this because the SharePoint UI does not provide this specific configuration option.</p>  <table><tbody>     <tr>       <td> </td>        <td bgcolor="#cccccc"><font face="Courier New">           <p># Create Host-Named Site Collections (HNSC)</p>            <p># Run this once per farm</p>            <p># Add managed paths (for all HNSC in farm)</p>            <p>New-SPManagedPath &quot;it&quot; -Explicit -HostHeader -ErrorAction Continue</p>            <p>New-SPManagedPath &quot;sec&quot; -Explicit -HostHeader -ErrorAction Continue</p>            <p># Create HNSC on Portal</p>            <p>New-SPSite https://communities.customer.com -HostHeaderWebApplication https://Portal -Name &quot;CUSTOMER Community Sites&quot; -Template &quot;STS#0&quot; -OwnerAlias CUSTOMER\Administrator </p>            <p>New-SPSite https://intranet.customer.com -HostHeaderWebApplication https://Portal -Name &quot;The Intranet&quot; -Template &quot;BLANKINTERNETCONTAINER#0&quot; -OwnerAlias CUSTOMER\Administrator </p>            <p># Create HNSC on Teams, with sites on managed paths</p>            <p>New-SPSite https://teams.customer.com -HostHeaderWebApplication https://Teams -Name &quot;CUSTOMER Team sites&quot; -Template &quot;STS#1&quot; -OwnerAlias CUSTOMER\Administrator</p>            <p>New-SPSite https://teams.customer.com/it -HostHeaderWebApplication https://Teams -Name &quot;CUSTOMER IT - Information Technology&quot; -Template &quot;BLOG#0&quot; -OwnerAlias CUSTOMER\Administrator</p>            <p>New-SPSite https://teams.customer.com/sec -HostHeaderWebApplication https://Teams -Name &quot;CUSTOMER SEC - Information Security&quot; -Template &quot;BLOG#0&quot; -OwnerAlias CUSTOMER\Administrator</p>            <p>New-SPSite https://project.customer.com -HostHeaderWebApplication https://Teams -Name &quot;Project Tracking&quot; -Template &quot;SGS#0&quot; -OwnerAlias CUSTOMER\Administrator</p>         </font></td>     </tr>   </tbody></table>  <p> </p>  <h4>Option 3 – Identify by Host Header</h4>  <p>The TechNet article we’ve been referencing says several things against this option:</p>  <blockquote>   <p>“In most cases, applying a host header binding at the IIS Web site level makes it impossible to access host-named site collections through the IIS Web site. This is because IIS will not respond to requests for host names that differ from the host header binding.”</p>    <p>“To ensure that both types of site collections are accessible to users, do not put host header bindings on the IIS Web site assigned to the Default zone of your Web application, if you have host-named site collections in that Web application.”</p>    <p>“You can manually modify host header bindings on the IIS Web site from the IIS Manager, but this is not recommended. Any changes you make using the IIS Manager will not be recorded in SharePoint Server 2010. If SharePoint Server 2010 tries to provision an IIS Web site on another computer in the farm for the same Web application and zone, the original host header binding is used instead of the modified binding.”</p> </blockquote>  <p>However, these can be overcome by following a process to maintain host header bindings on the IIS web site. A proposal to use this approach has been approved by Microsoft Premier as supportable; reference Microsoft Premier case “<b>[REG:111022261144490] prem/SharePoint Server 2010 AL/Requesting RCS for support ability scenario</b>”</p>  <p>The main implications of this option are the operational procedures for creating a new HNSC. Instead of using the SharePoint Central Administration console, or the feature for self-service site creation, PowerShell commands must be run, in the following specific order:</p>  <p>1. On each WFE server in the farm, must add a host header binding to the IIS web site hosting the web application/zone. This could be done via IIS manager, but it’s recommended to use a PowerShell script for accuracy and repeatability. Example of adding the HNSC URL binding for “sitename.customer.com” to the web application whose host header name is “Standard”:</p>  <table><tbody>     <tr>       <td>&nbsp;</td>        <td bgcolor="#cccccc"><font face="Courier New">           <p>New-WebBinding -Name &quot;Standard&quot; -HostHeader &quot;sitename.customer.com&quot;</p>         </font></td>     </tr>   </tbody></table>  <p>(This requires the IIS Administration Module to be imported for PowerShell)</p>  <p>2. Once for the whole farm, must create the HNSC using a PowerShell command; it can’t be done via the SharePoint UI. Example of creating the HNSC “sitename.customer.com”</p>  <table><tbody>     <tr>       <td>&#160;</td>        <td bgcolor="#cccccc"><font face="Courier New">           <p>New-SPSite https://sitename.customer.com -HostHeaderWebApplication https://Standard -Name &quot;Our Work Site&quot; -Template &quot;STS#1&quot; -OwnerAlias CUSTOMER\Administrator</p>         </font></td>     </tr>   </tbody></table>  <p>The steps must be performed in this order so that IIS is configured to respond correctly to the desired HNSC URL before SharePoint is asked to create it.</p>  <p><em>Note: if the -Template argument is omitted from the New-SPSite command, then the first access of the site collection will prompt for a choice of site template to be instantiated.</em></p>  <p><i>Note: this additional operational procedure would be necessary for option 2 also, because that is the recommended technique for creating web applications on different IP addresses.</i></p>  <p><b>Full example scenario for option 3</b></p>  <p>The PowerShell scripts below are an example showing how a set of web applications and site collections can be created using host headers to uniquely identify the web applications, thus avoiding the drawbacks of the “port” and “ip address” approaches.</p>  <p><i>Sample steps only</i></p>  <ul>   <li>Web app “Standard” will host <b>intranet.customer.com</b> and <b>communities.customer.com</b></li>    <li>Web app “Sensitive” will host <b>teams.customer.com</b> and <b>projects.customer.com</b>. In addition, managed paths are added so that teams will also contain <b>teams.customer.com/sec</b> and <b>teams.customer.com/it</b>.</li> </ul>  <p>1. Create web applications on the farm using host header names. Use the SharePoint UI to do this, or a PowerShell script such as the following.&#160; Scripting is recommended for repeatability (dev, test and prod!)</p>  <table><tbody>     <tr>       <td>&#160;</td>        <td bgcolor="#cccccc"><font face="Courier New">           <p># Create web apps using Host Headers so multiple can be created on port 80.</p>            <p># Run this once per farm</p>            <p>New-SPWebApplication -ApplicationPool &quot;SharePoint Web Apps&quot; -Name &quot;Standard&quot; –HostHeader Standard -DataBaseName &quot;WSS_Content_Standard&quot; -DatabaseServer &quot;FARMSQL&quot; -Path &quot;C:\inetpub\wwwroot\wss\VirtualDirectories\Standard&quot; -Port 80 -URL &quot;https://Standard:80&quot; </p>            <p>New-SPWebApplication -ApplicationPool &quot;SharePoint Web Apps&quot; -Name &quot;Sensitive&quot; –HostHeader Sensitive -DataBaseName &quot;WSS_Content_Sensitive&quot; -DatabaseServer &quot;FARMSQL&quot; -Path &quot;C:\inetpub\wwwroot\wss\VirtualDirectories\Sensitive&quot; -Port 80 -URL <font face="Courier New">&quot;https://Sensitive:80&quot;</font> </p>         </font></td>     </tr>   </tbody></table>  <p>2. Add new bindings on web applications so IIS recognizes Host-Named Site Collection names</p>  <table><tbody>     <tr>       <td>&nbsp;</td>        <td bgcolor="#cccccc"><font face="Courier New">           <p># Add HNSC bindings on web applications</p>            <p># Run this once on each WFE server</p>            <p># Requires IIS Administration module</p>            <p>Import-Module WebAdministration</p>            <p># Add new bindings for HNSC</p>            <p>New-WebBinding -Name &quot;Standard&quot; -HostHeader &quot;intranet.customer.com&quot;</p>            <p>New-WebBinding -Name &quot;Standard&quot; -HostHeader &quot;communities.customer.com&quot;</p>            <p>New-WebBinding -Name &quot;Sensitive&quot; -HostHeader &quot;teams.customer.com&quot;</p>            <p>New-WebBinding -Name &quot;Sensitive&quot; -HostHeader &quot;projects.customer.com&quot;</p>         </font></td>     </tr>   </tbody></table>  <p>3. Create Host-Named Site Collections on the web applications.</p>  <table><tbody>     <tr>       <td>&#160;</td>        <td bgcolor="#cccccc"><font face="Courier New">           <p># Create Host-Named Site Collections (HNSC)</p>            <p># Run this once per farm</p>            <p># Add managed paths (for all HNSC in farm)</p>            <p>New-SPManagedPath &quot;it&quot; -Explicit -HostHeader -ErrorAction Continue</p>            <p>New-SPManagedPath &quot;sec&quot; -Explicit -HostHeader -ErrorAction Continue</p>            <p># Create HNSC on Standard</p>            <p>New-SPSite https://intranet.customer.com -HostHeaderWebApplication https://Standard -Name &quot;The Intranet&quot; -Template &quot;BLANKINTERNETCONTAINER#0&quot; -OwnerAlias CUSTOMER\Administrator </p>            <p>New-SPSite https://communities.customer.com -HostHeaderWebApplication https://Standard -Name &quot;Community Sites&quot; -Template &quot;STS#0&quot; -OwnerAlias CUSTOMER\Administrator </p>            <p># Create HNSC on Sensitive, with sites on managed paths</p>            <p>New-SPSite https://teams.customer.com -HostHeaderWebApplication https://Sensitive -Name &quot;Team sites&quot; -Template &quot;STS#1&quot; -OwnerAlias CUSTOMER\Administrator</p>            <p>New-SPSite https://teams.customer.com/it -HostHeaderWebApplication https://Sensitive -Name &quot;IT - Information Technology&quot; -Template &quot;BLOG#0&quot; -OwnerAlias CUSTOMER\Administrator</p>            <p>New-SPSite https://teams.customer.com/sec -HostHeaderWebApplication https://Sensitive -Name &quot;HR – Human Resources&quot; -Template &quot;BLOG#0&quot; -OwnerAlias CUSTOMER\Administrator</p>            <p>New-SPSite https://projects.customer.com -HostHeaderWebApplication https://Sensitive -Name &quot; Project sites&quot; -Template &quot;SGS#0&quot; -OwnerAlias CUSTOMER\Administrator</p>         </font></td>     </tr>   </tbody></table>  <p><em>Note: Wildcard managed paths for HNSC can also be added, by omitting the -Explicit parameter from New_SPManagedPath.</em></p>  <p>This type of configuration is supported, and illustrates a way to partially automate this configuration on each WFE in the farm.</p>]]></content:encoded>
    </item>
    <item>
      <title>Measuring Concurrent Site Users – SharePoint 2010 and other</title>
      <link>https://docs.microsoft.com/archive/blogs/markarend/measuring-concurrent-site-users-sharepoint-2010-and-other</link>
      <pubDate>Fri, 24 Feb 2012 17:35:25 GMT</pubDate>
      <dc:creator><![CDATA[Mark Arend]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/markarend/2012/02/24/measuring-concurrent-site-users-sharepoint-2010-and-other/</guid>
      <description><![CDATA[This post was written as I was working to analyze traffic on SharePoint 2010, but it could be used...]]></description>
      <content:encoded><![CDATA[<p>This post was written as I was working to analyze traffic on SharePoint 2010, but it could be used for any website log traffic analysis.</p>  <p>Measuring concurrent users on your web site over time is important to understand characteristics of the site’s performance—its overall throughput—based on its load.&#160; In fact, planning worksheets on TechNet tell us to find a number for concurrent users, but they don’t tell us how to get that number.</p>  <p>However, the idea of <em>concurrent </em>users is hard to pin down.&#160; What exactly does that mean?&#160; Conceptually, you might think of it as the number of users who are hitting the site <em>right now</em>.&#160; Ok, but what does <em>right now </em>mean?&#160; We really must define it as a specific duration of time, but how long?&#160; I’ve seen many calculations count the number of unique users every hour.&#160; Is that meaningful?&#160; I think in many cases, it’s not.</p>  <p>Let’s assume for the moment that your web site doesn’t use session state, it just gets requests and returns results.&#160; For this, it’s got to do some work to assemble the result.&#160; SharePoint especially has a lot of construction to do, gathering data from the database, the user profile, the file system, applying master pages, page layouts, maybe executing page controls and web parts, phew!&#160; So this is going to take some time on the server, and if another user sends a request, then those tasks will add to the overall load.&#160; But if that doesn’t happen until later in the same hour, then those tasks <em>don’t </em>really add to the overall load.&#160; So I think the duration should be less than an hour.&#160; Note, if your site <em>does</em> use session state, that changes things slightly… more later.</p>  <p>How short should the duration be?</p>  <p>Let’s look at the impact of measuring logs using different durations.&#160; I used LogParser to query through some logs from a small SharePoint 2010 farm; 8 million requests over a 2 week period, collated and quantized into behavior per hour of day.&#160; This graph counts the number of distinct (unique) IP addresses that were found in four different-sized “buckets of time” which I’m calling quanta.&#160; It does not show the number of requests.&#160; For 5 minute quanta, I count the total number of unique IP addresses in each 5 minute period throughout the day, then average those results over each hour.&#160; For 60 minute quanta, I count the total number of unique IP addresses in that whole hour.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/68/30/metablogapi/8547.image_53FC6687.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-68-30-metablogapi/8547.image_5F00_53FC6687.png"><img style="display: inline; background-image: none;" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/68/30/metablogapi/6888.image_thumb_478E435E.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-68-30-metablogapi/6888.image_5F00_thumb_5F00_478E435E.png" width="644" height="331" /></a></p>  <p>Wow, that’s quite a difference.&#160; If we quantize users into 5 minute buckets versus 60-minute buckets, we find a wide range of results.&#160; Designing a production infrastructure for SharePoint, I’m certainly going to want to know if it has to support 20 or 120 concurrent users during those busy parts of the day.</p>  <p>Abstractly, I think the size of the quanta into which we count distinct users hitting the farm should be somewhat longer than it would take the server to “come to rest” after a heavy stream of incoming requests suddenly stopped, allowing all requests to be finished and results returned.&#160; It seems to me that after this time, since the server is done processing those requests, it can take more without additional load.&#160; Am I going to try and compute this time? Erm, no. I’m going to WAG it at about 5 minutes in general, based on some undocumented experiences over many years. But maybe the server could only finish all of its work in that time because nothing else was coming in. Ok, so let’s double it: 10 minutes.</p>  <p>Of course there’s a body of knowledge around load testing that might help us here.&#160; One site that has a lot of great detailed technical information about load testing is the <a href="https://www.webperformance.com/load-testing/blog/">blog at webperformance.com</a>.&#160; For load testing, ramp-up is more important than the ramp-down abstraction above.&#160; They like to ramp-up over a long period—many minutes to several hours—in order to understand the behavior of the system under different loads.&#160; But ramp-down is more about leaving the system in a stable state, allowing all user requests to complete normally, instead of just killing all virtual user threads in-request.&#160; In this case, the ramp-down is dependent mostly on maximum request processing time, which is pretty much page latency.&#160; Now, we may want our page latency to be just a few seconds in most cases, allowing more on pages that do “complex” things like generate reports.&#160; But even with relatively fast pages, ramp-down takes a while longer.&#160; Following this line of thinking, the 5 minute and 10 minute durations for concurrency continue to seem more reasonable than larger buckets.</p>  <p>For another sanity check.&#160; How do people typically use SharePoint and other publishing/collaboration intranet sites?&#160; Again from personal experience, I tend to use individual sites in relatively short bursts.&#160; If I’m searching for information, I’ll want some results in just a few minutes, or I’m going to give up and try something different.&#160; Or if I’m collaborating, I’ll be uploading and downloading documents one at a time or a few at a time, then going off to work with those documents.&#160; So, I might have multiple SharePoint sites open all day long, but my direct interactions with them are bunched together, separated by other work.&#160; For me, the idea of 10 minutes well encompasses each of my individual direct interactions with collaborative sites such as SharePoint.</p>  <p>I’m really talking myself into this figure of <strong>10 minutes</strong> as a guideline for measuring concurrency.&#160; And I welcome any debate on the topic… please post comments!</p>  <p>So, what if you <em>do </em>use session state on your site?&#160; For SharePoint, the typical session state available for developers is disabled by default (see my <a href="https://blogs.msdn.com/b/markarend/archive/2010/05/27/using-session-state-in-sharepoint-2010.aspx">Session State</a> blog posting for more information).&#160; But if you enable it, or are using another web site host with session state, then whenever a user sends an authenticated request to the server, it will set aside some resources to maintain that session, for some period of time.&#160; Way back in my ASP days, I recall 20 minutes being a common default, and it’s always configurable.&#160; If session state is maintained in the database, that’s fewer resources that the WFE servers must maintain, but it’s still something.&#160; In any event, if you’re using session state, you might want to use the session duration as your guideline for quantizing users to measure concurrency.</p>  <p><strong>The script</strong></p>  <p>Here’s the batch file with <strong><font color="#000000">LogParser</font></strong> commands that I used to compute concurrent users by hour throughout the day.&#160; I know, I should have used PowerShell, but I only started with a couple lines and it just grew from there.&#160; Typical.</p>  <blockquote>   <p><font size="1" face="Courier New">SET inputCSV=%1        <br />if '%inputCSV%'=='' GOTO USAGE</font></p>   <font size="1" face="Courier New"></font>    <p><font size="1" face="Courier New">REM outputCSV has no extension, it's added later        <br />SET outputCSV=UserConcurrency</font></p>   <font size="1" face="Courier New"></font>    <p><font size="1" face="Courier New">SET concurrencyPeriod=%2        <br />if '%concurrencyPeriod%'=='' GOTO USAGE</font></p>   <font size="1" face="Courier New"></font>    <p><font size="1" face="Courier New">SET concurrencyField=%3        <br />if '%concurrencyField%'=='' SET concurrencyField=c-ip</font></p>   <font size="1" face="Courier New"></font>    <p><font size="1" face="Courier New">REM Set a filter to match requests that should be excluded        <br />REM %%Service%% matches </font><font size="1" face="Courier New">our service accounts (like search), exclude them        <br />REM ...if you don't want a filter, use SET filter=0 IS NULL         <br />SET filter=(cs-username LIKE '%%Service%%')</font></p>   <font size="1" face="Courier New"></font>    <p><font size="1" face="Courier New">echo.        <br />echo Counting Concurrent Users         <br />echo inputCSV&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; : %inputCSV%         <br />echo outputCSV&#160;&#160;&#160;&#160;&#160;&#160;&#160; : %outputCSV%.csv        <br />echo concurrencyField : %concurrencyField%         <br />echo concurrencyPeriod: %concurrencyPeriod% seconds</font></p>   <font size="1" face="Courier New"></font>    <p><font size="1" face="Courier New">echo.        <br />echo First stage, quantizing to %concurrencyPeriod% seconds...         <br />        <br /><font color="#000000"><strong>logparser</strong></font> -i:CSV -o:CSV &quot;SELECT DISTINCT %concurrencyField%, date, QUANTIZE(TO_TIMESTAMP(time,'hx:mx:sx'), %concurrencyPeriod%) AS Period, COUNT(*) as Requests INTO temp1-%outputCSV%.csv FROM %inputCSV% WHERE %concurrencyField% IS NOT NULL AND NOT %filter% Group By&#160; Date, Period, %concurrencyField%&quot;</font></p>   <font size="1" face="Courier New"></font>    <p><font size="1" face="Courier New">echo.        <br />echo Second stage, grouping...         <br />        <br /><font color="#000000"><strong>logparser</strong></font> -i:CSV -o:CSV &quot;SELECT date, to_string(to_timestamp(Period,'hx:mx:sx'),'hh') as Hour, Period, count(%concurrencyField%) as UserCount, sum(Requests) as RequestCount INTO temp2-%outputCSV%.csv From temp1-%outputCSV%.csv Group by date, Period&quot;         <br />        <br /><font color="#000000"><strong>logparser</strong></font> -i:CSV -o:CSV &quot;SELECT Hour, avg(UserCount) as Concurrent-Users(q%concurrencyPeriod%), sum(RequestCount) as Total-Requests(q%concurrencyPeriod%) INTO %outputCSV%-%concurrencyPeriod%.csv From temp2-%outputCSV%.csv GROUP BY Hour ORDER BY Hour&quot;</font></p>   <font size="1" face="Courier New"></font>    <p><font size="1" face="Courier New">GOTO DONE</font></p>   <font size="1" face="Courier New"></font>    <p><font size="1" face="Courier New">       <br />:USAGE</font></p>   <font size="1" face="Courier New"></font>    <p><font size="1" face="Courier New">echo.        <br />echo # Usage:         <br />echo #         <br />echo # ConcurrentUsers inputCSV seconds [fieldname]         <br />echo #         <br />echo # inputCSV : csv file (or *.csv) of log entries with fields: date, time, c-ip or [fieldname], other         <br />echo # seconds&#160; : concurrency quantization level.&#160; Typical values 300 and 600 seconds         <br />echo # fieldname: field to evaluate for concurrency.&#160; Typical values c-ip (default) and cs-username         <br />echo #         <br />echo # Example&#160; : ConcurrentUsers BigO.csv 300         <br />echo.</font></p>   <font size="1" face="Courier New"></font>    <p><font size="1" face="Courier New">:DONE</font></p>  </blockquote>  <p>Several things about this script.&#160; </p>  <p>The input is a CSV file, it <em>must</em> have fields named “date” and “time” at the very least, then another field named “c-ip”&#160; This field could have a different name, which you pass in as a parameter.&#160; This allows you to specify a different way to count users, such as cs-username, or maybe you want to count some other information quantized by time, maybe cs(User-Agent).&#160; I just default this to c-ip because I was working with a site that had anonymous access, and most of the cs-username values were null.</p>  <p>The file may have many other fields that come from the IIS logs.&#160; </p>  <p>The way I got my BigO.csv file was by following Mike Wise’s excellent whitepaper <strong><em>Analyzing SharePoint Usage:</em>&#160;</strong><a title="https://www.microsoft.com/download/en/details.aspx?id=4616" href="https://www.microsoft.com/download/en/details.aspx?id=4616">https://www.microsoft.com/download/en/details.aspx?id=4616</a>.&#160; This will help you get started with LogParser in about 10 minutes (there’s that number again… an omen!).&#160; Some of his first steps show how to run LogParser on a whole set of raw IIS logs and collate them into a CSV file that has some extra info added, in order to do more analyses on that.&#160; </p>  <p>My script doesn’t <em>require </em>a CSV made in this way, this is just a good example of how to get one pretty easily from your logs.&#160; And of course, LogParser could just as easily be run directly against the logs, by using the option –i:IISW3C instead of –i:CSV.&#160; Mike’s paper talks about this too.</p>  <p>So, you can run this a few times and get results for different intervals that define your idea of concurrent use.</p>  <blockquote>   <p><font size="1" face="Courier New">ConcurrentUsers BigO.csv 300</font></p>   <font size="1" face="Courier New"> </font></blockquote> <font size="1" face="Courier New"></font>  <blockquote><font size="1" face="Courier New"></font>    <p><font size="1" face="Courier New">ConcurrentUsers BigO.csv 1200</font></p>   <font size="1" face="Courier New"></font>    <p><font size="1" face="Courier New">ConcurrentUsers BigO.csv 3600</font></p>  </blockquote>  <p>Running these in succession will output 3 files, <font face="Courier New">UserConcurrency-300.csv</font>, <font face="Courier New">UserConcurrency-1200.csv</font> and <font face="Courier New">UserConcurrency-3600.csv</font>, so you can easily compare for your analysis.&#160; It also creates some intermediate temp csv files that are useful to look into for sanity checking and understanding what the final output is telling you.</p>  <p>Oh, what’s that “SET filter=0 IS NULL” for?&#160; I just wanted an easy way to shut off the filter.&#160; Since the filter&#160; appears in the WHERE clause as <strong>AND NOT %filter%</strong>, I need something that evaluates to FALSE, meaning “don’t filter,” and as everyone knows, 0 is <em>not </em>null.&#160; Stupid geeks and their jokes.</p>  <p>Well, best of luck in this grey area.&#160; Let me know if any of this looks wrong please!!!</p>]]></content:encoded>
    </item>
    <item>
      <title>Control Search Indexing (Crawling) Within a Page with Noindex</title>
      <link>https://docs.microsoft.com/archive/blogs/markarend/control-search-indexing-crawling-within-a-page-with-noindex</link>
      <pubDate>Mon, 07 Jun 2010 09:25:49 GMT</pubDate>
      <dc:creator><![CDATA[Mark Arend]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/markarend/2010/06/07/control-search-indexing-crawling-within-a-page-with-noindex/</guid>
      <description><![CDATA[SharePoint provides the ability to control search indexing (a.k.a. “crawling”) within a page by...]]></description>
      <content:encoded><![CDATA[<p>SharePoint provides the ability to control search indexing (a.k.a. “crawling”) within a page by using a div class named “noindex”.&#160; This means you can flag some content on a page that should not be indexed for search results, while other content on the page is still indexed.&#160; The typical scenario that requires this is common footer text.&#160; Suppose you edit your master page to contain some standard text, including your company name and a link to your privacy policy.&#160; Now, search results for your company or privacy policy will include every page in the site because this text is there.&#160; What you really want is just pages that contain unique content about those keywords.</p>  <p>SharePoint 2010’s iFilter excludes content inside of a &lt;div class=&quot;noindex&quot;&gt; tag.&#160; Note that each div nested in that one is re-evaluated for the noindex class, so nested divs may not work as you expect.&#160; The product team is considering changing this so that all nested divs are excluded.</p>  <p><font color="#0000ff" size="2" face="Courier New">&lt;<font color="#800000">div</font> <font color="#ff0000">class</font>=&quot;companyFooterStyle noindex&quot;&gt;      <br /></font><font color="#0000ff"><font size="2"><font face="Courier New"><font color="#000000">&#160;&#160;&#160;&#160;&#160; Copyright 2010 © Company Name | </font>&lt;<font color="#800000">a</font> <font color="#ff0000">href</font>=&quot;/sitepages/PrivacyPolicy.aspx&quot;&gt;<font color="#000000">Privacy Policy</font>&lt;/<font color="#800000">a</font>&gt;          <br /></font></font></font><font color="#0000ff" size="2" face="Courier New">&lt;/<font color="#800000">div</font>&gt;</font></p>  <p>Now, when you search the portal for “Company Name” or “Privacy” you won’t get every page in the portal showing up in your results.</p>  <p>Note the ability to use other css classes along with noindex, to get visual styles as well.&#160; I haven’t tested the noindex class on tags other than div.</p>  <p>&#160; <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:49066379-5c19-45a1-aad2-f77980a25b0c" class="wlWriterEditableSmartContent">Technorati Tags: <a href="https://technorati.com/tags/Sharepoint+2010" rel="tag">Sharepoint 2010</a>,<a href="https://technorati.com/tags/Noindex" rel="tag">Noindex</a>,<a href="https://technorati.com/tags/Search" rel="tag">Search</a></div></p>]]></content:encoded>
    </item>
    <item>
      <title>Using Session State in SharePoint 2010</title>
      <link>https://docs.microsoft.com/archive/blogs/markarend/using-session-state-in-sharepoint-2010</link>
      <pubDate>Thu, 27 May 2010 14:56:59 GMT</pubDate>
      <dc:creator><![CDATA[Mark Arend]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/markarend/2010/05/27/using-session-state-in-sharepoint-2010/</guid>
      <description><![CDATA[SharePoint 2010 uses two services related to session state that have similar names but are separate...]]></description>
      <content:encoded><![CDATA[<p>SharePoint 2010 uses two services related to session state that have similar names but are separate and have different purposes.</p>  <ol>   <li><em>ASP.NET session state</em> may be used on SharePoint 2010 pages. This service is automatically disabled in normal installations of SharePoint 2010; it may be enabled using the instructions below. Once enabled, it appears on the Service Applications page as “<b>SharePoint Server ASP.NET Session State Service</b>.” </li>    <li>The <i>State Service</i> service application is designed for and only available to Office internal components such as InfoPath Forms Services and Visio Services. This service is automatically enabled in typical installations of SharePoint 2010 and is not related to ASP.NET session state. It appears on the Service Applications page as “<b>State Service</b>.” </li> </ol>  <p>To enable ASP.NET session state:</p>  <ol>   <li>Enter the following PowerShell command in the SharePoint 2010 Management Shell window:      <pre>Enable-SPSessionStateService –DefaultProvision</pre>
  </li>

  <li>On each web application for which you want to use session state, edit the web.config file and set the enableSessionState property of the pages element as follows: 
    <pre>&lt;pages enableSessionState=&quot;true&quot;</pre>
  </li>
</ol>

<p>Guidelines for using SharePoint Server ASP.NET Session State:</p>

<ol>
  <li>This session state may be used by custom code in web parts and other page-hosted controls. </li>

  <li>Session state information is stored in a configurable SQL database; this implies the following: 
    <ol>
      <li type="a">Load-balancer affinity is not required. </li>

      <li type="a">Heavy use of session state must be included in database/capacity planning. By default, the session state database is created on the same database server hosting the SharePoint 2010 farm configuration database. This can be changed to place it on another server; this can be done at a later date if necessary. To move it to another SQL server, it should first be disabled, then enabled again with different configuration that points to the other server. </li>
    </ol>
  </li>

  <li>When enabled, Session state is available to the whole 2010 farm. Each web application can choose to enable it for use on ASP.NET pages (enableSessionState=&quot;true&quot;). </li>

  <li>Session state is partitioned using the root URL. This means that different web applications will have different session state objects; a web part can only access the session state object available to it. If host header site collections are used, then different session objects will be used for each site collection (the browser will have multiple session ids in different cookies). </li>
</ol>

<p>Additional information about enabling session state: </p>

<p>
  <table border="1" cellspacing="0" cellpadding="0"><tbody>
      <tr>
        <td valign="top" width="308">
          <p><b>Syntax 1</b></p>
        </td>

        <td valign="top" width="308">
          <p><b>Syntax 2</b></p>
        </td>
      </tr>

      <tr>
        <td valign="top" width="308">
          <p>Enable-SPSessionStateService 
            <br />-DefaultProvision</p>
        </td>

        <td valign="top" width="308">
          <p>Enable-SPSessionStateService 
            <br />-DatabaseName &lt;String&gt; 

            <br />[-DatabaseServer &lt;String&gt;] 

            <br />[-DatabaseCredentials &lt;PSCredential&gt;]</p>
        </td>
      </tr>
    </tbody></table>
</p>

<p><i>Additional parameters are not discussed here; use Get-Help Enable-SPSessionStateService –full for more information.</i></p>

<p>The Enable-SPSessionStateService cmdlet creates a session state database, installs the ASP.NET session state schema, and updates the Web.config files on the farm to turn on the session state service.</p>

<p>If the DefaultProvision form of the command is used, all default settings are used. These are:</p>

<ul>
  <li>DatabaseName = “SessionStateService_&lt;GUID&gt;” </li>

  <li>DatabaseServer = the same database server as the SharePoint 2010 configuration database </li>

  <li>DatabaseCredentials = Integrated Windows Authentication </li>
</ul>

<p>If the DatabaseName form of the command is used, then these parameters may be set explicitly. If some of the parameters are not included, they default as above. To set specific credentials for accessing the session state database, note that this allows you to specify a SQL Authentication credential only, not a Windows credential. Then, use the Get-Credential command to create a PSCredential object from a username and password, then use that object as the argument of the DatabaseCredentials parameter.</p>

<p>After this service is enabled, “SharePoint Server ASP.NET Session State Service” will appear on the Service Applications management page.</p>

<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c7317fa4-e62c-472e-9187-42ae0d50f450" class="wlWriterEditableSmartContent">Technorati Tags: <a href="https://technorati.com/tags/SharePoint+2010" rel="tag">SharePoint 2010</a>,<a href="https://technorati.com/tags/Session+State" rel="tag">Session State</a>,<a href="https://technorati.com/tags/Development" rel="tag">Development</a></div>]]></content:encoded>
    </item>
    <item>
      <title>Backup/Restore for SharePoint 2010</title>
      <link>https://docs.microsoft.com/archive/blogs/markarend/backuprestore-for-sharepoint-2010</link>
      <pubDate>Thu, 27 May 2010 14:46:39 GMT</pubDate>
      <dc:creator><![CDATA[Mark Arend]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/markarend/2010/05/27/backuprestore-for-sharepoint-2010/</guid>
      <description><![CDATA[This is an overview of major tools and techniques available to backup/restore your SharePoint 2010...]]></description>
      <content:encoded><![CDATA[<p>This is an overview of major tools and techniques available to backup/restore your SharePoint 2010 farm</p>  <h1>Using DPM to Backup/Restore SharePoint 2010</h1>  <p>Microsoft System Center Data Protection Manager 2010 (DPM) is a product designed to manage ongoing, comprehensive backups of Microsoft enterprise products, including SharePoint 2010.</p>  <ul>   <li>Protect at farm level – recover and track at granular level. </li>    <li>Automatic discovery &amp; protection of new databases. </li>    <li>Seamlessly supports all SQL high-availability solutions. </li>    <li>Easy to configure and manage short-term and long-term backups </li>    <li>Optimized for large farms.      <ul>       <li>Faster backups than SharePoint-only backup solutions. </li>        <li>Requires significantly less storage than SQL-only backup solutions. </li>     </ul>   </li>    <li>Search for SharePoint item through all recovery points of the farm. </li>    <li>Retains metadata/security settings for the recovered item. </li>    <li>Granular recovery without a recovery farm for SharePoint 2010. </li> </ul>  <p>More information on DPM: <a href="https://technet.microsoft.com/en-us/systemcenter/dm">https://technet.microsoft.com/en-us/systemcenter/dm</a>. </p>  <h1>Backup/Restore for SharePoint using its own tools</h1>  <p>SharePoint provides many of its own tools for backup and restore. This section discusses these options.</p>  <p>The Central Administration Backup and Restore page organizes SharePoint’s monitoring tools:</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/68/30/metablogapi/3252.image_07E05711.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-68-30-metablogapi/3252.image_5F00_07E05711.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/68/30/metablogapi/5850.image_thumb_23BD523D.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-68-30-metablogapi/5850.image_5F00_thumb_5F00_23BD523D.png" width="504" height="269" /></a> </p>  <p>Central Administration provides tools for performing individual backups of the entire farm, individual site collections, sites, libraries or lists. A full farm backup can be restored from Central Administration, but tools are not provided here for scheduling recurring backups, or for restoring individual site collections, site, libraries or lists. These operations can be managed using PowerShell scripts:</p>  <p>   <table border="1" cellspacing="0" cellpadding="0"><tbody>       <tr>         <td valign="top" width="229">           <p><b>Cmdlet</b></p>         </td>          <td valign="top" width="384">           <p><b>Synopsis</b></p>         </td>       </tr>        <tr>         <td valign="top" width="229">           <p>Backup-SPFarm</p>            <p>(Restore-SPFarm)</p>         </td>          <td valign="top" width="384">           <p>Creates a backup of an individual database, Web application, or the entire farm. Can be full or differential. Use Backup-SPFarm -ShowTree to display a list of what would be backed up; this does not perform the backup.</p>         </td>       </tr>        <tr>         <td valign="top" width="229">           <p>Backup-SPSite</p>            <p>(Restore-SPSite)</p>         </td>          <td valign="top" width="384">           <p>Performs a backup of a site collection.</p>         </td>       </tr>        <tr>         <td valign="top" width="229">           <p>Backup-SPConfigurationDatabase</p>            <p>(Restore-SPFarm)</p>         </td>          <td valign="top" width="384">           <p>Performs a farm-level configuration-only backup. This is not a typical backup operation, see Note* below.</p>         </td>       </tr>     </tbody></table> </p>  <p>To schedule automated recurring backups, use these PowerShell cmdlets in scripts that are scheduled with the <a href="https://msdn.microsoft.com/en-us/library/aa383614(VS.85).aspx">Windows Task Scheduler</a>.&#160; This recommendation is from the TechNet article <a href="https://technet.microsoft.com/en-us/library/ee663490(office.14).aspx">Backup and recovery overview (SharePoint Server 2010)</a>.</p>  <p>*Note that Central admin gives an option for backing up the config database, but <em>you normally never restore the config database</em>, even when restoring the farm. In DR scenarios, you create a new farm and restore the site collection DBs. An example use for a configuration database backup is to create a farm configuration template that can then be applied to create other new SharePoint farms that have identical physical topologies, by using Restore-SPFarm.&#160; This could be very useful in hosting scenarios with baseline virtual images.</p>  <p>SQL backup tools will process the data faster. DPM will process even faster and repeated backups require much less space.</p>  <p>So if you're planning daily backups of 500 GB, CA farm backup may be too slow. SQL backup will get it faster but require 2.5 TB to store 5 backups. DPM will be fastest and probably require less than 1 TB for 5 backups of 500 GB (depending on content churn).</p>]]></content:encoded>
    </item>
    <item>
      <title>Health Monitoring for SharePoint 2010</title>
      <link>https://docs.microsoft.com/archive/blogs/markarend/health-monitoring-for-sharepoint-2010</link>
      <pubDate>Thu, 27 May 2010 14:28:31 GMT</pubDate>
      <dc:creator><![CDATA[Mark Arend]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/markarend/2010/05/27/health-monitoring-for-sharepoint-2010/</guid>
      <description><![CDATA[This is an overview of major tools and techniques available to monitor the health of your...]]></description>
      <content:encoded><![CDATA[<p></p> <p>This is an overview of major tools and techniques available to monitor the health of your SharePoint 2010 farm.</p> <h1>Using SCOM to monitor SharePoint 2010</h1> <p>Microsoft System Center Operations Manager 2007 (SCOM) is a product designed for enterprise health monitoring. It integrates closely with SharePoint 2010 and provides the most comprehensive and flexible solution for monitoring the health of SharePoint farms. With SCOM, the level of reporting and alerting is more granular and easily managed than SharePoint’s standard health monitoring.</p> <ul> <li>SharePoint 2010 ships a management pack for System Center Ops Manager  </li><li>Improved Knowledge Articles  </li><li>More relevant events and monitors  </li><li>Surfaces SharePoint Health Analyzer (SPHA) rules  </li><li>Integrated with Unified Logging System (ULS) </li></ul> <p>The SCOM 2007 Management Pack for SharePoint 2010 contains more documentation for using these products together, in a Management Pack Guide for SharePoint Foundation 2010 and one for SharePoint Server 2010. Be sure to reference <i>both</i> guides for managing the server product. Download from: <a href="https://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=c8a9d749-b7a8-412a-b2db-f3e464ed3fcf">https://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=c8a9d749-b7a8-412a-b2db-f3e464ed3fcf</a>. These management pack guides are also included as a deliverable of this engagement, for convenience.</p> <p>More information on SCOM: <a href="https://technet.microsoft.com/en-us/systemcenter/om">https://technet.microsoft.com/en-us/systemcenter/om</a>. </p> <h1>Monitoring SharePoint with its own tools</h1> <p>With or without SCOM, SharePoint 2010 provides many of its own tools for health monitoring. This section discusses all of these options.</p> <p>The Central Administration &gt; Monitoring page organizes SharePoint’s monitoring tools:</p> <p><a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/68/30/metablogapi/5810.image_5E03AC19.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-68-30-metablogapi/5810.image_5F00_5E03AC19.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/68/30/metablogapi/7888.image_thumb_5BE6AD50.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-68-30-metablogapi/7888.image_5F00_thumb_5F00_5BE6AD50.png" width="504" height="321" /></a> </p> <p>Reports available from this page:</p> <ul> <li>Health analysis problems and solutions  <ul> <li>Administrative configuration  </li><li>Performance issues  </li><li>Availability issues and  </li><li>Potential Security issues  </li><li>…results can be consumed by SCOM </li></ul> </li><li>Administrative reports  <ul> <li>Search administration (crawl rates, query latency, etc) </li></ul> </li><li>IRM Policy Usage reports  </li><li>Health reports  <ul> <li>Slowest Pages  </li><li>Top Active Users </li></ul> </li><li>Web Analytics reports  <ul> <li>Traffic (Page Views, Visitors, Referrers)  </li><li>Search usage (query totals, trends)  </li><li>Inventory (Number of sites) </li></ul></li></ul> <p>&nbsp;</p> <h3>Custom reporting</h3> <p>Custom reports can be built and deployed to Central Admin Monitoring using Excel or SQL Reporting Services.</p> <p>Custom health rules can also be created. Each custom health rule requires an assembly that will perform the desired health check. See <a href="https://msdn.microsoft.com/en-us/library/ee539433(office.14).aspx">How to: Create a Health Rule</a>.</p> <p>&nbsp;</p> <h3>ULS logging service</h3> <p>SharePoint’s logging service (which uses the Windows Unified Logging Service or ULS) has been improved in several ways.</p> <ol> <li>ULS Log Viewer  <ol> <li type="a">A SharePoint product team member discusses this tool on their <a href="https://blogs.msdn.com/opal/archive/2009/12/22/uls-viewer-for-sharepoint-2010-troubleshooting.aspx">blog</a>: “In SharePoint 2010 we can use correlation id to trace a series of event inside SharePoint. For example, in this screenshot, my machine is trying to flush usage log. The different entries may be buried in the big ULS log file, but with correlation id this viewer can easily filter and find them all.”<a href="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/68/30/metablogapi/5722.image_3FF57858.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-68-30-metablogapi/5722.image_5F00_3FF57858.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/MSDNBlogsFS/prod.evol.blogs.msdn.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/68/30/metablogapi/3107.image_thumb_1D5139DD.png" original-url="https://blogs.msdn.com/cfs-file.ashx/__key/CommunityServer-Blogs-Components-WeblogFiles/00-00-00-68-30-metablogapi/3107.image_5F00_thumb_5F00_1D5139DD.png" width="454" height="182" /></a>  </li><li type="a">Download ULS Log Viewer from: <a href="https://code.msdn.microsoft.com/ULSViewer">https://code.msdn.microsoft.com/ULSViewer</a> </li></ol> </li><li>PowerShell cmdlets for managing the logs  <ol> <li type="a">Diagnostic Configuration  <ol> <li type="i"><b>Get-SPDiagnosticConfig </b><u>r</u>etrieves Diagnostic Configuration values  </li><li type="i"><b>Set-SPDiagnosticConfig</b><u> a</u>llows setting Diagnostic Configuration values </li></ol> </li><li type="a">Trace Log and Event Log Throttling  <ol> <li type="i"><b>Get-SPLogLevel</b><u> d</u>isplays a list of diagnostic levels  </li><li type="i"><b>Set-SPLogLevel</b><u> a</u>llows setting of trace/event level on categories  </li><li type="i"><b>Clear-SPLogLevel</b><u> r</u>esets the trace/event levels to default </li></ol> </li><li type="a">Log File control  <ol> <li type="i"><b>New-SPLogFile</b><u> e</u>nds the current log and starts a new one  </li><li type="i"><b>Merge-SPLogFile</b><u> c</u>ombines trace log files from all farm servers into a single file </li></ol> </li><li type="a">Trace Log Querying/Filtering  <ol> <li type="i"><b>Get-SPLogEvent </b><u>r</u>eads and queries ULS trace logs </li></ol></li></ol> </li><li>Correlation ID tracing  <ol> <li type="a">Every request has a unique correlation ID associated with all calls triggered by that request, even in SQL Profiler. Correlation ID appears in error message and can be used to find all associated actions immediately. </li></ol> </li><li>Manageability improvements  <ol> <li type="a">The ULS log file from each WFE server can now be directed to accumulate into a single SQL Server database. This makes it easier to find all relevant messages, and provides integration with SCOM monitoring. To enable this, click Configure usage and health data collection under Monitoring in Central Administration.  </li><li type="a">All events that appear in the Windows Application log also appear in the ULS logs, so no longer necessary to correlate from these two different sources.  </li><li type="a">Event flood protection. Heavily recurring events can be given a threshold so that they are only reported once every several minutes. </li></ol></li></ol> <p>&nbsp;</p> <h3>Developer Dashboard for Page Performance</h3> <p>This tool is useful for measuring the behavior and performance of individual pages.&nbsp; To analyze performance of a page, turn on SharePoint's "Developer Dashboard" that reports on details of page performance.&nbsp; Using stsadm commands for this:</p><pre>stsadm –o setproperty –pn developer-dashboard –pv on</pre>
<p>After this is executed, each page will show a report at the bottom that gives information about the performance of all the page calls and database queries.</p>
<p>Article: <a href="https://blogs.technet.com/speschka/archive/2009/10/28/using-the-developer-dashboard-in-sharepoint-2010.aspx">https://blogs.technet.com/speschka/archive/2009/10/28/using-the-developer-dashboard-in-sharepoint-2010.aspx</a></p>
<p>To cancel:</p><pre>stsadm –o setproperty –pn developer-dashboard –pv <b>off</b></pre>
<p>To display an icon that allows you to toggle it on/off as you are working:</p><pre>stsadm –o setproperty –pn developer-dashboard –pv <b>ondemand</b></pre>
<p>To set this parameter using PowerShell, use the following code snippet:</p><pre>$DevDashboardSettings = [Microsoft.SharePoint.Administration.SPWebService]::ContentService.DeveloperDashboardSettings;
$DevDashboardSettings.DisplayLevel = ‘OnDemand’;
$DevDashboardSettings.RequiredPermissions =’EmptyMask’;
$DevDashboardSettings.TraceEnabled = $true;
$DevDashboardSettings.Update()</pre><pre>&nbsp;</pre>
<h3>SPMonitoredScope</h3>
<p>This class gives developers the ability to instrument their code so that it can be monitored using SharePoint tools, such as the Developer Dashboard. Example of use:</p><font size="3" face="Courier New"><pre>using (new SPMonitoredScope(
	“Some Scope Name”,
	TraceSeverity.Verbose, 1000,
	new SPRequestUsageCounter(3),
	new SPSqlQueryCounter())
	)
	{
		callExternalCode();
	}</pre></font>
<div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:92e6e504-7cd1-466a-99a7-42dd59f44c50" class="wlWriterEditableSmartContent">Technorati Tags: <a href="https://technorati.com/tags/SharePoint+2010" rel="tag">SharePoint 2010</a>,<a href="https://technorati.com/tags/Health" rel="tag">Health</a>,<a href="https://technorati.com/tags/Monitoring" rel="tag">Monitoring</a>,<a href="https://technorati.com/tags/SCOM" rel="tag">SCOM</a></div>]]></content:encoded>
    </item>
    <item>
      <title>The Site Directory</title>
      <link>https://docs.microsoft.com/archive/blogs/markarend/the-site-directory</link>
      <pubDate>Wed, 26 May 2010 12:26:12 GMT</pubDate>
      <dc:creator><![CDATA[Mark Arend]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/markarend/2010/05/26/the-site-directory/</guid>
      <description><![CDATA[What happened to the Site Directory template in SharePoint 2010?&#160; This feature was deprecated...]]></description>
      <content:encoded><![CDATA[<p>What happened to the Site Directory template in SharePoint 2010?&#160; This feature was deprecated by the product group, because new features in SharePoint 2010 were deemed a better way to automatically navigate and find sites and content, over the Site Directory model (which was admittedly a bit clunky, if you ask me).</p>  <p>So in SharePoint 2010, there is no longer an option to create a site with this template, and the portal site template does not include a Site Directory.</p>  <p>Now, if you upgrade a MOSS 2007 farm to SharePoint 2010, any Site Directory sites that you have will be upgraded and remain fully functional. So existing site directories are supported, but not the creation of new ones.&#160; This is why Central Administration still has an area to configure a Site Directory (under General Application Settings); so you may continue to manage any upgraded site directories correctly.</p>  <p><a title="Site Directory in SharePoint Server 2010" href="https://blogs.technet.com/b/wbaer/archive/2010/04/29/site-directory-in-sharepoint-server-2010.aspx">Bill Baer’s excellent blog</a> gives some additional information on this topic, including the new features of 2010 that are envisioned to be better replacements, such as Tagging, Notes, Managed Metadata and Metadata-based Navigation.</p>  <p>Finally, for those who want the specific functionality of the Site Directory in SharePoint 2010, a CodePlex solution is available: <a href="https://spsitedirectory2010.codeplex.com/">https://spsitedirectory2010.codeplex.com/</a>. This solution “follows the same basic principle of the Site Directory in SharePoint 2007 but adds some commonly requested features”</p>  <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:af2e2d16-2d3a-4647-ac53-177eccb233bf" class="wlWriterEditableSmartContent">Technorati Tags: <a href="https://technorati.com/tags/SharePoint+2010" rel="tag">SharePoint 2010</a>,<a href="https://technorati.com/tags/Site+Directory" rel="tag">Site Directory</a></div>]]></content:encoded>
    </item>
    <item>
      <title>SharePoint 2010 SDK</title>
      <link>https://docs.microsoft.com/archive/blogs/markarend/sharepoint-2010-sdk</link>
      <pubDate>Wed, 26 May 2010 10:52:48 GMT</pubDate>
      <dc:creator><![CDATA[Mark Arend]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/markarend/2010/05/26/sharepoint-2010-sdk/</guid>
      <description><![CDATA[The SDK (Software Development Kit) for SharePoint 2010 RTM’d slightly after the product itself and...]]></description>
      <content:encoded><![CDATA[<p>The SDK (Software Development Kit) for SharePoint 2010 RTM’d slightly after the product itself and is now available.&#160; This download contains both SharePoint 2010 and SharePoint Foundation 2010 SDKs, which you may install separately.&#160; About 450 MB required to install both of them, but the download is much smaller.</p>  <p><a title="Microsoft downloads" href="https://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=f0c9daf3-4c54-45ed-9bde-7b4d83a8f26f">Download the SDK</a> now.</p>  <h5>Tons of new “How-To” topics and code samples!</h5>  <p></p>  <ul>   <li>Code samples for <strong>SharePoint Foundation</strong>       <ul>       <li>Implementation of IBackupRestore </li>     </ul>   </li>    <li>Code samples for <strong>Business Connectivity Services</strong>       <ul>       <li>AdventureWorks .NET Assembly </li>        <li>AdventureWorks ASP.NET Web Service </li>        <li>AdventureWorks WCF Service </li>        <li>AdventureWorks 2008 .Net Assembly and Web Services </li>        <li>AdventureWorks 2008 Declarative Outlook Solution Reusable Components </li>        <li>AdventureWorks 2008 Declarative Outlook Solution Sample </li>        <li>Authenticating and Consuming Data from NetFlix (Web 2.0 Application) </li>        <li>BDC Model for XML Snippets </li>        <li>Custom Web Part and Word Add-in Sample </li>        <li>Sample Orders .Net Assembly and Web Services </li>        <li>Sandboxed BCS Workflow Sample </li>     </ul>   </li>    <li>Code samples for <strong>Enterprise Content Management</strong>       <ul>       <li>Content Type-Based Metadata </li>        <li>Creating a Routing Rule </li>        <li>Custom Document ID Provider </li>        <li>Managed Metadata Dependencies </li>        <li>Pausable Custom Timer Jobs </li>        <li>Publishing Cache Services </li>        <li>Silverlight Controls and Silverlight Thumbnail Extraction Sample </li>        <li>Retention Events </li>     </ul>   </li>    <li>Code samples for <strong>User Profiles and Social Data</strong>       <ul>       <li>Combine information from my public profile on Linkedin (or Facebook) with my User Profile </li>        <li>Gold star or thumbs to a colleague </li>        <li>Insert an event/document change event in feed </li>        <li>Share a link with my colleagues </li>        <li>Social data statistics </li>     </ul>   </li>    <li>Code samples for <strong>Visio Services</strong>       <ul>       <li>Annotations Sample </li>        <li>Custom Error Messages Sample </li>        <li>Mouse Interaction Sample </li>     </ul>   </li> </ul>  <p>   <div style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:09e5670d-2bb4-48b9-ba09-a3768fe40ef4" class="wlWriterEditableSmartContent">Technorati Tags: <a href="https://technorati.com/tags/SharePoint+2010" rel="tag">SharePoint 2010</a>,<a href="https://technorati.com/tags/Code+Samples" rel="tag">Code Samples</a></div></p>]]></content:encoded>
    </item>
    <item>
      <title>Hands-On SharePoint 2010</title>
      <link>https://docs.microsoft.com/archive/blogs/markarend/hands-on-sharepoint-2010</link>
      <pubDate>Tue, 25 May 2010 17:56:00 GMT</pubDate>
      <dc:creator><![CDATA[Mark Arend]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/markarend/2010/05/25/hands-on-sharepoint-2010/</guid>
      <description><![CDATA[Some great resources are available for you to get hands-on tutorials and demo environments for...]]></description>
      <content:encoded><![CDATA[<p>Some great resources are available for you to get hands-on tutorials and demo environments for SharePoint 2010 and Office 2010.</p>
<p><strong>For IT Pros</strong>: <a href="https://MSSharePointITPro.com">https://MSSharePointITPro.com</a>.&nbsp; This TechNet resource center is the starting place for understanding how to plan the physical architecture, infrastructure and configuration of SharePoint deployments.</p>
<ul>
<li>Hands-On Lab: <a href="https://technet.microsoft.com/en-us/sharepoint/ff420396.aspx">https://technet.microsoft.com/en-us/sharepoint/ff420396.aspx</a> </li>
</ul>
<p><strong></strong></p>
<p><strong>For Developers</strong>: <a href="https://MSSharePointDeveloper.com">https://MSSharePointDeveloper.com</a>.&nbsp; This MSDN resource center is the starting place for understanding how to plan development and implementation of custom SharePoint deployments.</p>
<ul>
<li>Hands-On Lab: <a href="https://msdn.microsoft.com/en-us/sharepoint/ee513147.aspx">https://msdn.microsoft.com/en-us/sharepoint/ee513147.aspx</a> </li>
</ul>
<p>&nbsp;</p>
<p>These labs let you get hands-on with an instance of SharePoint in the cloud, so no installation is necessary; you can get started right away.</p>
<p><strong>SharePoint 2010 IW Demos</strong>: <a href="https://go.microsoft.com/?linkid=9728417">https://go.microsoft.com/?linkid=9728417</a>.&nbsp; This is a Hyper-V virtual machine that has SharePoint 2010, Office 2010, Visual Studio 2010, SharePoint Designer 2010, SharePoint Workspace, and more.&nbsp; Plus, a ton of content is installed: sites, pages, users, documents, videos, workflows, libraries, etc., and the scripts that take you through how to use and demonstrate it all.&nbsp; This is an incredible resource.&nbsp; It&rsquo;s also huge: 18 GB.&nbsp; But there is an optional link on the page to use Akami download manager to speed the download with pause/resume functionality. Requires Windows Server 2008 R2 with Hyper-V.</p>
<p>Corresponding documents:</p>
<ul>
<li>SharePoint 2010 Overview Evaluation Guide <a href="https://go.microsoft.com/?linkid=9727161">https://go.microsoft.com/?</a><a href="https://go.microsoft.com/?linkid=9727161">linkid=9727161</a> </li>
<li>SharePoint 2010 Walkthrough Guide <a href="https://go.microsoft.com/?linkid=9727427">https://go.microsoft.com/?</a><a href="https://go.microsoft.com/?linkid=9727427">linkid=9727427</a> </li>
<li>Microsoft SharePoint Server 2010 Evaluation Guide For IT Professionals <a href="https://mail.microsoft.com/owa/redir.aspx?C=4144b098150241899cfa2f3951163ddb&amp;URL=https://go.microsoft.com/?linkid=9727162">https://go.microsoft.com/?linkid=9727162</a> </li>
<li>Microsoft SharePoint 2010 Professional Developer&rsquo;s Evaluation Guide <a href="https://mail.microsoft.com/owa/redir.aspx?C=4144b098150241899cfa2f3951163ddb&amp;URL=https://go.microsoft.com/?linkid=9727163">https://go.microsoft.com/?linkid=9727163</a> </li>
</ul>
<div class="wlWriterEditableSmartContent" id="scid:0767317B-992E-4b12-91E0-4F059A8CECA8:8d50e253-d403-4355-b01a-dcc3006723b8" style="padding-bottom: 0px; margin: 0px; padding-left: 0px; padding-right: 0px; display: inline; float: none; padding-top: 0px">Technorati Tags: <a rel="tag" href="https://technorati.com/tags/SharePoint+2010">SharePoint 2010</a>,<a rel="tag" href="https://technorati.com/tags/Labs">Labs</a>,<a rel="tag" href="https://technorati.com/tags/Demos">Demos</a></div>]]></content:encoded>
    </item>
    <item>
      <title>SharePoint 2010 List and Library Size</title>
      <link>https://docs.microsoft.com/archive/blogs/markarend/sharepoint-2010-list-and-library-size</link>
      <pubDate>Tue, 25 May 2010 17:55:00 GMT</pubDate>
      <dc:creator><![CDATA[Mark Arend]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/markarend/2010/05/25/sharepoint-2010-list-and-library-size/</guid>
      <description><![CDATA[Great news about increased list capacities for SharePoint 2010:
Max recommended SharePoint 2010...]]></description>
      <content:encoded><![CDATA[<p>Great news about increased list capacities for SharePoint 2010:</p>
<p><strong>Max recommended SharePoint 2010 list size is 30 million items or documents!</strong></p>
<p>Plus, the maximum recommended number of items or documents in a view is now 5,000.&nbsp; Specific guidelines are given in <a href="https://technet.microsoft.com/en-us/library/cc262787(office.14).aspx" title="SharePoint Server 2010 Capacity Management- Software Boundaries and Limits">SharePoint Server 2010 Capacity Management- Software Boundaries and Limits</a>.</p>
<p>We still highly recommend nesting documents in a folder structure when you want to store millions of documents in the library.&nbsp; There are two new features to help you do this easily: the Content Organizer and Document IDs.</p>
<p><strong>Content Organizer</strong></p>
<p>This is a configuration that you can enable on a document library, to automatically organize documents into folder structures, even creating new folders when necessary.&nbsp; Steve Peschka describes it best in his detailed <a href="https://blogs.technet.com/speschka/archive/2009/10/30/sharepoint-2010-content-organizer-part-1-a-cool-new-feature-for-managing-your-content.aspx" title="SharePoint 2010 Content Organizer Part 1 - A Cool New Feature for Managing Your Content">article on the Content Organizer</a>:</p>
<blockquote>
<p>&ldquo;&hellip;it can be used for mundane housekeeping type activities such as making sure that no folder within a document library contains more than 5000 items, for example. When item number 5001 is added to the library, the Content Organizer can automatically create a new folder and put the document in that folder. All of this routing and folder creation can be handled automatically without further user intervention. After a document is uploaded and the required metadata applied, the upload form displays a Url to a document that has been routed so the user knows where to find it in the future.&rdquo;</p>
</blockquote>
<p><strong>Document IDs</strong></p>
<p>SharePoint now provides the ability to automatically assign a unique ID to documents as they are created or uploaded that can be used to locate them no matter where they are stored or moved in the farm.&nbsp; It works for single documents and the new Document Set.&nbsp; Blair Biggens <a href="https://blogs.technet.com/blairb/archive/2009/10/20/new-document-id-feature-in-sharepoint-2010.aspx" title="New Document ID Feature in SharePoint 2010">discusses this in more detail</a>.</p>
<p>Also very nice: it&rsquo;s not a GUID but a bit more friendlier, shorter ID code!</p>]]></content:encoded>
    </item>
  </channel>
</rss>