<?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>My Passion My Windows</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/niraj_kumar/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/niraj_kumar/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:47:54 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Not able to request certificate with private key archival enabled.</title>
      <link>https://docs.microsoft.com/archive/blogs/niraj_kumar/not-able-to-request-certificate-with-private-key-archival-enabled</link>
      <pubDate>Fri, 17 Jul 2009 08:29:38 GMT</pubDate>
      <dc:creator><![CDATA[TechNet Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/niraj_kumar/2009/07/17/not-able-to-request-certificate-with-private-key-archival-enabled/</guid>
      <description><![CDATA[Hi all, Recently, I got a chance to work on one of the case where we couldn’t request the...]]></description>
      <content:encoded><![CDATA[<p>Hi all,</p> <p>Recently, I got a chance to work on one of the case where we couldn’t request the certificate using a template which is configured to archive private keys and getting the following error message “Cannot archive private key. The certification authority is not configured for key archival. Error archiving Private Key. Cannot archive private key. The certification authority is not configured for key archival. 0x8009400a (-2146877430) on Windows Vista:</p> <p>&nbsp;</p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_2.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_2.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_thumb.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_thumb.png" width="646" height="432"></a>&nbsp;</p> <blockquote> <p align="center">Picture 1: Vista OS, Error message while requesting certificate.</p></blockquote> <p align="center"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_14.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_14.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_thumb_6.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_thumb_6.png" width="644" height="134"></a> </p> <p align="center">Picture 2: Windows 2003, Error message while requesting certificate.</p> <p>In order to be able to request certificate based on a template which allows Private Key to be archived, you have to ensure that your CA is configure for Key Archival. </p> <p>&nbsp;</p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_6.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_6.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_thumb_2.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_thumb_2.png" width="406" height="469"></a> </p> <p></p> <p align="center">Picture 4: Certificate Template with Private Key archival enabled.</p> <p>You should check the CA is configured for Key archival and has a valid certificate. In my case, key archival was enabled but still we were facing the issue.</p> <p>&nbsp;</p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_10.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_10.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_thumb_4.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_thumb_4.png" width="646" height="452"></a> </p> <p align="center">Picture 5: The CA asks your restart the CA service after enabling Recovery agent. </p> <p align="left">When you enable KRA, it asks you to restart the CA service and if you don’t do so the KRA certificate will not be loaded and status column for the certificate would say “NOT LOADED”</p> <p align="center"><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_12.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_12.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_thumb_5.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_thumb_5.png" width="413" height="484"></a> </p> <p align="center">Picture 6: The KRA certificate status showing Not loaded. </p> <p></p> <p>The solution was to restart the CA service and after that KRA certificate status changed to Valid. Once we restarted the CA service we could request the certificate.</p> <p>&nbsp;</p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_16.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_16.png"><img style="border-bottom: 0px; border-left: 0px; display: block; float: none; margin-left: auto; border-top: 0px; margin-right: auto; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_thumb_7.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/Notabletorequestcertificatewithprivatek_FC30/image_thumb_7.png" width="644" height="451"></a> </p> <p align="center">Picture 7: After Restarting the CA service the KRA certificate status showing Valid. </p>]]></content:encoded>
    </item>
    <item>
      <title>Manipulating Groups in Windows 2008 R2 using AD PowerShell Script.</title>
      <link>https://docs.microsoft.com/archive/blogs/niraj_kumar/manipulating-groups-in-windows-2008-r2-using-ad-powershell-script</link>
      <pubDate>Fri, 24 Apr 2009 05:06:42 GMT</pubDate>
      <dc:creator><![CDATA[TechNet Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/niraj_kumar/2009/04/24/manipulating-groups-in-windows-2008-r2-using-ad-powershell-script/</guid>
      <description><![CDATA[In Windows 2008 R2, a series of PowerShell Script is added to manage Active Directory. You can...]]></description>
      <content:encoded><![CDATA[<p>In Windows 2008 R2, a series of PowerShell Script is added to manage Active Directory. You can invoke “Active Directory PowerShell” from administrative tools under start menu. </p> <p>There are different commands available to manipulate AD objects. </p> <ol> <li><strong>Get-ADGroup</strong>: Returns one or more Active Directory Groups.  <li><strong>New-ADGroup</strong>: Creates an active directory group.  <li><strong>Remove-ADGroup:</strong> Removes an active directory group.  <li><strong>Set-ADGroup:</strong> It modifies an Active directory group. </li></ol> <p>Today, I’m going to talk about these commands. I’ll list out the commands to accomplish most common Group management tasks. </p> <p>1. Example of <strong>Get-ADGroup</strong> Command: </p> <ul> <li>How to get list of security groups but not Distribution group? </li></ul> <blockquote> <p><em><font face="Courier New">Get-ADGroup –Filter ‘GroupCategory –eq “Security”’</font></em></p></blockquote> <ul> <li>How to get list of Distribution groups but not Security group? </li></ul> <blockquote> <p><em><font face="Courier New">Get-ADGroup –Filter ‘GroupCategory –eq “Distribution”’</font></em></p></blockquote> <ul> <li>List out all DomainLocal Groups in the domain. </li></ul> <blockquote> <p><em><font face="Courier New">Get-ADGroup –Filter ‘GroupScope –eq “DomainLocal”’</font></em></p></blockquote> <ul> <li>List out all Global Groups in the domain.</li></ul> <blockquote> <p><em><font face="Courier New">Get-ADGroup –Filter ‘GroupScope –eq “Global”’</font></em></p></blockquote> <ul> <li>List out Universal Groups</li></ul> <blockquote> <p><em><font face="Courier New">Get-ADGroup –Filter ‘GroupScope –eq “Universal”’</font></em></p></blockquote> <p>You can also use wildcard character to search for groups. Following command lists out all the group containing word “admin”</p> <blockquote> <p><em><font face="Courier New">Get-ADGroup –Filter ‘Name –like “*admin*”’</font></em></p></blockquote> <p>We can also combine conditions. For example we want to list out all the Universal groups containing “admin” word. </p> <blockquote> <p><em><font face="Courier New">Get-ADGroup –Filter ‘Name –like “*admin*” –and GroupScope –eq “Universal”’</font></em></p></blockquote> <p>You can use following operators in Active directory PowerShell. </p> <p>&nbsp;</p> <table border="1" cellspacing="0" cellpadding="0"> <tbody> <tr> <td valign="top" width="112"> <p><b>Logical Operator</b></p></td> <td valign="top" width="267"> <p><b>Description</b></p></td></tr> <tr> <td valign="top" width="112"> <p>-eq </p></td> <td valign="top" width="267"> <p>Equal to. It doesn’t support wild card search. </p></td></tr> <tr> <td valign="top" width="112"> <p>-ne </p></td> <td valign="top" width="267"> <p>Not equal to. It doesn’t support wild card search. </p></td></tr> <tr> <td valign="top" width="112"> <p>-like </p></td> <td valign="top" width="267"> <p>Equal to and supports wildcard comparison. The only wildcard character supported is: <b>*</b></p></td></tr> <tr> <td valign="top" width="112"> <p>-notlike </p></td> <td valign="top" width="267"> <p>Not equal to. Supports wild card comparison. </p></td></tr> <tr> <td valign="top" width="112"> <p>-approx </p></td> <td valign="top" width="267"> <p>Approximately equal to</p></td></tr> <tr> <td valign="top" width="112"> <p>-le </p></td> <td valign="top" width="267"> <p>Lexicographically less than or equal to </p></td></tr> <tr> <td valign="top" width="112"> <p>-lt </p></td> <td valign="top" width="267"> <p>Lexicographically less than </p></td></tr> <tr> <td valign="top" width="112"> <p>-ge </p></td> <td valign="top" width="267"> <p>Lexicographically greater than or equal to </p></td></tr> <tr> <td valign="top" width="112"> <p>-gt </p></td> <td valign="top" width="267"> <p>Lexicographically greater than </p></td></tr> <tr> <td valign="top" width="112"> <p>-and </p></td> <td valign="top" width="267"> <p>AND </p></td></tr> <tr> <td valign="top" width="112"> <p>-or </p></td> <td valign="top" width="267"> <p>OR </p></td></tr> <tr> <td valign="top" width="112"> <p>-not </p></td> <td valign="top" width="267"> <p>NOT </p></td></tr> <tr> <td valign="top" width="112"> <p>-bor </p></td> <td valign="top" width="267"> <p>Bitwise OR </p></td></tr> <tr> <td valign="top" width="112"> <p>-band </p></td> <td valign="top" width="267"> <p>Bitwise AND </p></td></tr></tbody></table> <p>2. Example of <strong>New-ADGroup</strong> Command: </p> <p>The following command creates a Domain Local Security Group named “Helpdesk Admins” under Users container. </p> <blockquote> <p><em><font face="Courier New">New-ADGroup –Name “HelpDesk Admins” –SamAccountName HelpDeskAdmins –GroupCategory Security –GroupScope DomainLocal –DisplayName “HelpDesk Admins” –Path “CN=Users,DC=W2k8Microsoft,DC=local”</font></em></p></blockquote> <p>&nbsp;</p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/ManipulatingGroupsinWindows2008R2usingA_13E89/image_2.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/ManipulatingGroupsinWindows2008R2usingA_13E89/image_2.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/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/ManipulatingGroupsinWindows2008R2usingA_13E89/image_thumb.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/ManipulatingGroupsinWindows2008R2usingA_13E89/image_thumb.png" width="1028" height="111"></a> </p> <p>3. Example of <strong>Remove-ADGroup</strong> Command: </p> <p>The following command removes the group created in 2nd step.</p> <blockquote> <p><em><font face="Courier New">Remove-ADGroup HelpDeskAdmins</font></em></p></blockquote> <p>You can also remove groups based on Wildcard Character. For example, you want to delete all the groups ending with “admins”</p> <blockquote> <p><em><font face="Courier New">Get-ADGroup –Filter ‘Name –like “*admins”’ | Remove-ADGroup</font></em></p></blockquote> <p>The above command combines 2 commands with help of “|” sign. Pipe sign redirects the output of Get-ADGroup command as input to Remove-ADGroup command. </p> <p>4. Example of <strong>Set-ADGroup</strong> Command: </p> <p>The following command will convert the helpdeskadmins domain local group to Universal group. We have created this group in Step 2. </p> <blockquote> <p><em><font face="Courier New">Set-ADGroup HelpDeskAdmins –GroupScope Universal</font></em></p></blockquote> <p>The following command populates the Description field of HelpDeskAdmin Group. </p> <blockquote> <p><em><font face="Courier New">Set-ADGroup HelpDeskAdmins –Description “This is Help Desk Administrator Group” </font></em></p></blockquote> <p>You can also combine the multiple commands with help of |. For example, if we want to convert all domainLocal Groups ending with admins to universal group. </p> <blockquote> <p><em><font face="Courier New">Get-ADGroup –Filter ‘Name –like “*admins” –and GroupScope –eq “DomainLocal”’ | <em><font face="Courier New">Set-ADGroup –GroupScope Universal</font></em></font></em></p></blockquote> <p>I hope this post is informative. In next post I’ll discuss more about Active Directory PowerShell commands. </p>]]></content:encoded>
    </item>
    <item>
      <title>Cannot Install Enterprise Certification Authority On Windows 2008</title>
      <link>https://docs.microsoft.com/archive/blogs/niraj_kumar/cannot-install-enterprise-certification-authority-on-windows-2008</link>
      <pubDate>Thu, 23 Apr 2009 08:17:54 GMT</pubDate>
      <dc:creator><![CDATA[TechNet Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/niraj_kumar/2009/04/23/cannot-install-enterprise-certification-authority-on-windows-2008/</guid>
      <description><![CDATA[Problem: While trying to install Enterprise CA on Windows 2008 machine you receive an error message:...]]></description>
      <content:encoded><![CDATA[<p><strong>Problem:</strong></p> <p>While trying to install Enterprise CA on Windows 2008 machine you receive an error message: “Installation Succeeded with Errors”. </p> <p><strong>Symptoms:</strong> <p>In the Event log you see the following Events:  <p>Log Name: Application <br>Source: Microsoft-Windows-CertificationAuthority <br>Date: 4/20/2009 11:06:09 AM <br>Event ID: 5 <br>Task Category: None <br>Level: Error <br>Keywords: Classic <br>User: SYSTEM <br>Computer: dc1.w2k8microsoft.local <br>Description: <br>Active Directory Certificate Services could not find required registry information. The Active Directory Certificate Services may need to be reinstalled.  <p>Log Name: System <br>Source: Service Control Manager <br>Date: 4/20/2009 11:50:57 AM <br>Event ID: 7023 <br>Task Category: None <br>Level: Error <br>Keywords: Classic <br>User: N/A <br>Computer: dc1.w2k8microsoft.local<br>Description: <br>The Active Directory Certificate Services service terminated with the following error: </p> <p>Cannot complete this function. </p> <p>Additionaly when you try to start the certificate service, you receive error message: “Cannot complete this function 0x3eb(win32:1003)” <p><strong>Resolution:</strong> <p>Check the permission on "CN=Public Key Service,CN=Services,CN=Configuration,DC=Domain,DC=Com", make sure that Enterprise admin and domain admin have full control.  <p>Open Adsiedit.msc and navigate to CN=Public Key Service and check the permission for Domain admins and Enterprise Admins.  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/CannotInstallEnterpriseCertificationAuth_FA40/image_2.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/CannotInstallEnterpriseCertificationAuth_FA40/image_2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/CannotInstallEnterpriseCertificationAuth_FA40/image_thumb.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/CannotInstallEnterpriseCertificationAuth_FA40/image_thumb.png" width="1028" height="772"></a>  <p>Once you have fixed the permission issue the problem will go away and you can reinstall the CA service. </p>]]></content:encoded>
    </item>
    <item>
      <title>Newly Promoted Win2K8 DC is not advertising as Domain Controller.</title>
      <link>https://docs.microsoft.com/archive/blogs/niraj_kumar/newly-promoted-win2k8-dc-is-not-advertising-as-domain-controller</link>
      <pubDate>Thu, 23 Apr 2009 07:10:32 GMT</pubDate>
      <dc:creator><![CDATA[TechNet Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/niraj_kumar/2009/04/23/newly-promoted-win2k8-dc-is-not-advertising-as-domain-controller/</guid>
      <description><![CDATA[A newly promoted DC may fail to advertise as DC, if the forest functional level is set to Windows...]]></description>
      <content:encoded><![CDATA[<p>A newly promoted DC may fail to advertise as DC, if the forest functional level is set to Windows 2008. Windows 2008 forest functional level leverages DFSR for SYSVOL replication. You will get following DFSR event ids: </p> <p>Source: DFSR&nbsp;&nbsp;&nbsp;&nbsp; Event ID: 1202 <p>Source: DFSR&nbsp;&nbsp;&nbsp;&nbsp; Event ID: 4612  <p>Source: DFSR&nbsp;&nbsp;&nbsp;&nbsp; Event ID: 5008  <p>Source: DFSR&nbsp;&nbsp;&nbsp;&nbsp; Event ID: 4614  <p>If we have issues with Name resolution then this issue can happen. Please make sure to resolve name resolution problem. </p> <p>Even after correcting the name resolution problem you should check following registry key:</p> <p>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\DFSR\Parameters\SysVols\Seeding SysVols\domain.com</p> <p>"Parent Computer"="DC1.domain.com" </p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/NewlyPromotedWin2K8DCisnotadvertisingas_EA69/image_2.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/NewlyPromotedWin2K8DCisnotadvertisingas_EA69/image_2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/NewlyPromotedWin2K8DCisnotadvertisingas_EA69/image_thumb.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/NewlyPromotedWin2K8DCisnotadvertisingas_EA69/image_thumb.png" width="770" height="525"></a> </p> <p>This registry key controls the DC from which Sysvol has to be seeded. Please make sure that we have right entry for this key and pointing to a valid DC. </p> <p>For more information refer following KB: </p> <p><a title="https://support.microsoft.com/default.aspx/kb/967336" href="https://support.microsoft.com/default.aspx/kb/967336">https://support.microsoft.com/default.aspx/kb/967336</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Trusted Domain Objects</title>
      <link>https://docs.microsoft.com/archive/blogs/niraj_kumar/trusted-domain-objects</link>
      <pubDate>Tue, 24 Feb 2009 19:25:35 GMT</pubDate>
      <dc:creator><![CDATA[TechNet Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/niraj_kumar/2009/02/24/trusted-domain-objects/</guid>
      <description><![CDATA[Trusts are represented by trustedDomain objects, which reside in the System container of each...]]></description>
      <content:encoded><![CDATA[<p>Trusts are represented by <tt>trustedDomain</tt> objects, which reside in the System container of each domain. The properties of these objects describe the type and features of the trust.</p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_2.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_thumb.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_thumb.png" width="640" height="484"></a> </p> <p> However, the actual <tt>trustType</tt> property of the object specifies a type for each trust. <p>· Value <b>1</b>: Downlevel trust. This trust is with a Windows NT domain (being external). <p><a name="ch06index413"></a><a name="ch06index412"></a><a name="ch06index411"></a><a name="ch06index410"></a><a name="ch06index409"></a><a name="ch06index408"></a><a name="ch06index407"></a><a name="ch06index406"></a><a name="ch06index405"></a>· Value <b>2</b>: Uplevel (Windows 2000 or later) trust. This trust is with an Active Directory domain (being parent-child, root domain, shortcut, external, or forest). <p>· Value <b>3</b>: MIT. This trust is with a (non-Windows) MIT Kerberos version 5 realm. <p>· Value <b>4</b>: DCE. This trust is with a DCE realm. DCE refers to Open Group's Distributed Computing Environment specification. This trust type is mainly theoretical. <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_4.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_4.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_thumb_1.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_thumb_1.png" width="643" height="484"></a>  <p>The other meaningful properties of <tt>trustedDomain</tt> objects are the following: <p>· <tt>trustPartner</tt>: <a name="ch06index419"></a><a name="ch06index418"></a><a name="ch06index417"></a><a name="ch06index416"></a><a name="ch06index415"></a><a name="ch06index414"></a>For Active Directory domains, this is the DNS name of the partner domain. For Windows NT trusted domains, this is the NetBIOS name of the partner domain. For non-Windows trusted domains, this is the name of the partner Kerberos realm. <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_6.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_6.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_thumb_2.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_thumb_2.png" width="635" height="484"></a>  <p>· <tt>flatName</tt>: For Windows trusted domains, this is the NetBIOS name of the partner domain. For non-Windows trusted domains, this is the name of the partner domain or it is NULL. <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_8.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_8.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_thumb_3.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_thumb_3.png" width="644" height="447"></a>  <p>· <tt>trustDirection</tt>: 0 = disabled, 1 = incoming (i.e., trusting domain), 2 = outgoing (i.e., trusted domain), 3 = both directions. <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_10.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_10.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_thumb_4.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_thumb_4.png" width="644" height="454"></a>  <p>· <tt>trustAttributes</tt>: (hexadecimal values in AD2003) 1 = the trust is nontransitive; 2 = the trust is valid only for Windows 2000 (and newer) computers; 4 = the domain is quarantined (that is, SID filtering is enabled); 8 = the trust is a forest trust; 10 = the trust is a cross-organization trust (that is, selective authentication is being used); 20 = the trust is internal to the forest; 40 = the trust is a forest trust where EnableSIDHistory is on (see the corresponding NetDom option in Help and Support). <p>· <tt>trustAttributes</tt>: (hexadecimal values in AD2000) 1 = the trust is nontransitive; 2 = the trust is valid only for Windows 2000 (and newer) computers; 40 0000 = the trust is to the parent domain; 80 0000 = the trust is to another tree root domain in the forest. <p></p> <p></p> <p></p> <p></p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_12.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_12.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_thumb_5.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/TrustedDomainObjects_5326/image_thumb_5.png" width="644" height="424"></a></p>]]></content:encoded>
    </item>
    <item>
      <title>Not able to Duplicate Certificate Template</title>
      <link>https://docs.microsoft.com/archive/blogs/niraj_kumar/not-able-to-duplicate-certificate-template</link>
      <pubDate>Sun, 15 Feb 2009 03:28:16 GMT</pubDate>
      <dc:creator><![CDATA[TechNet Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/niraj_kumar/2009/02/15/not-able-to-duplicate-certificate-template/</guid>
      <description><![CDATA[In past I’ve worked on a case where in the customer couldn’t duplicate Certificate template, even...]]></description>
      <content:encoded><![CDATA[<p>In past I’ve worked on a case where in the customer couldn’t duplicate Certificate template, even though the Windows operating system was Windows 2003 Enterprise edition. Here, I’m sharing the resolution of that case.  <p><b>Problem:</b> <p><b></b> <p>Couldn’t duplicate Certificate template on Windows 2003 Enterprise Edition Member server CA.  <p><b>Troubleshooting</b>: <p>We made sure that all requirements for Certificate Template Duplication are full filled, including followings: <p>1. The active directory schema was upgraded to W2k3 using ADPREP. <p>2. The CA, was Enterprise Root CA. <p>3. The member server was running Windows 2003 Enterprise edition. <p>4. We were logged in as Domain Admin and enterprise admin.  <p>The enterprise admin and domain admin should have full control on the following objects in AD; <p>· Full control permissions over the CN=Certificate Templates, CN=Public Key Services,CN=Services,CN=Configuration, DC=ForestRootDomain" container <p>· Full control permissions over the CN=OID,CN=Public Key Services,CN=Services,CN=Configuration, DC=ForestRootDomain container <p>· Full Control permissions for each certificate template object in the CN=Certificate Templates, CN=Public Key Services,CN=Services,CN=Configuration, DC=ForestRootDomain" container <p>When we looked at adsiedit we found that <b>CN=OID</b> was missing.  <p>We did auth restore of <b>CN=OID</b>,CN=Public Key Services,CN=Services,CN=Configuration, DC=ForestRootDomain container using NTDSUTIL. In my case customer didn’t had System State data backup, so we manually created it.  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/NotabletoDuplicateCertificateTemplate_C470/clip_image002_2.jpg" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/NotabletoDuplicateCertificateTemplate_C470/clip_image002_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002" border="0" alt="clip_image002" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/NotabletoDuplicateCertificateTemplate_C470/clip_image002_thumb.jpg" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/NotabletoDuplicateCertificateTemplate_C470/clip_image002_thumb.jpg" width="593" height="501"></a> <p><b></b> <p><b>Explanation:</b> <p>The Windows Server 2003 family adds some additional object identifier containers (also known as OID) to the configuration container. Because object identifiers are not hardcoded in version 2 (V2) templates, object identifier containers are required to work with V2 templates. Only clients running Windows XP and later may resolve object identifiers in Active Directory to friendly names. <p>CN=OID,CN=Public Key Services,CN=Services,CN=Configuration,DC= <p><b>Reference:</b> <p>1. Certificate Template Overview.  <p><a href="https://technet.microsoft.com/en-us/library/cc787721.aspx">https://technet.microsoft.com/en-us/library/cc787721.aspx</a> <p>2. KB 949664&nbsp; Error message when you try to duplicate a certificate template in the certificate template store: "The Computer certificate template could not be duplicated The system cannot find the file specified" <p><a href="https://support.microsoft.com/default.aspx?scid=kb;EN-US;949664">https://support.microsoft.com/default.aspx?scid=kb;EN-US;949664</a> <p>3. 287547&nbsp; Object IDs associated with Microsoft cryptography <p><a href="https://support.microsoft.com/default.aspx?scid=kb;EN-US;287547">https://support.microsoft.com/default.aspx?scid=kb;EN-US;287547</a> <p>4. Appendix A: Directory Objects. <p><a href="https://technet.microsoft.com/en-us/library/cc786765.aspx">https://technet.microsoft.com/en-us/library/cc786765.aspx</a>]]></content:encoded>
    </item>
    <item>
      <title>Script to List out OU’s and objects within it.</title>
      <link>https://docs.microsoft.com/archive/blogs/niraj_kumar/script-to-list-out-ous-and-objects-within-it</link>
      <pubDate>Thu, 12 Feb 2009 02:46:14 GMT</pubDate>
      <dc:creator><![CDATA[TechNet Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/niraj_kumar/2009/02/12/script-to-list-out-ous-and-objects-within-it/</guid>
      <description><![CDATA[I thought of sharing a script, which will list out a report for all the OU’s in domain. This report...]]></description>
      <content:encoded><![CDATA[<p>I thought of sharing a script, which will list out a report for all the OU’s in domain. This report is very handy if you want to find out how many objects are part of each OUs. This script generates the report. </p> <p>In the following code, replace the name of your domain at the place of striked out character in Distinguished name format. </p> <p>CODE:</p> <p><font face="Courier New">On Error Resume Next </font></p> <p><font face="Courier New">Const ADS_SCOPE_SUBTREE = 2<br>Dim I<br>Set objConnection = CreateObject("ADODB.Connection")<br>Set objCommand =&nbsp;&nbsp; CreateObject("ADODB.Command")<br>objConnection.Provider = "ADsDSOObject"<br>objConnection.Open "Active Directory Provider"<br>Set objCommand.ActiveConnection = objConnection </font> <p><font face="Courier New">objCommand.Properties("Page Size") = 1000<br>objCommand.Properties("Searchscope") = ADS_SCOPE_SUBTREE </font> <p><font face="Courier New">objCommand.CommandText = _<br>&nbsp;&nbsp;&nbsp; "SELECT ADsPath FROM 'LDAP://<strong><strike>dc=2003dom,dc=local</strike></strong>' WHERE " &amp; _<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "objectCategory='organizationalUnit'"&nbsp; </font> <p><font face="Courier New">Set objRecordSet = objCommand.Execute </font> <p><font face="Courier New">objRecordSet.MoveFirst </font> <p><font face="Courier New">Do Until objRecordSet.EOF<br>&nbsp;&nbsp;&nbsp; Set objOU = GetObject(objRecordSet.Fields("ADsPath").Value)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I=0<br>&nbsp;&nbsp;&nbsp; Wscript.Echo objOU.distinguishedName<br>&nbsp;&nbsp;&nbsp; For Each objItem in objOU<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; I=I+1<br>&nbsp;&nbsp;&nbsp; Wscript.Echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ",objItem.distinguishedName<br>&nbsp;&nbsp;&nbsp; Next<br>&nbsp;&nbsp;&nbsp; Wscript.Echo "Total Objects in this OU:",I<br>&nbsp;&nbsp;&nbsp; objRecordSet.MoveNext<br>Loop</font></p> <p>The output will be something like this:</p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/ScripttoListoutOUsandobjectswithinit_BA9B/image_2.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/ScripttoListoutOUsandobjectswithinit_BA9B/image_2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/ScripttoListoutOUsandobjectswithinit_BA9B/image_thumb.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/ScripttoListoutOUsandobjectswithinit_BA9B/image_thumb.png" width="759" height="274"></a></p>]]></content:encoded>
    </item>
    <item>
      <title>Managing Windows Server 2008 Core with powerful commands, Part2</title>
      <link>https://docs.microsoft.com/archive/blogs/niraj_kumar/managing-windows-server-2008-core-with-powerful-commands-part2</link>
      <pubDate>Thu, 12 Feb 2009 02:06:48 GMT</pubDate>
      <dc:creator><![CDATA[TechNet Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/niraj_kumar/2009/02/12/managing-windows-server-2008-core-with-powerful-commands-part2/</guid>
      <description><![CDATA[Since there is no Windows User Interface in Core installation so we have to use command line tools...]]></description>
      <content:encoded><![CDATA[<p>Since there is no Windows User Interface in Core installation so we have to use command line tools to complete the configuration like setting the administrator password ,joining domain, setting static IP address.  <p><b><i>1. To set the administrative password </i></b> <p><b><i></i></b> <p>· At a command prompt, type the following: <em><font face="Courier New">net user administrator *</font></em>  <p>· When prompted to enter the password, type the new password for the administrator user account and press ENTER.  <p>· When prompted, retype the password and press ENTER.  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/1025caad7a5c_AF1B/clip_image001_2.jpg" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/1025caad7a5c_AF1B/clip_image001_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image001" border="0" alt="clip_image001" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/1025caad7a5c_AF1B/clip_image001_thumb.jpg" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/1025caad7a5c_AF1B/clip_image001_thumb.jpg" width="542" height="489"></a>  <p><b><i>2. To rename the server</i></b>  <p>· Determine the current name of the server with the hostname or ipconfig command.  <p>· At a command prompt, type: <font face="Courier New">Netdom renamecomputer &lt;ComputerName&gt; /NewName:&lt;NewComputerName&gt;</font>  <p>· Restart the computer.  <p>&nbsp; <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/1025caad7a5c_AF1B/clip_image002_2.jpg" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/1025caad7a5c_AF1B/clip_image002_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002" border="0" alt="clip_image002" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/1025caad7a5c_AF1B/clip_image002_thumb.jpg" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/1025caad7a5c_AF1B/clip_image002_thumb.jpg" width="542" height="489"></a></p> <p>&nbsp;</p> <p><b><i>3. Enabling Automatic Updates</i></b> <p>To enable automatic updates on the server we will use another built-in script method <em>scregedit.wsf</em>. Here are the options: <p>3.1 To verify the current setting, type: Cscript scregedit.wsf /AU /v <p>3.2 To enable automatic updates, type: Cscript scregedit.wsf /AU 4 <p>3.3 To disable automatic updates, type: Cscript scregedit.wsf /AU 1 <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/1025caad7a5c_AF1B/clip_image002%5B2%5D.jpg" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/1025caad7a5c_AF1B/clip_image002%5B2%5D.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002[2]" border="0" alt="clip_image002[2]" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/1025caad7a5c_AF1B/clip_image002%5B2%5D_thumb.jpg" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/1025caad7a5c_AF1B/clip_image002%5B2%5D_thumb.jpg" width="606" height="455"></a></p> <p>&nbsp; <p><b><i>4. To Set Date ,Time and Time Zone</i></b> <p>Type control timedate.cpl on the command prompt which will open the same Date and Time applet that can be open from control panel in the full installation of Windows Server 2008. <p>&nbsp; <p><b><i><u></u></i></b> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/1025caad7a5c_AF1B/clip_image001%5B5%5D.jpg" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/1025caad7a5c_AF1B/clip_image001%5B5%5D.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image001[5]" border="0" alt="clip_image001[5]" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/1025caad7a5c_AF1B/clip_image001%5B5%5D_thumb.jpg" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/1025caad7a5c_AF1B/clip_image001%5B5%5D_thumb.jpg" width="606" height="455"></a>]]></content:encoded>
    </item>
    <item>
      <title>How to request certificate from third party CA and install it on the machine.</title>
      <link>https://docs.microsoft.com/archive/blogs/niraj_kumar/how-to-request-certificate-from-third-party-ca-and-install-it-on-the-machine</link>
      <pubDate>Tue, 10 Feb 2009 19:26:28 GMT</pubDate>
      <dc:creator><![CDATA[TechNet Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/niraj_kumar/2009/02/10/how-to-request-certificate-from-third-party-ca-and-install-it-on-the-machine/</guid>
      <description><![CDATA[The right way to go about requesting and installing certificate are below:  1. Run certreq –new...]]></description>
      <content:encoded><![CDATA[<p>The right way to go about requesting and installing certificate are below:  <p>1. Run <em>certreq –new request.inf request.req</em>  <p>2. Send request.req file to third part CA.  <p>3. Retrieve the certificate blob and save it in certnew.cer. Please make sure that you save the file in the same directory where you have saved request.req file.  <p>4. Accept the issued certificate: <em>Certreq –accept certnew.cer</em>.  <p>5. Once you install the certificate, restart the machine ( if it is computer certificate.)  <p>As explained earlier, .cer file only contains public key. It is certreq –accept certnew.cer command which associates private key with that certificate and installs it in correct store.  <p><b>Creating Certificate Requests</b>  <p><b></b> <p>The –new parameter with certreq.exe is used to construct new certificate requests. Certreq.exe uses an <b><i>INF</i></b> file as an input option that defines the certificate request parameters. When the certificate request is constructed based on the INF file, key material is also generated. A certificate request process can be divided into the following elements.  <p>1. Read the INF file.  <p><b><i><font color="#0080c0">2. Create the private and public key based on the information in the INF file, and store the private key in the local key store of the user or machine profile as appropriate.</font></i></b>  <p>3. Create the certificate request based on the information in the INF file and store the request in a Base64-encoded file or, optionally, in binary form if the –binary option is selected.  <h6><font color="#0080c0">MachineKeySet</font></h6> <h5></h5> <table border="0" cellpadding="0"> <tbody> <tr> <td> <p>Syntax</p></td> <td> <p>MachineKeySet = {Boolean}</p></td></tr> <tr> <td> <p>Values</p></td> <td> <p>TRUE or FALSE</p></td></tr> <tr> <td> <p>Default value</p></td> <td> <p>FALSE</p></td></tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td></tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td></tr> <tr> <td>&nbsp;</td> <td>&nbsp;</td></tr></tbody></table> <p><font color="#0080c0"><b><i>This key is important when you need to create certificates that are owned by the machine and not a user</i></b>.</font> The key material that is generated is maintained in the security context of the security principal (user or computer account) that has created the request. When an administrator creates a certificate request on behalf of a computer, the key material must be created in the machine’s security context and not the administrator’s security context. Otherwise, the machine could not access its private key since it would be in the administrator’s security context.  <p><b><i><font color="#0080c0">You must set this key to TRUE if you are creating requests for domain controllers, a Web server, or any other service that runs in the machine’s security context.</font></i></b>  <p>Have a look at typical .inf file content:  <p>[Version]  <p>Signature="$Windows NT$  <p>[NewRequest]  <p>Subject = "CN=ad1.tailspintoys.com,OU=BTG,O=Microsoft,L=Atlanta,S=Georgia,C=US"  <p>KeySpec = 1  <p>KeyLength =&nbsp; 1024  <p>Exportable = TRUE  <p><b>MachineKeySet = TRUE</b>  <p>SMIME = FALSE  <p>PrivateKeyArchive = FALSE  <p>UserProtected = FALSE  <p>UseExistingKeySet = FALSE  <p>ProviderType =&nbsp; 12  <p>RequestType =&nbsp; PKCS10  <p>ProviderName = "Microsoft RSA SChannel Cryptographic Provider"  <p>KeyUsage =&nbsp; 0xf0  <p>RequesterName =&nbsp; Microsoft India.  <p>[EnhancedKeyUsageExtension]  <p>OID=1.3.6.1.5.5.7.3.1  <p>OID=1.3.6.1.5.5.7.3.2  <p><b>Reference:</b>  <p>1. Certreq.exe syntax. <a href="https://technet.microsoft.com/en-us/library/cc736326.aspx">https://technet.microsoft.com/en-us/library/cc736326.aspx</a>  <p>2. 321051&nbsp; How to enable LDAP over SSL with a third-party certification authority  <p><a href="https://support.microsoft.com/default.aspx?scid=kb;EN-US;321051">https://support.microsoft.com/default.aspx?scid=kb;EN-US;321051</a>]]></content:encoded>
    </item>
    <item>
      <title>Managing Windows Server 2008 Core with powerful commands, Part1</title>
      <link>https://docs.microsoft.com/archive/blogs/niraj_kumar/managing-windows-server-2008-core-with-powerful-commands-part1</link>
      <pubDate>Mon, 09 Feb 2009 20:08:56 GMT</pubDate>
      <dc:creator><![CDATA[TechNet Archive]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/niraj_kumar/2009/02/09/managing-windows-server-2008-core-with-powerful-commands-part1/</guid>
      <description><![CDATA[&nbsp; 1. To join a domain  At a command prompt, type: netdom join &lt;ComputerName&gt;...]]></description>
      <content:encoded><![CDATA[<p>&nbsp; <p><b><i>1. To join a domain </i></b> <p>At a command prompt, type: <p><em>netdom join &lt;ComputerName&gt; /domain:&lt;DomainName&gt; /userd:&lt;UserName&gt; /passwordd:* </em> <p>Where: ComputerName is the name of the server that is running the Server Core installation. DomainName is the name of the domain to join. UserName is a domain user account with permission to join the domain.  <p>When prompted to enter the password, type the password for the domain user account specified by UserName.  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/ManagingWindowsServer2008Corewithpowerfu_5D6F/clip_image001_2.jpg" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/ManagingWindowsServer2008Corewithpowerfu_5D6F/clip_image001_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image001" border="0" alt="clip_image001" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/ManagingWindowsServer2008Corewithpowerfu_5D6F/clip_image001_thumb.jpg" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/ManagingWindowsServer2008Corewithpowerfu_5D6F/clip_image001_thumb.jpg" width="776" height="650"></a> <p><strong>2. If you need to add a domain user account to the local Administrators group</strong>, type the following command:  <p><em>net localgroup administrators /add &lt;DomainName&gt;\&lt;UserName&gt; </em> <p><em></em>&nbsp; <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/ManagingWindowsServer2008Corewithpowerfu_5D6F/image_2.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/ManagingWindowsServer2008Corewithpowerfu_5D6F/image_2.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/ManagingWindowsServer2008Corewithpowerfu_5D6F/image_thumb.png" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/ManagingWindowsServer2008Corewithpowerfu_5D6F/image_thumb.png" width="762" height="378"></a>  <p><strong>3. Restart the computer.</strong>  <p>You can do this by typing the following at a command prompt:  <p><em>Shutdown /r /t 0 </em> <p><b><i>4. To activate the server </i></b> <p>At a command prompt, type:  <p><em>Cscript Slmgr.vbs –ato</em> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/ManagingWindowsServer2008Corewithpowerfu_5D6F/clip_image002_2.jpg" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/ManagingWindowsServer2008Corewithpowerfu_5D6F/clip_image002_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002" border="0" alt="clip_image002" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_technet/niraj_kumar/WindowsLiveWriter/ManagingWindowsServer2008Corewithpowerfu_5D6F/clip_image002_thumb.jpg" original-url="https://blogs.technet.com/blogfiles/niraj_kumar/WindowsLiveWriter/ManagingWindowsServer2008Corewithpowerfu_5D6F/clip_image002_thumb.jpg" width="642" height="500"></a>]]></content:encoded>
    </item>
  </channel>
</rss>