<?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>petergu</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/petergu/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/petergu/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:45:50 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Windows Azure Network: Packets being dropped after sending RST/FIN</title>
      <link>https://docs.microsoft.com/archive/blogs/petergu/windows-azure-network-packets-being-dropped-after-sending-rstfin</link>
      <pubDate>Thu, 26 Nov 2015 22:59:17 GMT</pubDate>
      <dc:creator><![CDATA[Peter Gu]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/petergu/2015/11/26/windows-azure-network-packets-being-dropped-after-sending-rstfin/</guid>
      <description><![CDATA[We identified an issue that SLB seems reusing ports immediately after being released after a RCP RST...]]></description>
      <content:encoded><![CDATA[<p>We identified an issue that SLB seems reusing ports immediately after being released after a RCP RST or FIN.</p>
<p>Azure Engineering team will fix it in next release, while an effective workaround is to configure PIP for the VM.</p>
<p>Please refer to this article for detailed steps: <a name="how-to-add-an-ilpip-to-an-existing-vm" id="_how-to-add-an-ilpip-to-an-existing-vm" href="https://azure.microsoft.com/en-us/documentation/articles/virtual-networks-instance-level-public-ip/#how-to-add-an-ilpip-to-an-existing-vm"></a>How to add an ILPIP to an existing VM: <a href="https://azure.microsoft.com/en-us/documentation/articles/virtual-networks-instance-level-public-ip/">https://azure.microsoft.com/en-us/documentation/articles/virtual-networks-instance-level-public-ip/</a></p>]]></content:encoded>
    </item>
    <item>
      <title>PowerShell Verbose Preference</title>
      <link>https://docs.microsoft.com/archive/blogs/petergu/powershell-verbose-preference</link>
      <pubDate>Fri, 15 May 2015 22:44:00 GMT</pubDate>
      <dc:creator><![CDATA[Peter Gu]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/petergu/2015/05/15/powershell-verbose-preference/</guid>
      <description><![CDATA[After installing some PowerShell modules such as Windows Azure PowerShell, Azure SDK and WAOC...]]></description>
      <content:encoded><![CDATA[<p>After installing some PowerShell modules such as Windows Azure PowerShell, Azure SDK and WAOC internal PS modules, the PowerShell output became verbose style all the ways, pretty annoying:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/PS1.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/PS1.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/PS1.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/PS1.png" border="0" /></a></p>
<p>Who made this lovely change and where it being controlled? The trick is here. The PowerShell icon in your task bar actually pointing to a startup script, by default it&#39;s like this:</p>
<p><strong>C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe -NoExit -ExecutionPolicy Bypass -File &quot;C:\Program Files (x86)\Microsoft SDKs\Azure\PowerShell\ServiceManagement\Azure\Services\ShortcutStartup.ps1&quot;</strong></p>
<p>Open the startup script, search for $VerbosePreference, you may see someone changed the default value:</p>
<p><strong>$VerbosePreference=&quot;Continue&quot;</strong></p>
<p>Change it back to the default:</p>
<p><strong>$VerbosePreference=&quot;SilentlyContinue&quot;</strong></p>
<p></p>
<p>All set. Now PowerShell no longer working like nuts:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/PS2.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/PS2.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/PS2.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/PS2.png" border="0" /></a></p>
<p>*Note: You will need to run the editor with elevated privilege. Run as Administrator, or it may not able to be saved.</p>]]></content:encoded>
    </item>
    <item>
      <title>Windows 10 and ADFS pain</title>
      <link>https://docs.microsoft.com/archive/blogs/petergu/windows-10-and-adfs-pain</link>
      <pubDate>Fri, 15 May 2015 22:30:00 GMT</pubDate>
      <dc:creator><![CDATA[Peter Gu]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/petergu/2015/05/15/windows-10-and-adfs-pain/</guid>
      <description><![CDATA[Windows 10 preview getting constantly updated and giving us new surprising &amp; pains. This time...]]></description>
      <content:encoded><![CDATA[<p>Windows 10 preview getting constantly updated and giving us new surprising &amp; pains. This time ADFS malfunctioned.</p>
<p>ADFS failed to authenticate with current credential:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/ADFS1.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/ADFS1.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/ADFS1.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/ADFS1.png" border="0" /></a></p>
<p>Then &quot;bad request&quot;:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/ADFS2.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/ADFS2.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/ADFS2.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/ADFS2.png" border="0" /></a></p>
<p>Resolution is simple. Reset IE and erase all your personal settings, the ADFS working happily with new IE.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/ADFS3.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/ADFS3.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/ADFS3.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/ADFS3.png" border="0" /></a></p>]]></content:encoded>
    </item>
    <item>
      <title>Working with GALSync and cross-forest Lync</title>
      <link>https://docs.microsoft.com/archive/blogs/petergu/working-with-galsync-and-cross-forest-lync</link>
      <pubDate>Tue, 14 Oct 2014 04:41:00 GMT</pubDate>
      <dc:creator><![CDATA[Peter Gu]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/petergu/2014/10/14/working-with-galsync-and-cross-forest-lync/</guid>
      <description><![CDATA[Brief Introduction
=================================
We already have plenty of articles...]]></description>
      <content:encoded><![CDATA[<p></p>
<p><strong><span style="font-size:medium;">Brief Introduction</span></strong></p>
<p>=================================</p>
<p>We already have plenty of articles describing how to share Free/Busy across forests and how to enable Lync in a multi-forest scenario. But what about an Exchange-Lync combination in this cross forest scenario? I&#39;m writing this blog trying to provide you some hints on it.</p>
<p>Scenario: Customer got two forests, one for global system and one built &amp; maintained by subsidiary.</p>
<p>Diagram: Lab Topology:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/POC%20Lab.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/POC-Lab.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/POC%20Lab.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/POC-Lab.png" border="0" /></a></p>
<p><strong>Forest-A</strong>: got Exchange 2007 and Lync 2010 deployed. (Contoso.com)</p>
<p><strong>Forest-B</strong>: only runs Exchange 2007. No Lync schema&nbsp;extension nor&nbsp;any Lync deployments here. (Fabrikam.com)</p>
<p><strong>Goals</strong>:</p>
<p>1. Sync GAL&nbsp;between the two Exchange organizations</p>
<p>2. Share Calendar information with each other</p>
<p>3. Enable Lync for Forest-B users, leveraging the Lync servers deployed in Forest-A</p>
<p>Note: FIM is running on another forest independently, to prove it&#39;s not relying on any source/destination forest memberships.</p>
<p></p>
<p><strong><span style="font-size:medium;">Solution Design</span></strong></p>
<p>=================================</p>
<table style="width:629px;height:688px;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>GAL Sync</td>
<td>
<p>To make the two GALs include contact info from remote organization,&nbsp;we have to create corresponding objects in local AD to reflect the remote mail recipients/groups.</p>
<p>Microsoft provided solutions on this. IIFP/MIIS/ILM/FIM (they are actually pretty similar products) got builtin component called &quot;GALSync&quot;, which pumps objects from source Active Directory into SQL database, and later on we can leverage the metadata to create objects in another Active Directory.</p>
<p>Find detailed description here: <a title="How to Transition from Cross-Forest to Cross-Forest" href="https://technet.microsoft.com/en-us/library/bb124363(v=exchg.80).aspx">How to Transition from Cross-Forest to Cross-Forest</a></p>
<p>In this lab, we are going to install FIM 2010 and configure GALSync to do the bi-directional &quot;user &lt;--&gt; contact&quot; sync.</p>
</td>
</tr>
<tr>
<td>Calendar Sharing</td>
<td>
<p>Assume all clients are based on Outlook 2007 and later, they retrieve Free/Busy information from Exchange 2007 CAS, this is a functionality provided by the Availability Service:<br />- If the requested mailbox is located in local Mailbox server, the local CAS talks to it;<br />- If the requested mailbox is located in remote site, the local CAS proxies the request to remote CAS to retrieve Free/Busy information.</p>
<p>The credential being used when&nbsp;CAS in two separate organizations talks&nbsp;to each other:</p>
<p>1. If two-way AD trust exists, we can modify the ACL on CAS to allow access with computer account;<br />2. If no AD trust exists, we can configure CAS to use specified credential to connect to remote CAS.</p>
<p>And how can a local CAS locate the remote CAS? It&#39;s relying on Autodiscover mechanism. We have two options to achieve this:</p>
<p>1.&nbsp;If AD trust in place, we can export SCP from target AD &amp; import to source AD<br />2. An alternative way is to specify a credential by Get-Credential then leverage it when executing Add-AvailabilityAddressSpace cmdlet. This doesn&#39;t requires any trust relationship.</p>
<p>When CAS talk to each other, after authentication they also need to validate each other&#39;s certificate as the communication is based on HTTPS protocol. We have two options to achieve the mutual certificate validation:</p>
<p>1. If Exchange CAS&nbsp;servers are&nbsp;using the default self-signed certificate, we can modify the registry to make them allow those untrusted certs<br />2. If Exchange CAS servers are using certificate issued by CA, we may install the Root CA certificate&nbsp;into the&nbsp;local &quot;Trusted Certificate Authorities&quot; container, to make those certs issued by the CA trusted</p>
<p>Find more details here: <a title="How to Configure the Availability Service for Cross-Forest Topologies" href="https://technet.microsoft.com/en-us/library/bb125182(v=exchg.80).aspx">How to Configure the Availability Service for Cross-Forest Topologies</a></p>
<p>In this lab, we are going to create AD trust, use autodiscover to locate remote CAS, and allow untrusted certs by modifying registry.</p>
</td>
</tr>
<tr>
<td>Cross Forest Lync</td>
<td>
<p>There&#39;re two scenarios for deploying Lync in multiple forests:</p>
<p>1. Central forest: one large forest hosting users &amp; servers, providing Lync service to spoke forests. We may sync users from spoke forest to contact objects into central forest. Detailed description: <a title="Part 1: Deploying Lync Server 2010 in a Central Forest Topology" href="https://technet.microsoft.com/en-us/library/gg670889(v=ocs.14).aspx">Part 1: Deploying Lync Server 2010 in a Central Forest Topology</a><br />2. Resource forest: a dedicated forest used for deploying servers, we may sync users from user forest to user objects into resource forest. Details: <a title="Part 2: Deploying Lync Server 2010 in a Resource Forest Topology" href="https://technet.microsoft.com/en-us/library/gg670911(v=ocs.14).aspx">Part 2: Deploying Lync Server 2010 in a Resource Forest Topology</a></p>
<p>In this lab, we are going to use central forest topology, leveraging the contact objects created by GALSync from FIM. This will need some customization on the MA</p>
</td>
</tr>
</tbody>
</table>
<p></p>
<p></p>
<p><strong><span style="font-size:medium;">Configuration Steps</span></strong></p>
<p>=================================</p>
<p>The basic idea is:</p>
<table style="width:628px;height:65px;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>Source</td>
<td>Metaverse</td>
<td>Destination</td>
<td>Direction</td>
</tr>
<tr>
<td>thumbnailPhoto attribute on user object</td>
<td>photo attribute on person object</td>
<td>thumbnailPhoto attribute on contact object</td>
<td>Domain-A &lt;--&gt; Domain-B</td>
</tr>
<tr>
<td>DN attribute on user object from Domain-B</td>
<td>Ms-DS-Source-Object-DN&nbsp;attribute on person object</td>
<td>msDS-SourceObjectDN on contact object in Domain-A</td>
<td>Domain-B -&gt; Domain-A</td>
</tr>
<tr>
<td>objectSID on user object from Domain-B</td>
<td>objectSid attribute on person object</td>
<td>msRTCSIP-OriginatorSID on contact object in Domain-A</td>
<td>Domain-B -&gt; Domain-A</td>
</tr>
</tbody>
</table>
<p></p>
<p><strong><span style="font-size:small;">1. Prepare FIM 2010</span></strong></p>
<p>Login to USFIM01, install SQL Server and FIM 2010 Synchronization Service.</p>
<p>Download Lync Server Resource Kit: <a href="https://www.microsoft.com/en-us/download/details.aspx?id=21165">https://www.microsoft.com/en-us/download/details.aspx?id=21165</a>. Install &amp; copy the entire C:\Program Files\Microsoft Lync Server 2010\ResKit\LcsSync folder to FIM Server (C:\Program Files\Microsoft Forefront Identity Manager\2010\Synchronization Service\Extensions)</p>
<p>Edit the <strong>lcsmvschema.xml</strong> file. Two incorrect attributes defined (otherHomePhone and otherTelephone), we got to correct them. By default the thumbnailPhoto attribute is not being included in the FIM metaverse for &quot;person&quot; object, if you want to sync photos, add it into the schema as well.</p>
<table style="width:520px;height:330px;" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td>Original</td>
<td>Update to</td>
</tr>
<tr>
<td>
<p>In &lt;dsml:directory-schema&gt; section:</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dsml:attributeatype id=&quot;otherHomePhone&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dsml:name&gt;otherHomePhone&lt;/dsml:name&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dsml:syntax&gt;1.3.6.1.4.1.1466.115.121.1.15&lt;/dsml:syntax&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/dsml:attribute-type&gt;</p>
</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dsml:attribute-type id=&quot;otherHomePhone&quot; single-value=&quot;false&quot; ms-dsml:indexable=&quot;true&quot; ms-dsml:indexed=&quot;true&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dsml:name&gt;otherHomePhone&lt;/dsml:name&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dsml:syntax&gt;1.3.6.1.4.1.1466.115.121.1.15&lt;/dsml:syntax&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/dsml:attribute-type&gt;</td>
</tr>
<tr>
<td>
<p>In &lt;dsml:directory-schema&gt; section:</p>
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dsml:attribute-type id=&quot;otherTelephone&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dsml:name&gt;otherTelephone&lt;/dsml:name&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dsml:syntax&gt;1.3.6.1.4.1.1466.115.121.1.15&lt;/dsml:syntax&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/dsml:attribute-type&gt;</p>
</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dsml:attribute-type id=&quot;otherTelephone&quot; single-value=&quot;false&quot; ms-dsml:indexable=&quot;true&quot; ms-dsml:indexed=&quot;true&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dsml:name&gt;otherTelephone&lt;/dsml:name&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dsml:syntax&gt;1.3.6.1.4.1.1466.115.121.1.15&lt;/dsml:syntax&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/dsml:attribute-type&gt;</td>
</tr>
<tr>
<td>In &lt;dsml:directory-schema&gt; section, add</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dsml:attribute-type id=&quot;photo&quot; single-value=&quot;true&quot;&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dsml:name&gt;photo&lt;/dsml:name&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dsml:syntax&gt;1.3.6.1.4.1.1466.115.121.1.5&lt;/dsml:syntax&gt;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/dsml:attribute-type&gt;</td>
</tr>
<tr>
<td>In &lt;dsml:class id=&quot;person&quot; type=&quot;structural&quot;&gt; section, add</td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dsml:attribute ref=&quot;#photo&quot; required=&quot;false&quot; /&gt;</td>
</tr>
</tbody>
</table>
<p>Open Synchronization Service, navigate to Metaverse designer, Action, Import Metaverse Schema, import the updated <strong>lcsmvschema.xml</strong>.</p>
<p></p>
<p><strong><span style="font-size:small;">2. Create MA for Domain-A</span></strong></p>
<p>Open Synchronization Service, navigate to Management Agents</p>
<p><strong>Properties </strong>page: Create, Choose &quot;Active Directory global address list (GAL)&quot;, give MA a name, Next</p>
<p><strong>Connect to Active Directory Forest </strong>page: Specify forest name, credential, Next</p>
<p><strong>Configure Directory Partitions </strong>page: Select the partition, click on &quot;Containers&quot;, Next</p>
<p><strong>Configure GAL </strong>page: Assign source and destination OU/Container, specify SMTP suffix (must start with @), check the &quot;Support cross-forest delegation (Exchange 2007 or 2010 only)&quot;, Next</p>
<p><strong>Configure Provisioning Hierarchy </strong>page: Next</p>
<p><strong>Select Object Types </strong>page: Next</p>
<p><strong>Select Attributes </strong>page: Check &quot;Show All&quot;, make sure &quot;msRTCSIP-OriginatorSid&quot;, &quot;msDS-SourceObjectDN&quot;&nbsp;and &quot;thumbnailPhoto&quot; checked, Next</p>
<p><strong>Configure Connector Filter </strong>page: Next</p>
<p><strong>Configure Join and Projection Rules </strong>page: Next</p>
<p><strong>Configure Attributes Flow </strong>page: Under &quot;User -&gt; Person&quot; flow, add an import &quot;thumbnailPhoto -&gt; photo&quot;, this will read Domain-A user photo into FIM Metaverse. Under &quot;Contact &lt;- Person&quot; flow, add three&nbsp;exports: &quot;thumbnailPhoto &lt;- photo, allow null&quot;, &quot;msRTCSIP-OringinatorSid &lt;- objectSid&quot;, &quot;msDS-SourceObjectDN &lt;- Ms-DS-Source-Object-DN, allow null&quot;, this will read photo, objectSID and DN from Metaverse and write to Domain-A.</p>
<p><strong>Configure Deprovisioning </strong>page: Next</p>
<p><strong>Configure Extensions </strong>page: Select &quot;Exchange 2007&quot; in the drop-down menu, Finish.</p>
<p></p>
<p><strong><span style="font-size:small;">3. Create MA for Domain-B</span></strong></p>
<p>Open Synchronization Service, navigate to Management Agents</p>
<p><strong>Properties</strong> page: Create, Choose &quot;Active Directory global address list (GAL)&quot;, give MA a name, Next</p>
<p><strong>Connect to Active Directory Forest</strong> page: Specify forest name, credential, Next</p>
<p><strong>Configure Directory Partitions</strong> page: Select the partition, click on &quot;Containers&quot;, Next</p>
<p><strong>Configure GAL</strong> page: Assign source and destination OU/Container, specify SMTP suffix (must start with @), check the &quot;Support cross-forest delegation (Exchange 2007 or 2010 only)&quot;, Next</p>
<p><strong>Configure Provisioning Hierarchy</strong> page: Next</p>
<p><strong>Select Object Types</strong> page: Next</p>
<p><strong>Select Attributes</strong> page: Check &quot;Show All&quot;, make sure &quot;msRTCSIP-OriginatorSid&quot;, &quot;msDS-SourceObjectDN&quot;&nbsp;and &quot;thumbnailPhoto&quot; checked, Next</p>
<p><strong>Configure Connector Filter</strong> page: Next</p>
<p><strong>Configure Join and Projection Rules</strong> page: Next</p>
<p><strong>Configure Attributes Flow</strong> page: Under &quot;User -&gt; Person&quot; flow, add two imports &quot;thumbnailPhoto -&gt; photo&quot; and &quot;&lt;dn&gt; -&gt; Ms-DS-Source-Object-DN&quot;, this will read Domain-B user photo and DN into FIM Metaverse for &quot;Person&quot; objects. Under &quot;Contact &lt;- Person&quot; flow, add an export: &quot;thumbnailPhoto &lt;- photo, allow null&quot;, this will read photo from Metaverse and write to Domain-B.</p>
<p><strong>Configure Deprovisioning</strong> page: Next</p>
<p><strong>Configure Extensions</strong> page: Select &quot;Exchange 2007&quot; in the drop-down menu, Finish.</p>
<p></p>
<p><span style="font-size:small;"><strong>4. Import, Sync and Export</strong></span></p>
<p>- Import both of the MA, now we have Metaverse in FIM database<br />- Sync<br />- Export MA for Domain-A, we should be able to see contact objects being created, with msDS-SourceObjectDN(A) from DN(B), msRTCSIP-OriginatorSID(A) from objectSID(B), thumbnailPhoto(A) from thumbnailPhoto(B)<br />- Export MA for Domain-B, we should&nbsp;be able to see contact objects being created, with thumbnailPhoto(B) from thumbnailPhoto(A)</p>
<p></p>
<p><span style="font-size:small;"><strong>5. Enable Lync for syched contacts in Domain-A</strong></span></p>
<p>Unfortunately, contact object can&#39;t be managed by Lync Control Panel. We must use Enale-CsUser cmdlet to enable Lync for Domain-B users.</p>
<p>Example:<br />Get-CsAdContact &#39;4 li&#39; | Enable-CsUser -SipAddress sip:li4@domainb.com -RegistrarPool cnly01.domaina.com</p>
<p></p>
<p><span style="font-size:small;"><strong>6. Configure Exchange Calendar Sharing</strong></span></p>
<p>On CAS server in both domain, modify the registry to allow untrusted certificate:</p>
<p>HKLM\System\CurrentControlSet\Services\MSExchangeOWA\AllowInternalUntrustedCerts = 1<br />HKLM\System\CurrentControlSet\Services\MSExchangeOWA\AllowExternalUntrustedCerts = 1</p>
<p>On CAS server in Domain-A, add address space for Domain-B:</p>
<p>Add-AvailabilityAddressSpace -ForestName &quot;fabrikam.com&quot; -AccessMethod PerUserFB -UseServiceAccount $true<br />Get-ClientAccessServer | Add-AdPermission -AccessRights ExtendedRight -ExtendedRights &quot;ms-exch-epi-token-serialization&quot; -User&nbsp; &quot;FABRIKAM\Exchange Servers&quot;</p>
<p>On CAS server in Domain-B, add address space for Domain-A:</p>
<p>Add-AvailabilityAddressSpace -ForestName &quot;contoso.com&quot; -AccessMethod PerUserFB -UseServiceAccount $true<br />Get-ClientAccessServer | Add-AdPermission -AccessRights ExtendedRight -ExtendedRights &quot;ms-exch-epi-token-serialization&quot; -User&nbsp; &quot;CONTOSO\Exchange Servers&quot;</p>
<p></p>
<p>All done. Hopefully this post helps you to understand and configure multi-forest scenario with Exchange &amp; Lync Servers.</p>
<p></p>]]></content:encoded>
    </item>
    <item>
      <title>Installing Windows on disks larger than 2TB</title>
      <link>https://docs.microsoft.com/archive/blogs/petergu/installing-windows-on-disks-larger-than-2tb</link>
      <pubDate>Mon, 09 Jun 2014 19:08:00 GMT</pubDate>
      <dc:creator><![CDATA[Peter Gu]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/petergu/2014/06/09/installing-windows-on-disks-larger-than-2tb/</guid>
      <description><![CDATA[Some friend raised an interesting topic: How do we boot Windows 7/8 on disks larger than 2TB?
My...]]></description>
      <content:encoded><![CDATA[<p><span>Some friend raised an interesting topic: How do we boot Windows 7/8 on disks larger than 2TB?</span></p>
<p><span>My first guess would be simple: select &quot;Repair your computer&quot; before clicking &quot;Install now&quot; button, enter command prompt to load the disk driver &amp; prepare disk with DISKPART.</span></p>
<p><span>But soon I realized installing &amp; booting from disk larger than 2TB is not as easy as &quot;pre-create partitions on a GPT disk in advance&quot;.</span></p>
<p><span>&nbsp;</span></p>
<p><b><span>Short Answer</span></b></p>
<p><span>====================</span></p>
<p><span>After couple of unsuccessful attempts I finally made it. The secret is UEFI boot.</span></p>
<p><span>&nbsp;</span></p>
<p><span>&nbsp;</span></p>
<p><b><span>References</span></b></p>
<p><span>====================</span></p>
<ul>
<li>
<p><a href="https://support.microsoft.com/kb/2581408/en-us"><span style="color:#0563c1;">Windows support for hard disks that are larger than 2 TB</span></a></p>
</li>
<li>
<p><a href="https://support.microsoft.com/kb/100108/en-us"><span style="color:#0563c1;">Overview of FAT, HPFS, and NTFS File Systems</span></a></p>
</li>
<li>
<p><a href="https://support.microsoft.com/kb/302873/en-us"><span style="color:#0563c1;">Frequently asked questions about the GUID Partitioning Table disk architecture</span></a></p>
</li>
<li>
<p><a href="https://technet.microsoft.com/en-us/library/hh824898.aspx"><span style="color:#0563c1;">UEFI Firmware</span></a></p>
</li>
</ul>
<p><span>&nbsp;</span></p>
<p><span>&nbsp;</span></p>
<p><b><span>Key Info</span></b></p>
<p><span>====================</span></p>
<ul>
<li>
<p><b>GPT vs MBR: </b>GPT for disks larger than 2TB is a must. Disks using MBR partitioning table can only support up to 2TB address space.</p>
</li>
<li>
<p><b>BIOS vs UEFI: </b>All versions of Windows support BIOS firmware. On modern mainboards, UEFI became an standard option.</p>
</li>
<li>
<p>2TB is NOT a limitation defined by NTFS. Actually NTFS can support up to 2^64 bytes which is 16 Exabyte.</p>
</li>
<li>
<p><b>Support Matrix:</b></p>
</li>
</ul>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top">
<p align="center"><b><span>System</span></b></p>
</td>
<td valign="top">
<p align="center"><b><span>BIOS + MBR</span></b></p>
</td>
<td valign="top">
<p align="center"><b><span>BIOS + GPT</span></b></p>
</td>
<td valign="top">
<p align="center"><b><span>UEFI + MBR</span></b></p>
</td>
<td valign="top">
<p align="center"><b><span>UEFI + GPT</span></b></p>
</td>
</tr>
<tr>
<td valign="top">
<p><b><span>Windows Vista &amp; later</span></b></p>
</td>
<td valign="top">
<p><span>Supported</span></p>
</td>
<td valign="top">
<p><span>Boot volume not supported</span></p>
</td>
<td valign="top">
<p><span>Boot volume not supported</span></p>
</td>
<td valign="top">
<p><span>Supported; requires 64-bit version</span></p>
</td>
</tr>
<tr>
<td valign="top">
<p><b><span>Windows XP</span></b></p>
</td>
<td valign="top">
<p><span>Supported</span></p>
</td>
<td valign="top">
<p><span>Boot volume not supported</span></p>
</td>
<td valign="top">
<p><span>Boot volume not supported</span></p>
</td>
<td valign="top">
<p><span>Not supported</span></p>
</td>
</tr>
</tbody>
</table>
<p><span>&nbsp;</span></p>
<p><span>&nbsp;</span></p>
<p><b><span>DISKPART?</span></b></p>
<p><span>====================</span></p>
<p><span>Unfortunately preparing partitions with <b>diskpart.exe</b> to is NOT a feasible option because:</span></p>
<ul>
<li>
<p>Windows will automatically convert it back to MBR if it&rsquo;s a GPT disk without partition;</p>
</li>
<li>
<p>or refuse to install on a GPT disk with one or more partitions.</p>
</li>
</ul>
<p><span>Using Linux utilities such as <b>gparted</b> is all the same. Windows setup program simply incompatible with <b>BIOS+GPT</b> combination.</span></p>
<p><span>&nbsp;</span></p>
<p><span>&nbsp;</span></p>
<p><b><span>Resolution</span></b></p>
<p><span>====================</span></p>
<p><span>The correct solution is to enable UEFI boot support in BIOS setting and setup with modern Windows ISO such as Windows 8.1.</span></p>
<p><span>&nbsp;</span></p>
<p><span style="font-family:Calibri;"><span><b>Note</b>: if running on Hyper-V, UEFI is only available for <b>Generation 2</b> VM on latest hypervisors:</span></span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/image001.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/image001.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/image001.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/image001.png" border="0" /></a></p>
<p><span>&nbsp;</span></p>
<p><span>Simply select the empty disk &amp; hit &ldquo;Next&rdquo;</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/image003.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/image003.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/image003.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/image003.png" border="0" /></a></p>
<p><span>&nbsp;</span></p>
<p><span>Here comes the wonder!</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/image005.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/image005.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/image005.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/image005.png" border="0" /></a></p>
<p><span>&nbsp;</span></p>
<p><span>&nbsp;</span></p>
<p><b><span>Tricks</span></b></p>
<p><span>====================</span></p>
<p><span>If you see this in UEFI boot, it means the ISO is corrupted, even if it works with BIOS boot. Try to download a new ISO (or copy the entire \efi folder from a working ISO. Unverified.).</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/image007.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/image007.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/image007.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/image007.png" border="0" /></a></p>
<p><span>&nbsp;</span></p>
<p><span>If you can&rsquo;t see the prompt while booting with setup CD,</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/image009.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/image009.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/image009.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/image009.png" border="0" /></a></p>
<p><span>Then do some tweak to the ISO. Navigate to \efi\microsoft\boot, swap file names:</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/image011.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/image011.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/image011.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/image011.png" border="0" /></a></p>
<p><span>&nbsp;</span></p>
<p><span>Sometimes Secure Boot prevents boot on older ISO such as Vista/Win7. Uncheck it:</span></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/image013.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/image013.png"><img alt=" " src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/95/image013.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-95/image013.png" border="0" /></a></p>
<p><span>&nbsp;</span></p>
<p><span>&nbsp;</span></p>
<p><span>Wish it&rsquo;s useful for you.</span></p>]]></content:encoded>
    </item>
    <item>
      <title>Interpreting the SupportedEncryptionTypes Registry Key</title>
      <link>https://docs.microsoft.com/archive/blogs/petergu/interpreting-the-supportedencryptiontypes-registry-key</link>
      <pubDate>Sun, 14 Apr 2013 18:47:39 GMT</pubDate>
      <dc:creator><![CDATA[Peter Gu]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/petergu/2013/04/14/interpreting-the-supportedencryptiontypes-registry-key/</guid>
      <description><![CDATA[Currently we support multiple encryption algorithm in Kerberos. Here's a brief description from...]]></description>
      <content:encoded><![CDATA[<p>Currently we support multiple encryption algorithm in Kerberos. Here's a brief description from TechNet:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top">
<p align="center"><strong>Encryption type</strong></p>
</td>
<td valign="top">
<p align="center"><strong>Description and version support</strong></p>
</td>
</tr>
<tr>
<td valign="top">
<p align="left">DES_CBC_CRC</p>
</td>
<td valign="top">
<p align="left">Data Encryption Standard with Cipher Block Chaining using the Cyclic&nbsp;Redundancy Check function</p>
<p align="left">Supported in Windows&nbsp;2000 Server, Windows&nbsp;XP, Windows Server&nbsp;2003,&nbsp;Windows&nbsp;Vista, and Windows Server&nbsp;2008. The Windows&nbsp;7 and Windows Server&nbsp;2008&nbsp;R2&nbsp;operating systems do not support DES by default.</p>
</td>
</tr>
<tr>
<td valign="top">
<p align="left">DES_CBC_MD5</p>
</td>
<td valign="top">
<p align="left">Data Encryption Standard with Cipher Block Chaining using the Message-Digest&nbsp;algorithm 5 checksum function</p>
<p align="left">Supported in Windows&nbsp;2000 Server, Windows&nbsp;XP, Windows Server&nbsp;2003,&nbsp;Windows&nbsp;Vista, and Windows Server&nbsp;2008. The Windows&nbsp;7 and Windows Server&nbsp;2008&nbsp;R2&nbsp;operating systems do not support DES by default.</p>
</td>
</tr>
<tr>
<td valign="top">
<p align="left">RC4_HMAC_MD5</p>
</td>
<td valign="top">
<p align="left">Rivest Cipher 4 with Hashed Message Authentication Code using the&nbsp;Message-Digest algorithm 5 checksum function</p>
<p align="left">Supported in Windows&nbsp;2000 Server, Windows&nbsp;XP, Windows Server&nbsp;2003,&nbsp; Windows&nbsp;Vista, Windows Server&nbsp;2008, Windows&nbsp;7, and Windows&nbsp;Server&nbsp;2008&nbsp;R2.</p>
</td>
</tr>
<tr>
<td valign="top">
<p align="left">AES128_HMAC_SHA1</p>
</td>
<td valign="top">
<p align="left">Advanced Encryption Standard in 128 bit cipher block with Hashed Message&nbsp;Authentication Code using the Secure Hash Algorithm (1).</p>
<p align="left">Not supported in Windows&nbsp;2000 Server, Windows&nbsp;XP, or Windows Server&nbsp;2003.&nbsp;Supported in Windows&nbsp;Vista, Windows Server&nbsp;2008, Windows&nbsp;7, and Windows&nbsp;Server&nbsp;2008&nbsp;R2.</p>
</td>
</tr>
<tr>
<td valign="top">
<p align="left">AES256_HMAC_SHA1</p>
</td>
<td valign="top">
<p align="left">Advanced Encryption Standard in 256 bit cipher block with Hashed Message&nbsp;Authentication Code using the Secure Hash Algorithm (1).</p>
<p align="left">Not supported in Windows&nbsp;2000 Server, Windows&nbsp;XP, or Windows Server&nbsp;2003.&nbsp;Supported in Windows&nbsp;Vista, Windows Server&nbsp;2008, Windows&nbsp;7, and Windows&nbsp;Server&nbsp;2008&nbsp;R2.</p>
</td>
</tr>
<tr>
<td valign="top">
<p align="left">Future encryption types</p>
</td>
<td valign="top">
<p align="left">Reserved by Microsoft for additional encryption types that might be&nbsp;implemented.</p>
</td>
</tr>
</tbody>
</table>
<p>We can constrain algorithm used by Kerberos by GPO. It's located at:</p>
<p><strong>Computer Configuration\Windows Settings\Security Settings\Local Policies\Security Options\Network security: Configure encryption types allowed for Kerberos</strong></p>
<p>&nbsp;The actual registry key is located at:</p>
<p><strong>HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\parameters\SupportedEncryptionTypes</strong>&nbsp;</p>
<p>&nbsp;</p>
<p>You can find the detailed bit flag explanation on MSDN:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/93/1234.EncryptionBits.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-93/1234.EncryptionBits.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/93/1234.EncryptionBits.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-93/1234.EncryptionBits.png" alt="" border="0" /></a>&nbsp;</p>
<p>Where the bits are defined as:</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top">
<p>Value</p>
</td>
<td valign="top">
<p>Description</p>
</td>
</tr>
<tr>
<td valign="top">
<p>A</p>
</td>
<td valign="top">
<p>DES-CBC-CRC</p>
</td>
</tr>
<tr>
<td valign="top">
<p>B</p>
</td>
<td valign="top">
<p>DES-CBC-MD5</p>
</td>
</tr>
<tr>
<td valign="top">
<p>C</p>
</td>
<td valign="top">
<p>RC4-HMAC</p>
</td>
</tr>
<tr>
<td valign="top">
<p>D</p>
</td>
<td valign="top">
<p>AES128-CTS-HMAC-SHA1-96</p>
</td>
</tr>
<tr>
<td valign="top">
<p>E</p>
</td>
<td valign="top">
<p>AES256-CTS-HMAC-SHA1-96</p>
</td>
</tr>
<tr>
<td valign="top">
<p>F</p>
</td>
<td valign="top">
<p>FAST-supported</p>
</td>
</tr>
<tr>
<td valign="top">
<p>G</p>
</td>
<td valign="top">
<p>Compound-identity-supported</p>
</td>
</tr>
<tr>
<td valign="top">
<p>H</p>
</td>
<td valign="top">
<p>Claims-supported</p>
</td>
</tr>
<tr>
<td valign="top">
<p>I</p>
</td>
<td valign="top">
<p>Resource-SID-compression-disabled</p>
</td>
</tr>
</tbody>
</table>
<p>But how to understand this bit flag table and how it's implmented on a real Windows client? Let's do some test &amp; observation.</p>
<p>1. Open GPMC on Windows 2008 R2, navigate to <strong>Computer Configuration, Policies, Windows Settings, Security Settings, Local Policies/Security Options, Network security: Configure encryption types allowed for Kerberos</strong>, enable all option except "Future encryption types".</p>
<p>2. Apply this GPO to a machine, check the reg key <strong>HKLM\Software\Microsoft\Windows\CurrentVersion\Policies\System\Kerberos\parameters\SupportedEncryptionTypes</strong>. It's 31, which is binary 11111. Referring the table from MSDN, this means enable option A/B/C/D/E,&nbsp;aka DES-CBC-CRC, DES-CBC-MD5, RC4-HMAC, AES128-CTS-HMAC-SHA1-96, AES256-CTS-HMAC-SHA1-96. RSOP confirmed the same thing:</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/93/6724.Kerberos%20Encryption%20GPO.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-93/6724.Kerberos-Encryption-GPO.png"><img src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/98/93/6724.Kerberos%20Encryption%20GPO.png" original-url="https://blogs.technet.com/resized-image.ashx/__size/550x0/__key/communityserver-blogs-components-weblogfiles/00-00-00-98-93/6724.Kerberos-Encryption-GPO.png" alt="" width="405" height="327" border="0" /></a></p>
<p>3. Now enable the option "<strong>Future encryption types</strong>". How do you expect the new value for <strong>SupportedEncryptionTypes</strong> reg key? Well, it's now 2147483647. Convert to binary and you get 1111111111111111111111111111111.&nbsp;Wow, plenty lot of "1"s! Now you may get the idea: by setting all possible bits to 1, we instructed client OS to enable every single encryption option it supports on current build. Simple?</p>
<p>&nbsp;</p>
<p>Wish this post helped you to understand the <strong>SupportedEncryptionTypes</strong> reg key. And thanks Jianwei Zhao from Norch China PFE team who raised the discussion and doing tests with me!</p>
<p>&nbsp;</p>
<h3>Reference:</h3>
<p>Supported Encryption Types Bit Flags</p>
<p><a href="https://msdn.microsoft.com/en-us/library/ee808210.aspx">https://msdn.microsoft.com/en-us/library/ee808210.aspx</a></p>
<p>&nbsp;</p>
<p>Network security: Configure encryption types allowed for Kerberos</p>
<p><a href="https://technet.microsoft.com/en-us/library/jj852180(v=ws.10).aspx">https://technet.microsoft.com/en-us/library/jj852180(v=ws.10).aspx</a></p>]]></content:encoded>
    </item>
  </channel>
</rss>