<?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>Udish’s System Center Blog</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/udishmudiar/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/udishmudiar/feed.xml</link>
    <description>Just another Technet site</description>
    <lastBuildDate>Wed, 17 Apr 2019 03:50:05 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Monitoring SCOM Management Servers and Gateways using PowerShell</title>
      <link>https://docs.microsoft.com/archive/blogs/udishmudiar/monitoring-scom-management-servers-and-gateways-using-powershell</link>
      <pubDate>Fri, 25 May 2018 17:42:10 GMT</pubDate>
      <dc:creator><![CDATA[Udish]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/udishmudiar/?p=335</guid>
      <description><![CDATA[In this blog I will explain how you can monitor your SCOM Management Servers and Gateways using...]]></description>
      <content:encoded><![CDATA[<p style="margin: 0in;font-family: 'Segoe UI';font-size: 11.0pt">In this blog I will explain how you can monitor your SCOM Management Servers and Gateways using PowerShell. One of the most important task of a SCOM administrator, in fact the most important task, is to keep the Management Servers and Gateways highly available. There are chances that something will go wrong with them and one needs to fix them as soon as possible. This can only be possible if the SCOM administrators will be notified proactively. SCOM out-of-box gives you to create SCOM notification to alert you on "Heartbeat failure" and "Failed to Connect to Computer" alerts. However, I see have seen two issues with it.</p>
&nbsp;
<p style="margin: 0in;font-family: 'Segoe UI';font-size: 11.0pt"><em>1. SCOM administrators ignore them as they receive such alerts from agents day in and day out.</em></p>
<p style="margin: 0in;font-family: 'Segoe UI';font-size: 11.0pt"><em><span style="font-family: 'Segoe UI'"><span style="font-size: 11pt">2.The emails cannot be </span><span style="font-size: 14.6667px">customised</span><span style="font-size: 11pt"> like sending with High Priorities etc.</span></span></em></p>
&nbsp;
<p style="margin: 0in;font-family: 'Segoe UI';font-size: 11.0pt">This is where PowerShell comes handy. Let us see how to make life of a SCOM administrator easier.</p>
&nbsp;
<ol>
 	<li>Create this PowerShell script in <b>SQL Server</b> hosting the Operations Manager Database. Here is the script which you can use with slight modification <strong>highlighted</strong>. You can create the script on any server as a matter of fact.</li>
 	<li>#############################################################

$MS1=$null
$MS2=$null
$MSs=$null

Try{
$dataSource = "<strong>SQL2016</strong>" #Replace the databaseservername with the SQL Server name. Verify that you are able to connect to the instance using UDL test. You might need to provide the instance name along with port number
$database = "<strong>OperationsManager</strong>" #Replace OperationsManagerDB with the name of your Operations Manager Database
$connectionString = “Server=$dataSource;Database=$database;Integrated Security=True;”
$connection = New-Object System.Data.SqlClient.SqlConnection
$connection.ConnectionString = $connectionString
$connection.Open()

#This query gives the detail of the Management Server and the Gateway which are not healthy on the console.
$query = "select BME.path from Availability AV
join BaseManagedEntity BME on AV.BaseManagedEntityId=BME.BaseManagedEntityId
join MT_healthservice HS on AV.BaseManagedEntityId=HS.BaseManagedEntityId
where (HS.ismanagementserver=1
or HS.isgateway=1)
and AV.isavailable=0"

$command = $connection.CreateCommand()
$command.CommandText = $query
$result = $command.ExecuteReader()
$table = new-object “System.Data.DataTable”
$table.Load($result)
$connection.Close()

$MSs=$table.path
if($MSs -eq $null)
{
#Write-host "exit loop"
exit
}
else
{
[string]$MS1=$MSs.Split(' ')
}
}

Catch
{
#write-host "Catch Loop"
$MS2= "Either SQL database is down or we cannot connect to the SQL instance"
Send-MailMessage -From "<strong>opsmgr@pop1.lab</strong>" -to "<strong>udish@pop1.lab</strong>" -cc "<strong>udish@pop1.lab</strong>" -Body $MS2 -SmtpServer "<strong>exchange2010.pop1.lab</strong>" -Port <strong>25</strong> -Priority High -Subject "Management Servers and Gateways Unhealthy"
break
}

#Send email to users if the SQL returns any output
#The -from, -to, -smtpserver, -port, -subject parameter values should be replaced. Refer to your SMTP channel in SCOM console to get the details.
If($MS1.count -ne 0)
{
[string]$mailbody=""
foreach($MS in $MSs)
{
$mailbody = $mailbody + $MS + "`r`n"
#$mailbody
}
Send-MailMessage -From "<strong>opsmgr@pop1.lab</strong>" -to "<strong>udish@pop1.lab</strong>" -cc "<strong>udish@pop1.lab</strong>" -Body $mailbody -SmtpServer "<strong>exchange2010.pop1.lab</strong>" -Port <strong>25</strong> -Priority High -Subject "Management Servers and Gateways Unhealthy"
}

###############################################################</li>
 	<li>Once the script is ready and test with PowerShell ISE. Some sample output of the email.<img src="https://msdnshared.blob.core.windows.net/media/2018/05/62.jpg" alt="" width="745" height="250" class="alignnone size-full wp-image-395" /> <img src="https://msdnshared.blob.core.windows.net/media/2018/05/72.jpg" alt="" width="808" height="328" class="alignnone size-full wp-image-405" />3. The next steps would be to put in a task scheduler (or may be Orchestrator if you are using it)

i. Open TaskSchedular. Right Click -&gt; Create Task.<img src="https://msdnshared.blob.core.windows.net/media/2018/05/116.jpg" alt="" width="614" height="364" class="alignnone size-full wp-image-345" />

ii.Enter the details under the highlighted lines. <strong>IMP: Use a service account to run the task which has permission to the Operations Manager Database. I would suggest SDK account.</strong>

<img src="https://msdnshared.blob.core.windows.net/media/2018/05/27.jpg" alt="" width="583" height="445" class="alignnone size-full wp-image-355" />

&nbsp;

&nbsp;

iii.  Add the schedule<strong>. IMP: Duration should be set to “Indefinitely”.</strong>

<img src="https://msdnshared.blob.core.windows.net/media/2018/05/35.jpg" alt="" width="755" height="574" class="alignnone size-full wp-image-365" />

iv. Put in the path where the script is located on the server.

<img src="https://msdnshared.blob.core.windows.net/media/2018/05/42.jpg" alt="" width="702" height="525" class="alignnone size-full wp-image-375" />

v. Run the task to verify everything is working as expected.
<img src="https://msdnshared.blob.core.windows.net/media/2018/05/52.jpg" alt="" width="1045" height="196" class="alignnone size-full wp-image-385" /></li>
</ol>
&nbsp;]]></content:encoded>
    </item>
    <item>
      <title>SCOM Management Server grayed out with event description "A module of type "System.DataSubscriber" reported an error 0x80FF0003"</title>
      <link>https://docs.microsoft.com/archive/blogs/udishmudiar/scom-management-server-grayed-out-with-event-description-a-module-of-type-system-datasubscriber-reported-an-error-0x80ff0003</link>
      <pubDate>Tue, 01 May 2018 23:30:42 GMT</pubDate>
      <dc:creator><![CDATA[Udish]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/udishmudiar/?p=285</guid>
      <description><![CDATA[Posts in this blog are provided "AS IS" with no warranties, and confers no rights. Use of included...]]></description>
      <content:encoded><![CDATA[<span>Posts in this blog are provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified in the Terms of UseAre you interested in having a dedicated engineer that will be your Microsoft representative.</span>

&nbsp;

Let me start with something generic. My Management Server is in a grayed out state and what I will do next.

I will start with running the below SQL query in the Operations Manager Database.

--Replace the name SCOMMS with the name of your Management Server
select BME.Path,AV.ReasonCode,AV.TimeStarted,AV.TimeFinished from AvailabilityHistory AV
join BaseManagedEntity BME on AV.BaseManagedEntityId=BME.BaseManagedEntityId
where BME.FullName like '%<strong>SCOMMS</strong>%'
order by AV.TimeStarted desc

Here in the output from my LAB.

<img src="https://msdnshared.blob.core.windows.net/media/2018/05/Capture.jpg" alt="" width="873" height="270" class="alignnone wp-image-295" />

The reason code description are given below

17 The Health Service windows service is paused.
25 The Health Service Action Account is misconfigured or has invalid credentials.
41 The Health Service failed to parse the new configuration.
42 The Health Service failed to load the new configuration.
43 A System Rule failed to load.
49 Collection of Object State Change Events is stalled.
50 Collection of Monitor State Change Events is stalled.
51 Collection of Alerts is stalled.
97 The Health Service is unable to register with the Event Log Service. The Health Service cannot log additional Heartbeat and Connector events.
98 The Health Service is unable to parse configuration XML.

&nbsp;

In our case, the Reason Code is 43 which says "A System Rule failed to load".

If you will look at the eventvwr on the Management Server you will see these events.

<img src="https://msdnshared.blob.core.windows.net/media/2018/05/Capture1.jpg" alt="" width="1240" height="181" class="alignnone wp-image-305" /><img src="https://msdnshared.blob.core.windows.net/media/2018/05/Capture2.jpg" alt="" width="1243" height="181" class="alignnone wp-image-315" />

These events will definitely tell you that that some rules are unloaded. However, in this case it has not really give us an idea  about the problem. I have worked in many cases where it right way gives the rule name and the issue. In our case, the rule name is a Data Warehouse collection rule, so I did not find it a need to check it at this point of time.

I looked through the eventvwr and found another interesting event.

<img src="https://msdnshared.blob.core.windows.net/media/2018/05/Capture3.jpg" alt="" width="1147" height="369" class="alignnone wp-image-325" />

I check the status of the server SQL2016 in my console and find that the server has an entry in both Agent Managed and Agentless. The only way which I can think of coming to such a scenario is to install it as agentless managed and then install it manually and approve it from the pending management.

And since it is not supported/recommended to add the same server under agentless and agent managed at the same time, we ended up in such a situation.

I delete the entry from agentless managed and everything is back normal and healthy.

So in order to avoid such a situation, please make sure you do not have the option <strong>"Automatically approve new manually installed agents"</strong> selected in SCOM console. And if you have lot of agentless managed computers, do a check before approving them from pending management. You can use the below PowerShell cmdlet to do a quick check.

Get-SCOMAgentlessManagedComputer | select computername
Get-SCOMAgentlessManagedComputer | where {$_.computername -eq 'SQL2016'} | select computername]]></content:encoded>
    </item>
    <item>
      <title>Unable to access library share from VMM Management Server</title>
      <link>https://docs.microsoft.com/archive/blogs/udishmudiar/unable-to-access-library-share-from-vmm-management-server</link>
      <pubDate>Sat, 14 Apr 2018 04:41:27 GMT</pubDate>
      <dc:creator><![CDATA[Udish]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/udishmudiar/?p=185</guid>
      <description><![CDATA[If you try to access the file share of the VMM Library Share from the Management Server you might...]]></description>
      <content:encoded><![CDATA[<p style="margin: 0in;font-family: 'Segoe UI';font-size: 11.0pt">If you try to access the file share of the VMM Library Share from the Management Server you might encounter the below exception. I have seen the behavior in SCVMM 2016 and SCVMM 1801.</p>
&nbsp;

<img src="https://msdnshared.blob.core.windows.net/media/2018/04/Capture2.jpg" alt="" width="852" height="237" class="alignnone size-full wp-image-205" />

<img src="https://msdnshared.blob.core.windows.net/media/2018/04/Capture1.jpg" alt="" width="1027" height="517" class="alignnone wp-image-195" />

&nbsp;
<p style="margin: 0in;font-family: 'Segoe UI';font-size: 11.0pt">It is strange as I am logged in as an administrator(DOM50446\Administrator) and I installed VMM Management Server with the same account.</p>
&nbsp;
<p style="margin: 0in;font-family: 'Segoe UI';font-size: 11.0pt">Now when I access the share from windows file explorer, I encounter the same problem.</p>
&nbsp;

<img src="https://msdnshared.blob.core.windows.net/media/2018/04/Capture3.jpg" alt="" width="679" height="263" class="alignnone size-full wp-image-245" />
<p style="margin: 0in;font-family: 'Segoe UI';font-size: 11.0pt">Interestingly, if I access the file share from another machine with the same account, I can access the share. I do not remember why I tested it :)</p>
&nbsp;

<img src="https://msdnshared.blob.core.windows.net/media/2018/04/Capture4.jpg" alt="" width="875" height="491" class="alignnone wp-image-215" />

&nbsp;
<p style="margin: 0in;font-family: 'Segoe UI';font-size: 11.0pt">I tried to locate the folder in my VMM Management Server and after some struggle I am able to locate it under <span style="font-weight: bold">C:\ProgramData\Virtual Machine Manager Library Files.</span></p>
&nbsp;
<p style="margin: 0in;font-family: 'Segoe UI';font-size: 11.0pt">Looking at the permissions of the share, I can see <strong>"Domain Admins"</strong> group has full control, which explains why we can access the share from other machines.</p>
<img src="https://msdnshared.blob.core.windows.net/media/2018/04/Capture5.jpg" alt="" width="809" height="526" class="alignnone size-full wp-image-255" />

&nbsp;

Just for the sake of checking, I verified the account DOM50446\Administrator is a part of the group "Domain Admins".

&nbsp;
<p style="margin: 0in;font-family: 'Segoe UI';font-size: 11.0pt">I explicitly added the account DOM50446\Administrator to the permissions and gave Full Control.</p>
&nbsp;

<img src="https://msdnshared.blob.core.windows.net/media/2018/04/Capture6.jpg" alt="" width="435" height="510" class="alignnone size-full wp-image-225" />

&nbsp;
<p style="margin: 0in;font-family: 'Segoe UI';font-size: 11.0pt">And now the Library Share is accessible from the VMM console.</p>
&nbsp;

<img src="https://msdnshared.blob.core.windows.net/media/2018/04/Capture7.jpg" alt="" width="1124" height="618" class="alignnone size-full wp-image-235" />

&nbsp;
<p style="margin: 0in;font-family: 'Segoe UI';font-size: 11.0pt">At this point of time, I do not have any idea why this behavior is seen. May be once I can talk to a Windows Expert I will get the answers to my questions :). And I will update the article with the root cause.</p>
This is environment specific and I am not sure how I landed up in such a situation.]]></content:encoded>
    </item>
    <item>
      <title>PowerShell script to get UR version of all SCOM 2012 R2 Component</title>
      <link>https://docs.microsoft.com/archive/blogs/udishmudiar/powershell-script-to-get-ur-version-of-all-scom-2012-r2-component</link>
      <pubDate>Tue, 26 Dec 2017 19:31:28 GMT</pubDate>
      <dc:creator><![CDATA[Udish]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/udishmudiar/?p=165</guid>
      <description><![CDATA[Applies To: System Center 2012 R2 Operations Manager

The attached PowerShell script will fetch...]]></description>
      <content:encoded><![CDATA[<span>Applies To: System Center 2012 R2 Operations Manager</span>

The attached PowerShell script will fetch the Update Rollup on all your Management Servers, console installed on all the MS, WebConsole, Report Server.

<strong>Few Points to keep in mind:</strong>
<span>1. Read through the comments at the start of the script.
2. Run the script from any Management Server.
</span><span>3. Use an account which have administrative rights on all the SCOM servers.
</span><span>4. WinRM should be enabled on all the servers. Windows Server 2012 R2 and greater should not have the issue.
</span><span>5. The same script will work in SCOM 2016 with an update with the build numbers inside the script.</span>

Please reply back to me in case something is not working or if something else can be added as per your requirement.

Download the script from the below link.
<a href="https://gallery.technet.microsoft.com/PowerShell-script-to-get-d6d7791f">https://gallery.technet.microsoft.com/PowerShell-script-to-get-d6d7791f</a>]]></content:encoded>
    </item>
    <item>
      <title>How to move Distributed Key Management(DKM) in VMM from one container to another</title>
      <link>https://docs.microsoft.com/archive/blogs/udishmudiar/how-to-move-distributed-key-managementdkm-in-vmm-from-one-container-to-another</link>
      <pubDate>Mon, 25 Dec 2017 00:59:01 GMT</pubDate>
      <dc:creator><![CDATA[Udish]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/udishmudiar/?p=35</guid>
      <description><![CDATA[The details of Distributed Key Management(DKM) is available in the below TechNet article....]]></description>
      <content:encoded><![CDATA[The details of Distributed Key Management(DKM) is available in the below TechNet article. <a href="https://technet.microsoft.com/en-us/library/gg697604(v=sc.12).aspx">https://technet.microsoft.com/en-us/library/gg697604(v=sc.12).aspx</a>

Once you have installed the VMM Management Server and configured the DKM, it will keep on working fine until you decide to move your DKM to a different container.

In case you or someone accidently moved the DKM to a different container, you will basically see these two issues.
<ol>
 	<li>All your VMs will be in a <b>"Not Responding State"</b> and all your Refresh jobs will fail with the below error:</li>
</ol>
<img src="https://msdnshared.blob.core.windows.net/media/2017/12/DKM1.jpg" alt="" width="906" height="394" class="alignnone size-full wp-image-116" />

&nbsp;

<b><i>Error (20552)</i></b>

<i>VMM does not have appropriate permissions to access the resource on the VMMHAMS2.mydomain.com server.</i>

<b><i>Recommended Action</i></b>

<i>Ensure that Virtual Machine Manager has the appropriate rights to perform this action.</i>

<i>Also, verify that CredSSP authentication is currently enabled on the service configuration of the target computer VMMHAMS2.mydomain.com. To enable the CredSSP on the service configuration of the target computer, run the following command from an elevated command line: winrm set winrm/config/service/auth @{CredSSP="true"} </i>

2.  And if you try to update the password of any <b>RunAsAccount</b> and create new RunAsAccount, you will get the below error:

<img src="https://msdnshared.blob.core.windows.net/media/2017/12/DKM2.jpg" alt="" width="597" height="436" class="alignnone size-full wp-image-125" />

&nbsp;

<b>Resolution: </b>

<b>Note: Take a Full Fresh Backup of your VMM Database before proceeding with the steps. Open a support case with Microsoft in case you are not familiar with SQL database.</b>
<ol>
 	<li>Access to your<b> "Active Directory Users and Computers"</b> and locate the DKM. <b>Note:</b> It is not a bad idea to have your AD Administrator by your side.</li>
 	<li>In case you have not moved your DKM yet and not aware of its location, login to your VMM Database and run the below query:<em>SELECT PropertyName, PropertyValue</em>
<em>FROM [VirtualManagerDB].[dbo].[tbl_VMM_GlobalSetting]</em>
<em>WHERE PropertyName like '%Container%';</em>
<img src="https://msdnshared.blob.core.windows.net/media/2017/12/DKM3.jpg" alt="" width="486" height="162" class="alignnone size-full wp-image-126" /></li>
 	<li>Once your locate the DKM container, move the DKM to the new container as desired. If already moved no actions are required in ADDS. (Wait till it reflects under the new container)</li>
 	<li>Right click on the<b> DKM -&gt; Properties -&gt; Attribute Editor -&gt; distinguishedName
<img src="https://msdnshared.blob.core.windows.net/media/2017/12/DKM4.jpg" alt="" width="372" height="427" class="alignnone size-full wp-image-135" />
</b></li>
 	<li>Double click on <b>distinguishedName</b>, copy it.
<img src="https://msdnshared.blob.core.windows.net/media/2017/12/DKM5.jpg" alt="" width="383" height="141" class="alignnone size-full wp-image-145" /></li>
 	<li>Expand <b>VMM DB -&gt; </b>Locate the table<b> "[dbo].[tbl_VMM_GlobalSetting]" -&gt; Right Click -&gt; Edit 200 Rows -&gt;</b> Locate the row <b>"TopContainerName" -&gt; </b>Change the<b> PropertyValue </b>to the new DKM location copied in Step 5<b> -&gt; Cntrl+S -&gt; </b>Close the table editor<b>.
<img src="https://msdnshared.blob.core.windows.net/media/2017/12/DKM6.jpg" alt="" width="941" height="326" class="alignnone size-full wp-image-146" />
</b></li>
 	<li>Once you made the changes run the below query again to verify the changes are done properly.<em>      SELECT PropertyName, PropertyValue</em>
<em>      FROM [VirtualManagerDB].[dbo].[tbl_VMM_GlobalSetting]</em>
<em>      WHERE PropertyName like '%Container%';</em></li>
 	<li>Once you verify that the container name is right in VMM DB, login to your VMM management Server and restart the service "<b>System Center Virtual Machine Manager</b>".</li>
 	<li>Enter the password of the RunAsAccounts again. They should work now.</li>
 	<li>The Refresh Jobs should now run successfully and the VMs will be back to Responding State.</li>
</ol>
<img src="https://msdnshared.blob.core.windows.net/media/2017/12/DKM7.jpg" alt="" width="740" height="296" class="alignnone size-full wp-image-155" />]]></content:encoded>
    </item>
    <item>
      <title>SCOM Cross Domain ACS Collector and Forwarder Configuration</title>
      <link>https://docs.microsoft.com/archive/blogs/udishmudiar/scom-cross-domain-acs-collector-and-forwarder-configuration</link>
      <pubDate>Mon, 25 Dec 2017 00:38:23 GMT</pubDate>
      <dc:creator><![CDATA[Udish]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/udishmudiar/?p=55</guid>
      <description><![CDATA[SCOM ACS Collector and Forwarder configuration in the same domain is straight forward. However,...]]></description>
      <content:encoded><![CDATA[SCOM ACS Collector and Forwarder configuration in the same domain is straight forward. However, there are a few additional steps to be configured if your ACS Collector and Forwarder are in different domain.

Below is the TechNet article already available. However, I am providing more detailed steps with few tips and tricks.
<a href="https://technet.microsoft.com/en-us/library/hh872886(v=sc.12).aspx">https://technet.microsoft.com/en-us/library/hh872886(v=sc.12).aspx</a>

&nbsp;

<strong><em><u>Steps:</u></em></strong>

&nbsp;
<ul>
 	<li>Firstly, we need to configure the ACS forwarder either as a workgroup agent or an agent pointed to a gateway, in another domain as compared to the Collector where there is no two-way transitive trust between the domains. Steps to configure the same are explained in the below articles.</li>
 	<li><strong>On the ACS Forwarder:</strong>
<ul>
 	<li>An agent is installed on the computer that will serve as the ACS Forwarder. For more information, see <a href="https://technet.microsoft.com/en-us/library/hh551142(v=sc.12).aspx">Operations Manager Agent Installation Methods</a>.</li>
 	<li>A certificate and certification authority [CA] certificate is installed on the computer hosting the agent. For more information, see <a href="https://go.microsoft.com/fwlink/p/?LinkID=227146">Authentication and Data Encryption for Windows Computers</a> in the Deployment Guide.</li>
</ul>
</li>
 	<li><strong>On the ACS Collector:</strong>
<ul>
 	<li>A certificate (and CA certificate) is installed on the management server hosting the ACS Collector. For more information, see <a href="https://go.microsoft.com/fwlink/p/?LinkID=227146">Authentication and Data Encryption for Windows Computers</a> in the Deployment Guide.</li>
 	<li>The pending agent is approved and communication between the agent and the management server is operating properly. For more information, see <a href="https://technet.microsoft.com/en-us/library/hh212853(v=sc.12).aspx">Process Manual Agent Installations</a>.</li>
 	<li>The ACS Collector and database is installed. For more information, see <a href="https://go.microsoft.com/fwlink/?LinkID=229042">How to Install an Audit Collection Services (ACS) Collector and Database</a> in the Deployment Guide.</li>
</ul>
</li>
</ul>
<ul>
 	<li>Once the collector is installed, you can verify the same under the below view in Operations Manager console.
<img src="https://msdnshared.blob.core.windows.net/media/2017/12/ACS2.jpg" alt="" width="925" height="595" class="alignnone wp-image-75 size-full" /></li>
 	<li>Also, refer to the below article to filter out the events you want to collect from the forwarder before you configure the forwarders. Or else, it might flood your ACS database.
<strong>**Microsoft do not support manually grooming data out of ACS database. So if you flood the database the only way out is to wait for 42 days, the default retention period.</strong>
<a href="https://technet.microsoft.com/en-us/library/ee909501.aspx">https://technet.microsoft.com/en-us/library/ee909501.aspx</a></li>
 	<li>The current setting of the filtration can be found in the below registry on the collector.
<img src="https://msdnshared.blob.core.windows.net/media/2017/12/ACS1-1024x328.jpg" alt="" width="1024" height="328" class="alignnone wp-image-65 size-large" /></li>
 	<li>Verify if the certificates on the forwarder and collector are configured properly.</li>
</ul>
<ol>
 	<li>The root CA and the intermediate CAs(if any) for the certificate on the collector should be imported to the Root CA Store and Intermediate CA Store of the forwarder respectively.</li>
 	<li>The root CA and the intermediate CAs(if any) for the certificate on the forwarder should be imported to the Root CA Store and Intermediate CA Store of the collector respectively.</li>
</ol>
<strong>**If the above steps are not configured an event 4369 will be logged on the forwarder.
<img src="https://msdnshared.blob.core.windows.net/media/2017/12/ACS4.jpg" alt="" width="945" height="332" class="alignnone wp-image-95 size-full" />
</strong>
<ul>
 	<li><strong>To assign a certificate to the ACS Collector</strong></li>
</ul>
<ol start="3">
 	<li>On the Windows desktop, click <strong>Start</strong>, and then click <strong>Run</strong>.</li>
 	<li>In the <strong>Run</strong>dialog box, type <strong>cmd</strong>, and then click <strong>OK</strong>.</li>
 	<li>At the command prompt, type &lt;<em>drive_letter</em>&gt;: (where &lt;<em>drive_letter</em>&gt; is the drive where the operating system is installed), and then press ENTER.</li>
 	<li>Type <strong>cd %systemroot%</strong>, and then press ENTER.</li>
 	<li>Type <strong>cd system32\security\adtserver</strong>, and then press ENTER.</li>
 	<li>Type <strong>net stop adtserver</strong>, and then press ENTER.</li>
 	<li>Type <strong>adtserver -c</strong>, and then press ENTER.
<strong>**The adtserver tool will only display the certificates where the “Intended Purpose” of the certificates have “Client Authentication”</strong></li>
</ol>
<strong>**It will show you the friendly name in the command prompt not the subject name.
</strong><strong>**The certificate do not support <a href="https://msdn.microsoft.com/en-us/library/aa376210(VS.85).aspx">Cryptography Next Generation  </a>(CNG) key provider.</strong>
<ol start="10">
 	<li>In the numbered list of certificates, find the certificate used for Operations Manager, type the number in the list (should be 1), and then press ENTER.</li>
 	<li>Type <strong>net start adtserver</strong>and then press ENTER.</li>
</ol>
&nbsp;
<ul>
 	<li><strong>To export the certificate on the forwarder</strong></li>
</ul>
<ol>
 	<li>On the Windows desktop, click <strong>Start</strong>, and then click <strong>Run</strong>.</li>
 	<li>In the <strong>Run</strong>dialog box, type <strong>mmc</strong>, and then click <strong>OK</strong>.</li>
 	<li>On the <strong>File</strong>menu, click <strong>Add/Remove Snap-in</strong>.</li>
 	<li>In the <strong>Add/Remove Snap-in</strong>dialog box, click <strong>Add</strong>.</li>
 	<li>In the <strong>Add Standalone Snap-in</strong>dialog box, click <strong>Certificates</strong>, and then click <strong>Add</strong>.</li>
 	<li>In the <strong>Certificates snap-in</strong>dialog box, select <strong>Computer account</strong>, and then click <strong>Next</strong>.</li>
 	<li>In the <strong>Select Computer</strong>dialog box, select <strong>Local computer (the computer this console is running on)</strong>, and then click <strong>Finish</strong>.</li>
 	<li>In the <strong>Add Standalone Snap-in</strong>dialog box, click <strong>Close</strong>.</li>
 	<li>In the <strong>Add/Remove Snap-in</strong>dialog box, click <strong>OK</strong>.</li>
 	<li>In the Console Root\Certificates (Local Computer) pane, expand <strong>Certificates (Local Computer)</strong>, expand <strong>Personal</strong>, and then click <strong>Certificates</strong>.</li>
 	<li>In the results pane, right-click the certificate you are using for Operations Manager, point to <strong>All Tasks</strong>, and then click <strong>Export</strong>.</li>
 	<li>In the <strong>Certificate Export Wizard</strong>, on the <strong>Welcome</strong>page, click <strong>Next</strong>.</li>
 	<li>On the <strong>Export Private Key</strong>page, select <strong>No, do note export the private key</strong>, and then click <strong>Next</strong>.</li>
 	<li>On the <strong>Export File Format</strong>page, select <strong>DER encoded binary X.509 (.CER)</strong>, and then click <strong>Next</strong>.</li>
 	<li>On the <strong>File to Export</strong>page, click <strong>Browse</strong>.</li>
 	<li>On the <strong>Save As</strong>page, select a folder and file name for the certificate, ensure that the <strong>Save as type</strong> is set to <strong>DER Encoded Binary X.509 (*.cer)</strong>, and then click <strong>Save</strong>.</li>
</ol>
<table width="1580">
<tbody>
<tr>
<td><strong>Note</strong></td>
</tr>
<tr>
<td>You will need to copy this certificate to the computer hosting the ACS Collector, so choose a location that the ACS Collector can read from, or consider saving the certificate to a disk, USB flash drive, or network share. In addition, it is recommended that you include the computer name in the file name if you are exporting certificates from more than one computer.</td>
</tr>
</tbody>
</table>
<ol start="17">
 	<li>On the <strong>File to Export</strong>page, ensure that the path and file name are correct, click <strong>Next</strong>, and then click <strong>Finish</strong>.</li>
</ol>
<ul>
 	<li><strong>To configure named mapping to the certificate</strong></li>
</ul>
<ol>
 	<li>Log on to the computer hosting Active Directory.</li>
 	<li>On the Windows desktop, click <strong>Start</strong>, point to <strong>Programs</strong>, point to <strong>Administrative Tools</strong>, and then click <strong>Active Directory Users and Computers</strong>.</li>
 	<li>Expand the domain name, right-click <strong>Computers</strong>, point to <strong>New</strong>, and then click <strong>Computer</strong>.</li>
 	<li>In the <strong>New Object - Computer</strong> dialog box, enter the NetBIOS name of the computer that is hosting the ACS Forwarder, and then click <strong>Next</strong>. Repeat this step for every computer that hosts an ACS Forwarder.</li>
 	<li>In the <strong>Managed</strong> dialog box, ensure that <strong>This is a managed computer</strong> is not selected, and then click <strong>Next</strong>.</li>
 	<li>In the <strong>New Object - Computer</strong> dialog box, click <strong>Finish</strong>.</li>
 	<li>In <strong>Active Directory Computers and Users</strong>, in the right pane, right-click the computer (or computers) you added, and then click <strong>Name Mappings</strong>.</li>
 	<li>In the <strong>Security Identity Mapping</strong> dialog box, click <strong>X.509 Certificates</strong>, and then click <strong>Add</strong>.</li>
 	<li>In the <strong>Add Certificate</strong> dialog box, click the <strong>Look in</strong> menu, select the location where the exported certificate is located, and then click <strong>Open</strong>. <strong>** This certificate should be of the forwarder</strong></li>
 	<li>In the <strong>Add Certificate</strong> dialog box, ensure that <strong>Use Subject for alternate security identity</strong> is selected, and then click <strong>OK</strong>.</li>
 	<li>In the <strong>Security Identity Mapping</strong> dialog box, click <strong>OK</strong>.</li>
 	<li>Repeat steps 4–11 for each computer you have added.</li>
</ol>
<ul>
 	<li>After you complete these procedures, you need to enable the ACS Forwarders. For more information, see <a href="https://technet.microsoft.com/en-us/library/hh272397(v=sc.12).aspx">How to Enable Audit Collection Services (ACS) Forwarders</a>.
<img src="https://msdnshared.blob.core.windows.net/media/2017/12/ACS3.jpg" alt="" width="1164" height="602" class="alignnone wp-image-85 size-full" /></li>
</ul>
&nbsp;
<ul>
 	<li><strong>To run the adtagent command on the forwarder.</strong></li>
</ul>
<ol>
 	<li>On the Windows desktop, click <strong>Start</strong>, and then click <strong>Run</strong>.</li>
 	<li>In the <strong>Run</strong> dialog box, type <strong>cmd</strong>, and then click <strong>OK</strong>.</li>
 	<li>At the command prompt, type &lt;<em>drive_letter</em>&gt;: (where &lt;<em>drive_letter</em>&gt; is the drive where the Operating System is installed), and then press ENTER.</li>
 	<li>Type <strong>cd %systemroot%</strong> and then press ENTER.</li>
 	<li>Type <strong>cd system32</strong> and then press ENTER.</li>
</ol>
<ol start="12">
 	<li>Type <strong>adtagent -c</strong>and then press ENTER.
<strong>**The adtserver tool will only display the certificate where the “Intended Purpose” of the certificates have “Client Authentication”</strong></li>
</ol>
<strong>**It will show you the friendly name in the command prompt not the subject name.
</strong><strong>**The certificate do not support <a href="https://msdn.microsoft.com/en-us/library/aa376210(VS.85).aspx">Cryptography Next Generation  </a>(CNG) key provider.</strong>
<ol>
 	<li>You will see a numbered list of certificates. Find the certificate used for Operations Manager, type the number in the list (should be 1), and then press ENTER.</li>
 	<li>Type <strong>exit</strong> to close the command window.</li>
</ol>
&nbsp;
<ul>
 	<li>Verify if we have received the event 4368 on the forwarder.</li>
</ul>
<img src="https://msdnshared.blob.core.windows.net/media/2017/12/ACS5.jpg" alt="" width="578" height="260" class="alignnone wp-image-105 size-full" />
<ul>
 	<li style="text-align: left">Run the below queries to verify the events are collected in the ACS database.</li>
</ul>
--This query will give you the partition ID which is active for data insertion.

<em>select PartitionId from dtPartition</em>
<em>where Status = 0</em>

--Append the ID in the above query in the table name dt_Event in line 1 in <strong>bold</strong>.
-- Replace the name of the forwarder in line 3 in <strong>bold</strong>

<em>select de.EventNo,dm.Description from [dbo].[dtEvent_<strong>cf3e35ff_e525_4200_8520_09765c4bcfba</strong>] de</em>
<em> join [dbo].[dtMachine] dm on de.AgentMachineId=dm.Id</em>
<em> where dm.Description like '%<strong>ASH-DC</strong>%'</em>
<em> --and de.EventNo ='4776'</em>
<em> order by de.CreationTime desc</em>
<ul>
 	<li>Run the default ACS reports to verify the reports are populating the data.</li>
</ul>
&nbsp;

Some articles which you can refer to while working on this.

<a href="https://technet.microsoft.com/en-us/library/hh212908(v=sc.12).aspx">https://technet.microsoft.com/en-us/library/hh212908(v=sc.12).aspx</a>

<a href="https://technet.microsoft.com/en-us/library/ee909501.aspx">https://technet.microsoft.com/en-us/library/ee909501.aspx</a>

<a href="https://blogs.technet.microsoft.com/operationsmgr/2010/05/12/solution-the-acs-forwarder-in-operations-manager-2007-may-frequently-log-connection-and-disconnection-events/">https://blogs.technet.microsoft.com/operationsmgr/2010/05/12/solution-the-acs-forwarder-in-operations-manager-2007-may-frequently-log-connection-and-disconnection-events/</a>]]></content:encoded>
    </item>
  </channel>
</rss>