<?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>Sudheesh  Blog on System Center.......</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/sudheesn/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/sudheesn/feed.xml</link>
    <description>(I am Moving my blogs to ...https://sudheeshblogsccm.azurewebsites.net)</description>
    <lastBuildDate>Wed, 07 Mar 2018 14:17:16 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Overall Compliance Reports for updates shows Unknown Status in System Center Configuration Manager</title>
      <link>https://docs.microsoft.com/archive/blogs/sudheesn/overall-compliance-reports-for-updates-shows-unknown-status-in-system-center-configuration-manager</link>
      <pubDate>Wed, 07 Mar 2018 09:36:31 GMT</pubDate>
      <dc:creator><![CDATA[Sudheesh N]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sudheesn/?p=805</guid>
      <description><![CDATA[Overall Compliance Reports for updates shows Unknown Status in System Center Configuration...]]></description>
      <content:encoded><![CDATA[Overall Compliance Reports for updates shows Unknown Status in System Center Configuration Manager

&nbsp;

Getting Unknown Status in Overall Compliance reports, is one of the most common issue many of us face while running the software update reports for compliance. The general troubleshooting what we do is to try send the state message again or troubleshoot the state message flow.

&nbsp;

This is the simple state message resync script (VBS) we use

RefreshServerComplianceState()
Sub RefreshServerComplianceState()
dim newCCMUpdatesStore
set newCCMUpdatesStore = CreateObject ("Microsoft.CCM.UpdatesStore")
newCCMUpdatesStore.RefreshServerComplianceState
wscript.echo "Ran RefreshServerComplianceState."
End Sub

&nbsp;

&nbsp;

Even after this we still would have issues with few machines where we see that the state is unknown. So a good understanding of the state message which are a part of the report is required .

For Software updates reports we have the following state messages.

&nbsp;
<table>
<tbody>
<tr>
<td>300</td>
<td>   SUM_ASSIGNMENT_COMPLIANCE</td>
</tr>
<tr>
<td>301</td>
<td>   SUM_ASSIGNMENT_ENFORCEMENT</td>
</tr>
<tr>
<td>302</td>
<td>   SUM_ASSIGNMENT_EVALUATION</td>
</tr>
<tr>
<td>400</td>
<td>   SUM_CI_DETECTION</td>
</tr>
<tr>
<td>401</td>
<td>   SUM_CI_COMPLIANCE</td>
</tr>
<tr>
<td>402</td>
<td>   SUM_CI_ENFORCEMENT</td>
</tr>
<tr>
<td>500</td>
<td>   SUM_UPDATE_DETECTION</td>
</tr>
<tr>
<td>501</td>
<td>   SUM_UPDATE_SOURCE_SCAN</td>
</tr>
</tbody>
</table>
&nbsp;

Since we are talking about the Overall compliance report here the state message in question is 500-SUM_UPDATE_DETECTION.Further, <b>State Message IDs</b> are used to define specific state messages for each topic type. For example, a State Message for a Software Updates (Topic Type 500) would have the Status Message ID of 0, 1, 2 or 3 which would then depict the actual state of the given update on a client machine as below:

&nbsp;
<table>
<tbody>
<tr>
<td><b>Topic Type</b></td>
<td><b>State Message ID</b></td>
<td><b>State Message Description</b></td>
</tr>
<tr>
<td>500</td>
<td>0</td>
<td>Detection state unknown</td>
</tr>
<tr>
<td>500</td>
<td>1</td>
<td>Update is not required</td>
</tr>
<tr>
<td>500</td>
<td>2</td>
<td>Update is required</td>
</tr>
<tr>
<td>500</td>
<td>3</td>
<td>Update is installed</td>
</tr>
</tbody>
</table>
&nbsp;

A complete list of the Topic Type’s and State Message ID’s is listed in the below article: <a href="https://technet.microsoft.com/en-us/library/bb932203.aspx">https://technet.microsoft.com/en-us/library/bb932203.aspx</a>

&nbsp;

When a client Scan against the wsus server the State Messages being raised. Every time a State Message is raised, we look in the WMI to see if a State Message for this Topic ID and Topic Type already exists. If it does, we <b>overwrite</b> the State Message in WMI with the new State. If it does not exist, we create a new instance and save the current State.

We store the state message in the WMI Namespace: <b>root\CCM\StateMsg and </b>WMI Class: <b>CCM_StateMsg</b>

If you look for a state message it will be something like this for type 500 it would look something like this.

<img width="631" height="393" class="alignnone size-full wp-image-815" alt="" src="https://msdnshared.blob.core.windows.net/media/2018/03/1.bmp" />

&nbsp;

Once this state messages reach the server it updates the following table in database<b> dbo.Update_ComplianceStatus</b>. Please note that though you have many updates in your ConfigMgr server database, you wont see the same number of 500 messages. Client will for sure send 500 for all the updates that is required and installed. And also for some not required one, which I have seen is for some common updates , office updates etc. But not required information for all not required updates when compared with your synced catalogue are not send from the client as a state message.

The calculation of the same is done on the server. To find the same I had looked at the RDL file for the compliance report and could see that it is picking up from the <b>v_Update_ComplianceStatusAll. </b>If you see this view it has information for all the four state for all the updates for each resource ID

<img width="1022" height="412" class="alignnone size-full wp-image-825" alt="" src="https://msdnshared.blob.core.windows.net/media/2018/03/2.bmp" />

But if you look at the base table <b>dbo.Update_ComplianceStatus </b>you will not find entries for 0 and 1 for status which you would see it in the <b>v_Update_ComplianceStatusAll </b>view

<a href="https://msdnshared.blob.core.windows.net/media/2018/03/4.bmp"><img width="1018" height="408" class="alignnone size-full wp-image-855" alt="" src="https://msdnshared.blob.core.windows.net/media/2018/03/4.bmp" /></a><a href="https://msdnshared.blob.core.windows.net/media/2018/03/3.bmp"></a>

Now to understand from where it is building this information we had checked the view <b>v_Update_ComplianceStatusAll </b>

&nbsp;

&nbsp;

SELECT       ci.CI_ID, cm.ResourceID, ISNULL<strong>(cs.Status, CASE WHEN ss.ScanPackageVersion &gt;= ci.MinSourceVersion THEN 1 ELSE 0 END)</strong> AS Status, ISNULL(cs.LastStatusCheckTime, ss.ScanTime)AS LastStatusCheckTime, cs.LastStatusChangeTime, cs.EnforcementSource, cs.LastEnforcementMessageID, cs.LastEnforcementMessageTime, cs.LastEnforcementStatusMsgID, cs.LastErrorCode,ISNULL(cs.LastLocalChangeTime, ss.LastLocalChangeTime) AS LastLocalChangeTime
FROM           <strong>dbo.v_UpdateCIs</strong> AS ci CROSS JOIN
<strong>dbo.v_ClientMachines</strong> AS cm LEFT OUTER JOIN
<strong>dbo.Update_ComplianceStatus</strong> AS cs ON cs.CI_ID = ci.CI_ID AND cs.MachineID = cm.ResourceID AND (cs.Status &gt; 0 OR
ci.CIType_ID = 9) LEFT OUTER JOIN
<strong>dbo.Update_ScanStatus</strong> AS ss ON ss.MachineID = cm.ResourceID AND ss.UpdateSource_ID = ci.UpdateSource_ID

So The status is set based on this logic <strong>ISNULL(cs.Status, CASE WHEN ss.ScanPackageVersion &gt;= ci.MinSourceVersion THEN 1 ELSE 0 END) .</strong>

Now it is clear that
<ul>
 	<li>First we will look the <strong>dbo.Update_ComplianceStatus</strong> and compare with <strong>dbo.v_UpdateCIs</strong> and whatever has Status in first table it was updated in the view's <strong>Status</strong> value (1,2 or 3).</li>
 	<li>Then we will look at <strong>dbo.Update_ScanStatus</strong> and check <strong>ScanPackageVersion and MinSourceVersion</strong> from dbo.v_UpdateCIs and then if ScanPackageVersion &gt;= MinSourceVersion THEN 1 ELSE 0 for Status value.</li>
</ul>
So here, one more state message is important which is send from the client which is <strong>501 for SUM_UPDATE_SOURCE_SCAN.</strong> If the client has send the failed message and if the <strong>ScanPackageVersion</strong> is not updated to the latest in the <strong>dbo.Update_ScanStatus</strong> then those updates which has ScanPackageVersion &lt; MinSourceVersion will be set to "0" which means unknown status. We can get in to such issues when there is a Scan Failures or if after the successful synchronization the client is yet to send the Scan status.

So the Logic is the 501 state message has to be with the latest MinSourceVersion  and a with success message.

In few cases I could see that the software scan was successful but the driver scan had failed with a warning like below.  Though everything related to update deployment was working fine

WARNING: Sync of Drivers failed (Software succeeded): 0x8024402b

The 501 state message send by client had the error and the ScanPackageVersion was not updated and hence the clients were showing unknown status for Not required updates.

The same can also happen if the WSUS to which the client is scanning is in a lower version of MinSourceVersion  than the top server.

Hope this information will be useful

Sudheesh Narayanaswamy

<strong>This posting /Script  is provided "AS IS" with no warranties and confers no rights</strong>]]></content:encoded>
    </item>
    <item>
      <title>Patches That Fix the Vulnerability For MS17-010</title>
      <link>https://docs.microsoft.com/archive/blogs/sudheesn/patches-that-fix-the-vulnerability-for-ms17-010</link>
      <pubDate>Wed, 17 May 2017 05:44:03 GMT</pubDate>
      <dc:creator><![CDATA[Sudheesh N]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sudheesn/?p=786</guid>
      <description><![CDATA[&nbsp;

WannaCry ransomware attack currently spreading across the globe and every one is busy...]]></description>
      <content:encoded><![CDATA[&nbsp;

WannaCry ransomware attack currently spreading across the globe and every one is busy working to patch the machines for MS17-010.

There has been a doubt on which updates covers this Vulnerability. After looking through the <a href="https://technet.microsoft.com/en-us/library/security/ms17-010.aspx">https://technet.microsoft.com/en-us/library/security/ms17-010.aspx</a>  and also Catalogue of Microsoft, here is the list of updates with the operating System and date released.

<strong>Note:</strong>
<ul>
 	<li>There are few updates which has got released on <strong>5/13/2017 </strong>For <strong>windows 2003</strong> and XP.</li>
 	<li>Beginning with the October 2016 release, Microsoft has changed the update servicing model for Windows 7, Windows Server 2008 R2, Windows 8.1, Windows Server 2012, and Windows Server 2012 R2. You would have <strong>Security Only Quality Update</strong> and <strong>Security Monthly Quality Rollup</strong> so if one of the same is installed on the machine it would cover the Vulnerability. For eg we have KB4012212 and KB4012215 For windows Server 2008 R2 so if one of these is installed on the machine it would cover the Vulnerability.</li>
</ul>
<table width="758">
<tbody>
<tr>
<td width="609"><strong>Title</strong></td>
<td width="218"><strong>Products</strong></td>
<td width="98"><strong>Classification</strong></td>
<td width="83"><strong>Last Updated</strong></td>
</tr>
<tr>
<td width="609">Security Update for Windows 8 (KB4012598)</td>
<td width="218">Windows 8</td>
<td width="98">Security Updates</td>
<td width="83">5/13/2017</td>
</tr>
<tr>
<td width="609">Security Update for Windows XP SP3 (KB4012598)</td>
<td width="218">Windows XP</td>
<td width="98">Security Updates</td>
<td width="83">5/13/2017</td>
</tr>
<tr>
<td width="609">Security Update for Windows Server 2003 for x64-based Systems (KB4012598)</td>
<td width="218">Windows Server 2003&amp; Datacenter Edition</td>
<td width="98">Security Updates</td>
<td width="83">5/13/2017</td>
</tr>
<tr>
<td width="609">Security Update for Windows 8 for x64-based Systems (KB4012598)</td>
<td width="218">Windows 8</td>
<td width="98">Security Updates</td>
<td width="83">5/13/2017</td>
</tr>
<tr>
<td width="609">Security Update for Windows XP SP3 for XPe (KB4012598)</td>
<td width="218">Windows XP Embedded</td>
<td width="98">Security Updates</td>
<td width="83">5/13/2017</td>
</tr>
<tr>
<td width="609">Security Update for Windows Server 2003 (KB4012598)</td>
<td width="218">Windows Server 2003&amp; Datacenter Edition</td>
<td width="98">Security Updates</td>
<td width="83">5/13/2017</td>
</tr>
<tr>
<td width="609">Security Update for Windows XP SP2 for x64-based Systems (KB4012598)</td>
<td width="218">Windows XP x64 Edition</td>
<td width="98">Security Updates</td>
<td width="83">5/13/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Only Quality Update for Windows 7 for x64-based Systems (KB4012212)</td>
<td width="218">Windows 7</td>
<td width="98">Security Updates</td>
<td width="83">3/28/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Only Quality Update for Windows 7 (KB4012212)</td>
<td width="218">Windows 7</td>
<td width="98">Security Updates</td>
<td width="83">3/28/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Only Quality Update for Windows Embedded Standard 7 (KB4012212)</td>
<td width="218">Windows Embedded Standard 7</td>
<td width="98">Security Updates</td>
<td width="83">3/28/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Only Quality Update for Windows Embedded Standard 7 for x64-based Systems (KB4012212)</td>
<td width="218">Windows Embedded Standard 7</td>
<td width="98">Security Updates</td>
<td width="83">3/28/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Only Quality Update for Windows Server 2008 R2 for x64-based Systems (KB4012212)</td>
<td width="218">Windows Server 2008 R2</td>
<td width="98">Security Updates</td>
<td width="83">3/28/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Only Quality Update for Windows Server 2008 R2 for Itanium-based Systems (KB4012212)</td>
<td width="218">Windows Server 2008 R2</td>
<td width="98">Security Updates</td>
<td width="83">3/28/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Only Quality Update for Windows 8.1 (KB4012213)</td>
<td width="218">Windows 8.1</td>
<td width="98">Security Updates</td>
<td width="83">3/28/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Only Quality Update for Windows 8.1 for x64-based Systems (KB4012213)</td>
<td width="218">Windows 8.1</td>
<td width="98">Security Updates</td>
<td width="83">3/28/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Only Quality Update for Windows Server 2012 R2 (KB4012213)</td>
<td width="218">Windows Server 2012 R2</td>
<td width="98">Security Updates</td>
<td width="83">3/28/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Only Quality Update for Windows Embedded 8 Standard (KB4012214)</td>
<td width="218">Windows 8 Embedded</td>
<td width="98">Security Updates</td>
<td width="83">3/28/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Only Quality Update for Windows Embedded 8 Standard for x64-based Systems (KB4012214)</td>
<td width="218">Windows 8 Embedded</td>
<td width="98">Security Updates</td>
<td width="83">3/28/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Only Quality Update for Windows Server 2012 (KB4012214)</td>
<td width="218">Windows Server 2012</td>
<td width="98">Security Updates</td>
<td width="83">3/28/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Monthly Quality Rollup for Windows Server 2012 (KB4012217)</td>
<td width="218">Windows Server 2012</td>
<td width="98">Security Updates</td>
<td width="83">3/13/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Monthly Quality Rollup for Windows Embedded 8 Standard for x64-based Systems (KB4012217)</td>
<td width="218">Windows 8 Embedded</td>
<td width="98">Security Updates</td>
<td width="83">3/13/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Monthly Quality Rollup for Windows Embedded 8 Standard (KB4012217)</td>
<td width="218">Windows 8 Embedded</td>
<td width="98">Security Updates</td>
<td width="83">3/13/2017</td>
</tr>
<tr>
<td width="609">Security Update for Windows Vista (KB4012598)</td>
<td width="218">Windows Vista</td>
<td width="98">Security Updates</td>
<td width="83">3/12/2017</td>
</tr>
<tr>
<td width="609">Security Update for Windows Server 2008 (KB4012598)</td>
<td width="218">Windows Server 2008</td>
<td width="98">Security Updates</td>
<td width="83">3/12/2017</td>
</tr>
<tr>
<td width="609">Security Update for Windows Vista for x64-based Systems (KB4012598)</td>
<td width="218">Windows Vista</td>
<td width="98">Security Updates</td>
<td width="83">3/12/2017</td>
</tr>
<tr>
<td width="609">Security Update for Windows Server 2008 for Itanium-based Systems (KB4012598)</td>
<td width="218">Windows Server 2008</td>
<td width="98">Security Updates</td>
<td width="83">3/12/2017</td>
</tr>
<tr>
<td width="609">Security Update for Windows Server 2008 for x64-based Systems (KB4012598)</td>
<td width="218">Windows Server 2008</td>
<td width="98">Security Updates</td>
<td width="83">3/12/2017</td>
</tr>
<tr>
<td width="609">Security Update for WES09 and POSReady 2009 (KB4012598)</td>
<td width="218">Windows XP Embedded</td>
<td width="98">Security Updates</td>
<td width="83">3/12/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Monthly Quality Rollup for Windows 7 (KB4012215)</td>
<td width="218">Windows 7</td>
<td width="98">Security Updates</td>
<td width="83">3/12/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Monthly Quality Rollup for Windows Server 2008 R2 for x64-based Systems (KB4012215)</td>
<td width="218">Windows Server 2008 R2</td>
<td width="98">Security Updates</td>
<td width="83">3/12/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Monthly Quality Rollup for Windows Embedded Standard 7 (KB4012215)</td>
<td width="218">Windows Embedded Standard 7</td>
<td width="98">Security Updates</td>
<td width="83">3/12/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Monthly Quality Rollup for Windows Server 2008 R2 for Itanium-based Systems (KB4012215)</td>
<td width="218">Windows Server 2008 R2</td>
<td width="98">Security Updates</td>
<td width="83">3/12/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Monthly Quality Rollup for Windows 7 for x64-based Systems (KB4012215)</td>
<td width="218">Windows 7</td>
<td width="98">Security Updates</td>
<td width="83">3/12/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Monthly Quality Rollup for Windows Embedded Standard 7 for x64-based Systems (KB4012215)</td>
<td width="218">Windows Embedded Standard 7</td>
<td width="98">Security Updates</td>
<td width="83">3/12/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Monthly Quality Rollup for Windows 8.1 for x64-based Systems (KB4012216)</td>
<td width="218">Windows 8.1</td>
<td width="98">Security Updates</td>
<td width="83">3/12/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Monthly Quality Rollup for Windows Server 2012 R2 (KB4012216)</td>
<td width="218">Windows Server 2012 R2</td>
<td width="98">Security Updates</td>
<td width="83">3/12/2017</td>
</tr>
<tr>
<td width="609">March, 2017 Security Monthly Quality Rollup for Windows 8.1 (KB4012216)</td>
<td width="218">Windows 8.1</td>
<td width="98">Security Updates</td>
<td width="83">3/12/2017</td>
</tr>
<tr>
<td width="609">Cumulative Update for Windows 10 (KB4012606)</td>
<td width="218">Windows 10,Windows 10 LTSB</td>
<td width="98">Security Updates</td>
<td width="83">3/10/2017</td>
</tr>
<tr>
<td width="609">Cumulative Update for Windows 10 for x64-based Systems (KB4012606)</td>
<td width="218">Windows 10,Windows 10 LTSB</td>
<td width="98">Security Updates</td>
<td width="83">3/10/2017</td>
</tr>
<tr>
<td width="609">Cumulative Update for Windows 10 Version 1511 for x64-based Systems (KB4013198)</td>
<td width="218">Windows 10</td>
<td width="98">Security Updates</td>
<td width="83">3/10/2017</td>
</tr>
<tr>
<td width="609">Cumulative Update for Windows 10 Version 1511 (KB4013198)</td>
<td width="218">Windows 10</td>
<td width="98">Security Updates</td>
<td width="83">3/10/2017</td>
</tr>
<tr>
<td width="609">2017-03 Delta Update for Windows 10 Version 1607 for x64-based Systems (KB4013429)</td>
<td width="218">Windows 10</td>
<td width="98">Security Updates</td>
<td width="83">3/10/2017</td>
</tr>
<tr>
<td width="609">2017-03 Delta Update for Windows Server 2016 for x64-based Systems (KB4013429)</td>
<td width="218">Windows Server 2016</td>
<td width="98">Security Updates</td>
<td width="83">3/10/2017</td>
</tr>
<tr>
<td width="609">2017-03 Delta Update for Windows 10 Version 1607 for x86-based Systems (KB4013429)</td>
<td width="218">Windows 10</td>
<td width="98">Security Updates</td>
<td width="83">3/10/2017</td>
</tr>
<tr>
<td width="609">Cumulative Update for Windows 10 Version 1607 for x64-based Systems (KB4013429)</td>
<td width="218">Windows 10</td>
<td width="98">Security Updates</td>
<td width="83">3/10/2017</td>
</tr>
<tr>
<td width="609">Cumulative Update for Windows 10 Version 1607 (KB4013429)</td>
<td width="218">Windows 10</td>
<td width="98">Security Updates</td>
<td width="83">3/10/2017</td>
</tr>
<tr>
<td width="609">Cumulative Update for Windows Server 2016 for x64-based Systems (KB4013429)</td>
<td width="218">Windows Server 2016</td>
<td width="98">Security Updates</td>
<td width="83">3/10/2017</td>
</tr>
</tbody>
</table>
&nbsp;

&nbsp;

&nbsp;

Hope this information will be helpful

Sudheesh Narayanaswamy

&nbsp;]]></content:encoded>
    </item>
    <item>
      <title>Status of Update per Update ID from WSUS server</title>
      <link>https://docs.microsoft.com/archive/blogs/sudheesn/status-of-update-per-update-id-from-wsus-server</link>
      <pubDate>Tue, 16 May 2017 15:23:42 GMT</pubDate>
      <dc:creator><![CDATA[Sudheesh N]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sudheesn/?p=775</guid>
      <description><![CDATA[With the Current issue with Ransome Wancrypt we had a requirement where we had WSUS only to get...]]></description>
      <content:encoded><![CDATA[With the Current issue with Ransome Wancrypt we had a requirement where we had WSUS only to get report. WSUS reports are there but the reports were not friendly.

So we had to write two scripts using powershell , one to Get the Summary of Update Installation Status for a Specific or a Set of Updates  and second one to get the list of computers where a updated is needed for a specific Update or for a set of updates.

Thought of Sharing the same as it could be useful for few who are using WSUS as their Patching Mechanism.
<ol>
 	<li>Updates Status Primary for a Specific or a Group of Updates.  (These Update ID are for KB4012212,KB4012213,4012214,KB4012598)</li>
</ol>
<h6>##########################################################################
#Script to get the Report from WSUS for Updates Status Primary for a Specific or a Group of Updates
#Version 1.0 File Name Report_Summary.ps1
# Output  Folder file path is  $outputfile a
#Created by: Sudheesh Narayanaswamy
#Created for Any WSUS server
#Created on: 5/16/2017
#Run this script in the WSUS server
################################################################################
$outputfile = "C:\Temp\"
$outputfile = $outputfile + "Report_Summary_" + $env:COMPUTERNAME + ".csv"
#Change server name and port number and $True if it is on SSL
[String]$updateServer1 = $env:COMPUTERNAME
[Boolean]$useSecureConnection = $False
[Int32]$portNumber =80
$updateid=(
'fb31138f-b6a5-499c-9eb6-5b5f9fff6bfd',
'86ac3cc3-e972-41a8-ac78-45bc5a950faa',
'5680ca8f-be92-4d13-8e4e-587aa462e838',
'57dbd57f-89b2-4abb-8582-14fc17870bb8',
'80bc2b42-a953-4096-8595-130e9a9c9fb9',
'652eea96-c2e8-4548-8f9a-40964e5e6a74'
)
# Load .NET assembly
[void][reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")
# Connect to WSUS Server
$updateServer = [Microsoft.UpdateServices.Administration.AdminProxy]::getUpdateServer($updateServer1,$useSecureConnection,$portNumber)
write-host "&lt;&lt;&lt;Connected sucessfully &gt;&gt;&gt;" -foregroundcolor "yellow"
$computerscope = New-Object Microsoft.UpdateServices.Administration.ComputerTargetScope
$updatescope = New-Object Microsoft.UpdateServices.Administration.UpdateScope
$updatescope.ApprovedStates = [Microsoft.UpdateServices.Administration.ApprovedStates]::LatestRevisionApproved
$updatescope.IncludedInstallationStates = [Microsoft.UpdateServices.Administration.UpdateInstallationStates]::NotInstalled
$updatescope.FromArrivalDate = [datetime]"1/1/2017"
$u=$updateServer.GetUpdates($updatescope )
$u=$updateServer.GetSummariesPerUpdate($updatescope,$computerscope)</h6>
<h6>foreach ($u1 in $u )
{
if ($updateid -contains $u1.UpdateId)
{</h6>
<h6>$needed= $u1.DownloadedCount + $u1.NotInstalledCount +$u1.InstalledPendingRebootCount
$Title= $updateServer.GetUpdate($u1.UpdateId).Title
$o= New-Object PSObject
$o | Add-Member NoteProperty Title $Title
$o | Add-Member NoteProperty Installed $u1.InstalledCount
$o | Add-Member NoteProperty Required $needed
$o | Add-Member NoteProperty  Failed $u1.FailedCount
$o | Add-Member NoteProperty Notapplicable $u1.NotApplicableCount
$o | export-csv $outputfile -Append -NoTypeInformation</h6>
<h6>}</h6>
<h6>}</h6>
<h6>write-host "&lt;&lt;&lt;Finished sucessfully &gt;&gt;&gt;" -foregroundcolor "yellow"</h6>
<h6>trap
{
write-host "Error Occurred"
write-host "Exception Message: "
write-host $_.Exception.Message
write-host $_.Exception.StackTrace
exit
}
# EOF</h6>
2. Computers which require a specific update or a set of updates

##########################################################################
#Script to get the Report from WSUS for Computers which require a specific update or a set of updates
#Version 1.0 File Name Report_detailed.ps1
# Output  Folder file path is  $outputfile a
#Created by: Sudheesh Narayanaswamy
#Created for Any WSUS server
#Created on: 5/16/2017
#Run this script in the WSUS server
################################################################################

$outputfile = "C:\Temp\"
$outputfile = $outputfile + "Report_Detail_" + $env:COMPUTERNAME + ".csv"

#Change server name and port number and $True if it is on SSL
[String]$updateServer1 = $env:COMPUTERNAME
[Boolean]$useSecureConnection = $False
[Int32]$portNumber =80
$updateid=(
'fb31138f-b6a5-499c-9eb6-5b5f9fff6bfd',
'86ac3cc3-e972-41a8-ac78-45bc5a950faa',
'5680ca8f-be92-4d13-8e4e-587aa462e838',
'57dbd57f-89b2-4abb-8582-14fc17870bb8',
'80bc2b42-a953-4096-8595-130e9a9c9fb9',
'652eea96-c2e8-4548-8f9a-40964e5e6a74'
)
# Load .NET assembly
[void][reflection.assembly]::LoadWithPartialName("Microsoft.UpdateServices.Administration")
# Connect to WSUS Server
$updateServer = [Microsoft.UpdateServices.Administration.AdminProxy]::getUpdateServer($updateServer1,$useSecureConnection,$portNumber)
write-host "&lt;&lt;&lt;Connected sucessfully &gt;&gt;&gt;" -foregroundcolor "yellow"
$computerscope = New-Object Microsoft.UpdateServices.Administration.ComputerTargetScope
$updatescope = New-Object Microsoft.UpdateServices.Administration.UpdateScope
$updatescope.ApprovedStates = [Microsoft.UpdateServices.Administration.ApprovedStates]::LatestRevisionApproved
$updatescope.IncludedInstallationStates = [Microsoft.UpdateServices.Administration.UpdateInstallationStates]::NotInstalled
$updatescope.FromArrivalDate = [datetime]"1/1/2017"
$Update=$updateServer.GetUpdates($updatescope )
foreach ($u1 in $Update)
{

if ($updateid -contains $u1.Id.UpdateId)
{
$Computers= $u1.GetUpdateInstallationInfoPerComputerTarget($ComputerScope)
$Title= $updateServer.GetUpdate($u1.Id.UpdateId).Title
foreach ($C1 in $Computers)
{

if ($C1.UpdateInstallationState -ne "Installed" -and  $C1.UpdateInstallationState -ne "NotApplicable" )
{

$ComputerName= $updateServer.GetComputerTarget($C1.ComputerTargetId).FullDomainName

$o= New-Object PSObject
$o | Add-Member NoteProperty Title $Title
$o | Add-Member NoteProperty ComputerName $ComputerName
$o | Add-Member NoteProperty Status   $C1.UpdateInstallationState
$o | export-csv $outputfile -Append -NoTypeInformation

}

}

}
}

write-host "&lt;&lt;&lt;Finished sucessfully &gt;&gt;&gt;" -foregroundcolor "yellow"

trap
{
write-host "Error Occurred"
write-host "Exception Message: "
write-host $_.Exception.Message
write-host $_.Exception.StackTrace
exit
}
# EOF

Hope This would be helpful

Sudheesh Narayanaswamy

&nbsp;]]></content:encoded>
    </item>
    <item>
      <title>Logoff a Specific User from a Group of Remote Computers (PowerShell Script)</title>
      <link>https://docs.microsoft.com/archive/blogs/sudheesn/logoff-a-specific-user-from-a-group-of-remote-computers-powershell-script</link>
      <pubDate>Tue, 02 Aug 2016 05:05:15 GMT</pubDate>
      <dc:creator><![CDATA[Sudheesh N]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sudheesn/?p=725</guid>
      <description><![CDATA[At times we get request on that we need to log off a particular user from multiple machines where he...]]></description>
      <content:encoded><![CDATA[At times we get request on that we need to log off a particular user from multiple machines where he has remotely logged in forcefully. This scripts helps in doing the same. For a particular task I had written this and though would be helpful for others hence sharing.
It uses one input files $path1 = "c:\temp\servers.csv"   You can put the name of the servers or IP Address with line delimiter Like below and save it as servers.csv

SERVER1
SERVER 2
1.1.1.1
10.10.0.1 ...

Script
====================================

$username = 'Sudheesh'
$path1 = "c:\temp\servers.csv"
$Servers= Import-csv -path $path1 -Header  servername
foreach($Server1 in $Servers) {
$Server= $Server1.servername
$Server
$session = ((quser /server:$server | ? { $_ -match $username }) -split ' +')[2]
logoff $session /server:$server
}

Hope this Helps

Sudheesh Narayanaswamy

<strong>This posting /Script  is provided "AS IS" with no warranties and confers no rights</strong>]]></content:encoded>
    </item>
    <item>
      <title>Report for Local admins using SCCM</title>
      <link>https://docs.microsoft.com/archive/blogs/sudheesn/report-for-local-admins-using-sccm</link>
      <pubDate>Fri, 04 Mar 2016 09:54:00 GMT</pubDate>
      <dc:creator><![CDATA[Sudheesh N]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sudheesn/2016/03/04/report-for-local-admins-using-sccm/</guid>
      <description><![CDATA[If you follow the below&nbsp; link and user the configuration item and get the inventory , the data...]]></description>
      <content:encoded><![CDATA[<p>If you follow the below&nbsp; link and user the configuration item and get the inventory , the data will be in the database .</p>
<p><a title="https://blogs.technet.com/b/sudheesn/archive/2014/12/12/collect-hardware-inventory-of-local-admins.aspx" href="/b/sudheesn/archive/2014/12/12/collect-hardware-inventory-of-local-admins.aspx">https://blogs.technet.com/b/sudheesn/archive/2014/12/12/collect-hardware-inventory-of-local-admins.aspx</a>&nbsp;</p>
<p>I have few request coming in asking for reports for the same. I have created two reports and sharing the rdl with you all so that it can be useful.</p>
<p>1. Computers with a Specific account&nbsp; (user or Group ) in local Administrator</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/image_6FDE82A2.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/image_5F00_6FDE82A2.png"><img width="691" height="185" title="image" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border:0px;" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/image_thumb_05C7F4F3.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/image_5F00_thumb_5F00_05C7F4F3.png" border="0" /></a></p>
<p>2. Local Administrators for a specific Computers</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/image_6E9F0B25.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/image_5F00_6E9F0B25.png"><img width="713" height="244" title="image" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border:0px;" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/image_thumb_41AC38FB.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/image_5F00_thumb_5F00_41AC38FB.png" border="0" /></a></p>
<p>&nbsp;</p>
<p>Steps</p>
<p>1. Download the RDL file and save it is the server we have reporting Service point.</p>
<p>2. Go to https:// ?ReportServerName? /reports and got to Configmgr</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/image_06E9B187.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/image_5F00_06E9B187.png"><img width="580" height="114" title="image" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border:0px;" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/image_thumb_642879C9.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/image_5F00_thumb_5F00_642879C9.png" border="0" /></a></p>
<p>3. Select Upload files &hellip;In the window click on browse and select the RDL file. Click ok . You can select the folder you would like to upload</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/image_11D0D593.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/image_5F00_11D0D593.png"><img width="736" height="178" title="image" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border:0px;" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/image_thumb_01586498.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/image_5F00_thumb_5F00_01586498.png" border="0" /></a></p>
<p>4. Once uploaded Select the repot and then select Manage</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/image_765385A2.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/image_5F00_765385A2.png"><img width="244" height="203" title="image" style="background-image:none;padding-top:0px;padding-left:0px;margin:0px;display:inline;padding-right:0px;border:0px;" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/image_thumb_4CDF4462.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/image_5F00_thumb_5F00_4CDF4462.png" border="0" /></a></p>
<p>5. Select Data sources and click on browse</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/image_65717263.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/image_5F00_65717263.png"><img width="351" height="176" title="image" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border:0px;" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/image_thumb_0522DCDD.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/image_5F00_thumb_5F00_0522DCDD.png" border="0" /></a></p>
<p>6.Select the ConfigMgr folder expand and go to the bottom&nbsp; and select the data source and select ok.</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/image_666BF2F1.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/image_5F00_666BF2F1.png"><img width="429" height="186" title="image" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border:0px;" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/image_thumb_51E93424.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/image_5F00_thumb_5F00_51E93424.png" border="0" /></a></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/image_38178EA6.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/image_5F00_38178EA6.png"><img width="428" height="105" title="image" style="background-image:none;padding-top:0px;padding-left:0px;display:inline;padding-right:0px;border:0px;" alt="image" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/image_thumb_24F661FA.png" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/image_5F00_thumb_5F00_24F661FA.png" border="0" /></a></p>
<p>Once done you should be able to see the report and run the report</p>
<p>Hope this helps</p>
<p>&nbsp;</p>
<p>Sudheesh N</p>
<p>Microsoft Infrastructure Consultant</p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/telligent.evolution.components.attachments/01/7717/00/00/03/66/10/02/RDL_files.zip" original-url="https://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-7717-00-00-03-66-10-02/RDL_5F00_files.zip">RDL_files.zip</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Application Deployment Policy Creation Flow</title>
      <link>https://docs.microsoft.com/archive/blogs/sudheesn/application-deployment-policy-creation-flow</link>
      <pubDate>Sun, 23 Aug 2015 09:49:18 GMT</pubDate>
      <dc:creator><![CDATA[Sudheesh N]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sudheesn/2015/08/23/application-deployment-policy-creation-flow/</guid>
      <description><![CDATA[The application model of Configuration Manager 2012 uses Configuration Items. So the deployment...]]></description>
      <content:encoded><![CDATA[<h6></h6> <p></p> <p>The application model of Configuration Manager 2012 uses Configuration Items. So the deployment and policy creation is a little different from the package creation. I am trying here to explain the flow of events which happens till the policy created on the server for a specific deployment. <p>When you create the deployment for an application the SMS provide inserts the data to the basic table and depending on the trigger, it will update the table change notification tables as any other process does. </p> <p>The application details are as below which is was used </p> <p><font color="#0000ff"><strong>Application ID :</strong> ScopeId_2A471255-BD73-43F1-B1C0-613FC1A40798/Application_c637da7c-a62d-494e-a71e-b863b1a7196b/1 <br /><strong>Application CI_ID :</strong>224 <br /><strong>Deployment ID :</strong> {D82B1B46-9636-4560-AE1A-22110840A7AC} <br /><strong>Assignment ID :</strong> 1677218 <br /><strong>Collection SITEID:</strong> 00100015 , <br /><strong>Collection ID :</strong> 14</font>  <p>Now the SMSDBMON comes to action </p> <p>You would see the following changes and corresponding files getting dropped by SMSDBMON</p> <p><font size="1">RCV: INSERT on CI_CIAssignments for CIAssignmentNotify_iu [16777218 ][157236] SMS_DATABASE_NOTIFICATION_MONITOR 8/23/2015 6:56:58 PM 2536 (0x09E8) <br />RCV: INSERT on RBAC_ChangeNotification for Rbac_Sync_ChangeNotification [431 ][157237] SMS_DATABASE_NOTIFICATION_MONITOR 8/23/2015 6:56:58 PM 2536 (0x09E8) <br />RCV: INSERT on CrpChange_Notify for CrpChange_Notify_ins [14 ][157238] SMS_DATABASE_NOTIFICATION_MONITOR 8/23/2015 6:56:58 PM 2536 (0x09E8) <br />RCV: UPDATE on CI_CIAssignments for CIAssignmentNotify_iu [16777218 ][157239] SMS_DATABASE_NOTIFICATION_MONITOR 8/23/2015 6:56:58 PM 2536 (0x09E8) <br />RCV: UPDATE on CI_CIAssignments for CIAssignmentNotify_iu [16777218 ][157240] SMS_DATABASE_NOTIFICATION_MONITOR 8/23/2015 6:56:58 PM 2536 (0x09E8) <br />RCV: UPDATE on CI_AssignmentTargetedCIs for CI_AssignmentTargetedCIs_ADDED [16777218 ][157241] SMS_DATABASE_NOTIFICATION_MONITOR 8/23/2015 6:56:58 PM 2536 (0x09E8) <br />RCV: UPDATE on CI_AssignmentTargetedCIs for CI_AssignmentTargetedCIs_CIAMGR [16777218 ][157242] SMS_DATABASE_NOTIFICATION_MONITOR 8/23/2015 6:56:58 PM 2536 (0x09E8) <br />RCV: INSERT on RBAC_ChangeNotification for Rbac_Sync_ChangeNotification [432 ][157243] SMS_DATABASE_NOTIFICATION_MONITOR 8/23/2015 6:56:58 PM 2536 (0x09E8) </font> <p><strong>CIA File is dropped in objgmgr.box</strong> <br />Modified trigger definition for Object Replication Manager[CIAssignmentNotify_iu]: table CI_CIAssignments(AssignmentID) on insert,update, file CIA in dir C:\Program Files\Microsoft Configuration Manager\inboxes\objmgr.box\ SMS_DATABASE_NOTIFICATION_MONITOR 8/23/2015 6:56:58 PM 2536 (0x09E8) <br />SND: Dropped C:\Program <strong><font color="#ff0000">Files\Microsoft Configuration Manager\inboxes\objmgr.box\16777218.CIA [157236]</font></strong> SMS_DATABASE_NOTIFICATION_MONITOR 8/23/2015 6:56:58 PM 2536 (0x09E8) <br /><strong>RBC file is dropped for the RBAC on hman.box <br /></strong>Modified trigger definition for Hierarchy Manager[Rbac_Sync_ChangeNotification]: table RBAC_ChangeNotification(ID) on insert, file RBC in dir C:\Program Files\Microsoft Configuration Manager\inboxes\hman.box\ SMS_DATABASE_NOTIFICATION_MONITOR 8/23/2015 6:56:58 PM 2536 (0x09E8) <br />SND: Dropped C:\Program Files\<font color="#ff0000"><strong>Microsoft Configuration Manager\inboxes\hman.box\431.RBC [157237]</strong></font> SMS_DATABASE_NOTIFICATION_MONITOR 8/23/2015 6:56:58 PM 2536 (0x09E8) <br /><strong>CRP file for the policypv.box with &lt;collectionID&gt;.CRP</strong> <br />Modified trigger definition for Policy Targeting Evaluator[CrpChange_Notify_ins]: table CrpChange_Notify(CollectionID) on insert, file CRP in dir C:\Program Files\Microsoft Configuration Manager\inboxes\policypv.box\policytargeteval\ SMS_DATABASE_NOTIFICATION_MONITOR 8/23/2015 6:56:58 PM 2536 (0x09E8) <br />SND: Dropped C:\Program Files\Microsoft Configuration <font color="#ff0000"><strong>Manager\inboxes\policypv.box\policytargeteval\14.CRP [157238]</strong></font> SMS_DATABASE_NOTIFICATION_MONITOR 8/23/2015 6:56:58 PM 2536 (0x09E8)  <p>There are few other files which get dropped bases on the CI Model, currently not taking in to consideration on this. </p> <p>Now the Objreplmgr component then picks the CIA file and process the same </p> <p><font size="1">*****<strong> <font color="#ff0000">Processing Application Assignment {D82B1B46-9636-4560-AE1A-22110840A7AC} *****</font></strong> SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:56:58 PM 2932 (0x0B74) <br />Deleting notification file C:\Program Files\Microsoft Configuration Manager\inboxes\<strong><font color="#ff0000">objmgr.box\16777218.CIA</font></strong> SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:56:58 PM 2932 (0x0B74) <br />Found file trigger for C:\Program Files\Microsoft Configuration Manager\inboxes\objmgr.box\16777218.ADD SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:56:58 PM 2932 (0x0B74) <br />Info: Sussessfully get New CI Added notification file C:\Program Files\Microsoft Configuration Manager\inboxes\objmgr.box\16777218.ADD for CI Assignment Id 16777218, new CI added to this assignment SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:56:58 PM 2932 (0x0B74) <br /><font color="#ff0000">CI Assignment {D82B1B46-9636-4560-AE1A-22110840A7AC} has 1 Targeted CI(s) SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:56:58 PM 2932 (0x0B74)</font> <br />PolicyID {D82B1B46-9636-4560-AE1A-22110840A7AC} PolicyVersion 1.00 PolicyHash SHA256:387A3415CDE9CE97E3213077D3DD3305FAF79085F5B156A4186F89740436CBF0 SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:56:58 PM 2932 (0x0B74) <br />Notifying policy provider about changes in policy content/targeting SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:56:59 PM 2932 (0x0B74) <br />Successfully created policy for CI Assignment {D82B1B46-9636-4560-AE1A-22110840A7AC} SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:56:59 PM 2932 (0x0B74) <br />Catalog evaluation: Getting model id for CI Assignment ID = 16777218 SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:56:59 PM 2932 (0x0B74) <br />Catalog table insert/update evaluation for Model Id 224 SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:56:59 PM 2932 (0x0B74) <br />Notifying policy provider about changes in policy content/targeting SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:57:00 PM 2932 (0x0B74) <br /><font color="#ff0000">Successfully updated Policy Targeting for CI Assignment {D82B1B46-9636-4560-AE1A-22110840A7AC}</font> SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:57:00 PM 2932 (0x0B74)</font>  <p>Once this is completed you would find the CI_assignments table update </p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/clip_image0024_678E4828.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/clip_5F00_image0024_5F00_678E4828.jpg"><img style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;display:inline;" border="0" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/clip_image0024_thumb_2F71EBB4.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/clip_5F00_image0024_5F00_thumb_5F00_2F71EBB4.jpg" width="644" height="181" alt=" " /></a> </p> <p>At the same time the CRP file which is dropped in the </p> <p><font size="1"><font color="#ff0000">Found 14.CRP SMS_POLICY_PROVIDER 8/23/2015 6:56:58 PM 2796 (0x0AEC) <br /></font>Adding to delete list: C:\Program Files\Microsoft Configuration Manager\inboxes\policypv.box\policytargeteval\14.CRP SMS_POLICY_PROVIDER 8/23/2015 6:56:58 PM 2796 (0x0AEC) <br />--WaitForInboxChangeNotification SMS_POLICY_PROVIDER 8/23/2015 6:57:00 PM 2796 (0x0AEC)</font> </p> <p><br />Now the objereplmgr find the related CI items and do the needful. The relation is like this for CI_ID related to this application with CI_ID 224 </p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/clip_image0044_21360375.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/clip_5F00_image0044_5F00_21360375.jpg"><img style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;display:inline;" border="0" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/clip_image0044_thumb_64A09588.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/clip_5F00_image0044_5F00_thumb_5F00_64A09588.jpg" width="644" height="413" alt=" " /></a> </p> <p><font size="1"><font color="#ff0000"><strong>Assigned CIs: [ 39 226 ] SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:57:00 PM 2932 (0x0B74) <br />Begin processing Assigned CI: [39] SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:57:00 PM 2932 (0x0B74) <br /></strong></font>39 Referenced VS CIs: [ ] SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:57:00 PM 2932 (0x0B74) <br />VersionInfo policy for CI 39 is Machine type SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:57:00 PM 2932 (0x0B74) <br />VersionInfo policy for CI 39 is Machine type SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:57:01 PM 2932 (0x0B74) <br />PolicyID Windows/All_Windows_Client_Server/VI/VS PolicyVersion 1.00 PolicyHash SHA256:2D646F6A67F56E7A13A7EBF26C6488EA4BB7D9C2AA83447DFC3B3647B9015243 SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:57:01 PM 2932 (0x0B74) <br />VersionInfo policy for CI 39 is up-to-date SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:57:01 PM 2932 (0x0B74) <br />VersionInfo policy Windows/All_Windows_Client_Server/VI/VS is up-to-date SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:57:01 PM 2932 (0x0B74) <br />Begin processing Assigned CI: [226] SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:57:01 PM 2932 (0x0B74) <br />Creating VersionInfo policy for CI 226 SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:57:01 PM 2932 (0x0B74) <br />Creating VersionInfo policy ScopeId_2A471255-BD73-43F1-B1C0-613FC1A40798/RequiredApplication_c637da7c-a62d-494e-a71e-b863b1a7196b/VI/VS SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:57:01 PM 2932 (0x0B74) <br />226 Referenced VS CIs: [ 224 225 149 122 133 ] SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:57:01 PM 2932 (0x0B74) <br />##############<br />############## <br />You would then see that the CI_assignment processing is done <br />Successfully updated CRCs for CI Assignment {D82B1B46-9636-4560-AE1A-22110840A7AC} SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:57:05 PM 2932 (0x0B74) <br /><font color="#ff0000"><strong>Successfully processed Application Assignment {D82B1B46-9636-4560-AE1A-22110840A7AC} SMS_OBJECT_REPLICATION_MANAGER 8/23/2015 6:57:05 PM 2932 (0x0B74) <br /></strong></font></font></p> <p><font size="1"><font size="2">We would then see that PAC file getting dropped by smsdbmon</font> <br /></font><font size="1"></font></p> <p><font size="1">Modified trigger definition for Policy Targeting Evaluator[PolicyAssignmentChg_Notify_iu]: table PolicyAssignmentChg_Notify(PADBID) on insert,update, file PAC in dir C:\Program Files\Microsoft Configuration Manager\inboxes\policypv.box\policytargeteval\ SMS_DATABASE_NOTIFICATION_MONITOR 8/23/2015 6:57:13 PM 2536 (0x09E8) <br />SND: Dropped C:\Program Files\Microsoft Configuration Manager\<strong><font color="#ff0000">inboxes\policypv.box\policytargeteval\16809612.PAC [157247]</font></strong> SMS_DATABASE_NOTIFICATION_MONITOR 8/23/2015 6:57:13 PM 2536 (0x09E8) </font></p> <p>The policy provider then would see that processing </p> <p><strong><font color="#ff0000">Found the certificate that matches the SHA1 hash. SMS_POLICY_PROVIDER 8/23/2015 6:57:19 PM 3720 (0x0E88) <br />Completed batch with beginning PADBID = 16809612 ending PADBID = 16809614.</font></strong> SMS_POLICY_PROVIDER 8/23/2015 6:57:19 PM 3720 (0x0E88) <br />--Process Policy Changes SMS_POLICY_PROVIDER 8/23/2015 6:57:19 PM 3720 (0x0E88) <br />Found some Policy changes, returning New LastRowversion=0x000000000035604C SMS_POLICY_PROVIDER 8/23/2015 6:57:19 PM 3720 (0x0E88) <br />Processing Updated Policies SMS_POLICY_PROVIDER 8/23/2015 6:57:19 PM 3720 (0x0E88)  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/clip_image0064_21C6E1BF.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/clip_5F00_image0064_5F00_21C6E1BF.jpg"><img style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;display:inline;" border="0" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/clip_image0064_thumb_2F51A01A.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/clip_5F00_image0064_5F00_thumb_5F00_2F51A01A.jpg" width="644" height="198" alt=" " /></a> </p> <p>Building Collection Change List from New and Targeting Changed Policies SMS_POLICY_PROVIDER 8/23/2015 6:57:19 PM 3720 (0x0E88) <br />--Update Policy Targeting Map SMS_POLICY_PROVIDER 8/23/2015 6:57:19 PM 3720 (0x0E88) <br /><font color="#ff0000"><strong>**** Evaluating Collection 14 for targeting changes **** SMS_POLICY_PROVIDER 8/23/2015 6:57:19 PM 3720 (0x0E88) <br />Advanced client policy changes detected for collection 14, *** 3 Added &amp; 0 Deleted ***. SMS_POLICY_PROVIDER 8/23/2015 6:57:19 PM 3720 (0x0E88) <br /></strong></font>--Process Policy Targeting Map SMS_POLICY_PROVIDER 8/23/2015 6:57:19 PM 3720 (0x0E88)  <p>You should then see the relation in respolicymap table for the all the members of the collection </p> <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/clip_image0084_4B870A5A.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/clip_5F00_image0084_5F00_4B870A5A.jpg"><img style="border-top:0px;border-right:0px;border-bottom:0px;border-left:0px;display:inline;" border="0" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/CommunityServer.Blogs.Components.WeblogFiles/00/00/00/77/17/metablogapi/clip_image0084_thumb_43FE2B9E.jpg" original-url="https://blogs.technet.com/cfs-file.ashx/__key/communityserver-blogs-components-weblogfiles/00-00-00-77-17-metablogapi/clip_5F00_image0084_5F00_thumb_5F00_43FE2B9E.jpg" width="644" height="234" alt=" " /></a></p> <p>Hope this Helps </p> <p>Sudheesh Narayanaswamy</p></p></p></p></p></p></p></p>]]></content:encoded>
    </item>
    <item>
      <title>How to parse a XML file and get the Node value using Powershell</title>
      <link>https://docs.microsoft.com/archive/blogs/sudheesn/how-to-parse-a-xml-file-and-get-the-node-value-using-powershell</link>
      <pubDate>Wed, 08 Jul 2015 22:46:06 GMT</pubDate>
      <dc:creator><![CDATA[Sudheesh N]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sudheesn/2015/07/08/how-to-parse-a-xml-file-and-get-the-node-value-using-powershell/</guid>
      <description><![CDATA[&nbsp; Let us say that we have sample XMl file like this &lt;?xml version=&quot;1.0&quot;...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;</p> <p>Let us say that we have sample XMl file like this</p> <p>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br />&lt;note&gt;<br />&nbsp; &lt;to&gt;ToAll&lt;/to&gt;<br />&nbsp; &lt;from&gt;FromME&lt;/from&gt;<br />&nbsp; &lt;heading&gt;Reminder&lt;/heading&gt;<br />&nbsp; &lt;body&gt;Hello World!&lt;/body&gt;<br />&lt;/note&gt;  <p>The following will read the file and get us the value of the nodes  <p>$path= &quot;<font color="#ff0000" size="3">C:\Sample.xml</font>&quot;<br />$oXMLDocument=New-Object System.XML.XMLDocument&nbsp; <br />$oXMLDocument.Load($path)&nbsp; <br />write-host &quot;Value to To:&quot; $oXMLDocument.note.to<br />write-host &quot;Value to From:&quot;$oXMLDocument.note.from<br />write-host &quot;Value to Heading:&quot;$oXMLDocument.note.heading<br />write-host &quot;Value to Body:&quot;$oXMLDocument.note.body  <p>This is easy but when i had a do this and checked how it took me lot of time to come to this. </p> <p>So thought of sharing </p> <p>Hope it will be helpful </p> <p>Sudheesh Narayanaswamy</p> <p>========================================================== <p><strong>This posting /Script&nbsp; is provided &quot;AS IS&quot; with no warranties and confers no rights</strong></p></p></p></p></p>]]></content:encoded>
    </item>
    <item>
      <title>How to collect the Install date of updates using SCCM</title>
      <link>https://docs.microsoft.com/archive/blogs/sudheesn/how-to-collect-the-install-date-of-updates-using-sccm</link>
      <pubDate>Wed, 08 Jul 2015 21:05:00 GMT</pubDate>
      <dc:creator><![CDATA[Sudheesh N]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sudheesn/2015/07/08/how-to-collect-the-install-date-of-updates-using-sccm/</guid>
      <description><![CDATA[We had requirements on to collect the information of Install date for updates which is not usually...]]></description>
      <content:encoded><![CDATA[<p>We had requirements on to collect the information of Install date for updates which is not usually collected using inventory.</p> <p>The below Steps will help to get that information in to SCCM database</p> <p>1) Import the Cab file</p> <ul> <li>Take the attached file--&gt; Update Details.cab  </li><li>In your ConfigMgr 12 console, on Assets and Compliance, Compliance Settings  </li><li>Right-click on &quot;Configuration Baseline&quot;&nbsp; and Import this file (<a href="https://technet.microsoft.com/en-us/library/hh691016.aspx">https://technet.microsoft.com/en-us/library/hh691016.aspx</a> )  </li><li>Once done deploy the baseline to the collection of machines from which you need.(<a href="https://technet.microsoft.com/en-us/library/hh219289.aspx">https://technet.microsoft.com/en-us/library/hh219289.aspx</a> ) </li></ul> <p>2) Import the MOF file so that SMS_DEF.MOF is updated in 2012 this is how you do</p> <ul> <li>On the console, Administration -&gt; Client Settings -&gt;&nbsp; right-click &#39;Default Client Settings&#39; -&gt;and go to properties.  </li><li>Select Hardware Inventory, then on the right &quot;Set Classes.  </li><li>Click Import and browse to the updatedetails.mof file you saved. </li></ul> <p>Content of MOF file <br />========================================<br />[ SMS_Report (TRUE),</p> <p>&nbsp; SMS_Group_Name (&quot;CM_UpdateDetails&quot;),<br />&nbsp; SMS_Class_ID (&quot;MICROSOFT|CM_UPDATEDETAILS|1.0&quot;),<br />&nbsp; Namespace (&quot;root\\\\cimv2&quot;) ]<br />class CM_UpdateDetails : SMS_Class_Template<br />{<br />&nbsp;&nbsp;&nbsp; [ SMS_Report (TRUE), key ]<br />&nbsp;&nbsp;&nbsp; String&nbsp;&nbsp;&nbsp;&nbsp; HotFixID;<br />&nbsp;&nbsp;&nbsp; [ SMS_Report (TRUE) ]<br />&nbsp;&nbsp;&nbsp; String&nbsp;&nbsp;&nbsp;&nbsp; Installdate;<br />&nbsp;&nbsp;&nbsp; [ SMS_Report (TRUE) ]<br />&nbsp;&nbsp;&nbsp; String&nbsp;&nbsp;&nbsp;&nbsp; Installedby;<br />&nbsp;&nbsp;&nbsp; [ SMS_Report (TRUE) ]<br />&nbsp;&nbsp;&nbsp; String&nbsp;&nbsp;&nbsp;&nbsp; UpdateType;<br />};</p> <p>============================================<br />You will get the data in the query <br />select * from v_GS_CM_UPDATEDETAILS</p> <p>=======================================================================</p> <p>The powershell script use to create a WMI entry is also available in the Zip file.</p> <p><strong>This posting /Script&nbsp; is provided &quot;AS IS&quot; with no warranties and confers no rights</strong></p>
<p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/prod.evol.blogs.technet.com/telligent.evolution.components.attachments/01/7717/00/00/03/65/19/41/Update.zip" original-url="https://blogs.technet.com/cfs-filesystemfile.ashx/__key/telligent-evolution-components-attachments/01-7717-00-00-03-65-19-41/Update.zip">Update.zip</a></p>]]></content:encoded>
    </item>
    <item>
      <title>Powershell Scripts to distribute packages to a set of DP</title>
      <link>https://docs.microsoft.com/archive/blogs/sudheesn/powershell-scripts-to-distribute-packages-to-a-set-of-dp</link>
      <pubDate>Wed, 01 Jul 2015 22:50:36 GMT</pubDate>
      <dc:creator><![CDATA[Sudheesh N]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sudheesn/2015/07/01/powershell-scripts-to-distribute-packages-to-a-set-of-dp/</guid>
      <description><![CDATA[At times we get request on that we need to refresh the package or we need to distribute the package...]]></description>
      <content:encoded><![CDATA[<p>At times we get request on that we need to refresh the package or we need to distribute the package for a specific set of DP. <br />This scripts helps in distributing any kind of content (Application, legacy package, SUM package, driver package etc ) on the . <br />It uses two input files ($path1 = &quot;c:\temp\server.csv&quot;&nbsp;&nbsp; ,$path2 = &quot;c:\temp\Package.csv&quot;) <br />The first one you can enter the server names and in the second the package names . <br />Script <br />======= <br />Function Refresh-SpecificDP($ar) { <br />&nbsp;&nbsp;&nbsp; $dpFound = $false <br />&nbsp;&nbsp;&nbsp; $packageID=$ar[0] <br />&nbsp;&nbsp;&nbsp; $siteCode=$ar[1] <br />&nbsp;&nbsp;&nbsp; $dpName= $ar[2] <br />&nbsp;&nbsp;&nbsp; If ($packageID.Length -ne 8) <br />&nbsp;&nbsp;&nbsp; { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Throw &quot;Invalid package&quot; <br />&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp; $distPoints = Get-WmiObject -Namespace &quot;root\SMS\Site_$($siteCode)&quot; -Query &quot;Select * From SMS_DistributionPoint WHERE PackageID=&#39;$packageID&#39;&quot; <br />&nbsp;&nbsp;&nbsp; ForEach ($dp In $distPoints) <br />&nbsp;&nbsp;&nbsp; { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If ((($dp.ServerNALPath).ToUpper()).Contains($dpName.ToUpper())) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $dpFound = $true <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Try { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $dp.RefreshNow = $true <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $dp.Put() | Out-Null <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #$dpName + &quot; - &quot; + $packageID <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Catch [Exception] <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return $_.Exception.Message <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp; If ($dpFound -eq $false) <br />&nbsp;&nbsp;&nbsp; { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Throw &quot;No results returned.&quot; <br />&nbsp;&nbsp;&nbsp; } <br />} <br />#main pgm <br />$path1 = &quot;c:\temp\server.csv&quot; <br />$path2 = &quot;c:\temp\Package.csv&quot; <br /><font color="#ff0000">$SiteCode=&#39;CAS&#39;</font> <br />Import-csv -path $path1 -Header servername | foreach ` <br />{ <br />&nbsp;&nbsp;&nbsp; $ServerName=$_.servername <br />&nbsp;&nbsp;&nbsp; Import-csv -path $path2 -Header&nbsp; Packageid | foreach ` <br />&nbsp;&nbsp;&nbsp; { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $pkgID=$_.Packageid <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $PackageType= &quot;&quot; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $a= Get-CMPackage | Select-Object&nbsp; PackageID | Where-Object {$_.PackageID -eq $pkgID } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($a.PackageID -eq $pkgID) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $PackageType= &quot;Package&quot; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $a= Get-CMApplication&nbsp; | Select-Object&nbsp; PackageID | Where-Object {$_.PackageID -eq $pkgID } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($a.PackageID -eq $pkgID) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $PackageType= &quot;Application&quot; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $a= Get-CMDriverPackage&nbsp; | Select-Object&nbsp; PackageID | Where-Object {$_.PackageID -eq $pkgID } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($a.PackageID -eq $pkgID) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $PackageType= &quot;Driver&quot; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $a= Get-CMBootImage&nbsp; | Select-Object&nbsp; PackageID | Where-Object {$_.PackageID -eq $pkgID } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($a.PackageID -eq $pkgID) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $PackageType= &quot;BootImage&quot; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $a= Get-CMOperatingSystemImage&nbsp; | Select-Object&nbsp; PackageID | Where-Object {$_.PackageID -eq $pkgID } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($a.PackageID -eq $pkgID) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $PackageType= &quot;OSImage&quot; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If($PackageType -eq &quot;Package&quot;) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $distpoints = Get-WmiObject -Namespace &quot;root\SMS\Site_$($SiteCode)&quot; -Query &quot;Select * From SMS_DistributionPoint WHERE PackageID=&#39;$PkgID&#39; and serverNALPath like &#39;%$Servername%&#39;&quot; | Select-Object ServerNALPath <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($distpoints.ServerNALPath.length -eq 0) { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #echo &quot;This is a Package&quot; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; start-CMContentDistribution -PackageId&nbsp;&nbsp; &quot;$pkgID&quot; -DistributionPointName &quot;$ServerName&quot; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host &quot;Distributing Package :&quot;&nbsp; $pkgID &quot;of type &quot; $PackageType &quot;to DP:&quot; $serverName <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host &quot;Re-Distribting Package :&quot;&nbsp; $pkgID &quot;of type &quot; $PackageType &quot;to DP:&quot; $serverName <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ar=$PkgID,$SiteCode,$Servername <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Refresh-SpecificDP ($ar) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #For applications <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If($PackageType -eq &quot;Application&quot;) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $distpoints = Get-WmiObject -Namespace &quot;root\SMS\Site_$($SiteCode)&quot; -Query &quot;Select * From SMS_DistributionPoint WHERE PackageID=&#39;$PkgID&#39; and serverNALPath like &#39;%$Servername%&#39;&quot; | Select-Object ServerNALPath <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($distpoints.ServerNALPath.length -eq 0) { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #echo &quot;This is an Application&quot; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; start-CMContentDistribution -ApplicationID&nbsp; &quot;$pkgID&quot; -DistributionPointName &quot;$ServerName&quot; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host &quot;Distributing Package :&quot;&nbsp; $pkgID &quot;of type &quot; $PackageType &quot;to DP:&quot; $serverName <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host &quot;Re-Distribting Package :&quot;&nbsp; $pkgID &quot;of type &quot; $PackageType &quot;to DP:&quot; $serverName <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ar=$PkgID,$SiteCode,$Servername <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Refresh-SpecificDP ($ar)} <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #For Driverpackages <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If($PackageType -eq &quot;Driver&quot;) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { $distpoints = Get-WmiObject -Namespace &quot;root\SMS\Site_$($SiteCode)&quot; -Query &quot;Select * From SMS_DistributionPoint WHERE PackageID=&#39;$PkgID&#39; and serverNALPath like &#39;%$Servername%&#39;&quot; | Select-Object ServerNALPath <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($distpoints.ServerNALPath.length -eq 0) { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #echo &quot;This is a Driver&quot; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Start-CMContentDistribution -DriverPackageID&nbsp; &quot;$pkgID&quot; -DistributionPointName &quot;$ServerName&quot; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host &quot;Distributing Package :&quot;&nbsp; $pkgID &quot;of type &quot; $PackageType &quot;to DP:&quot; $serverName <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host &quot;Re-Distribting Package :&quot;&nbsp; $pkgID &quot;of type &quot; $PackageType &quot;to DP:&quot; $serverName <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ar=$PkgID,$SiteCode,$Servername <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Refresh-SpecificDP ($ar)} <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #For BootImages <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If($PackageType -eq &quot;BootImage&quot;) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { $distpoints = Get-WmiObject -Namespace &quot;root\SMS\Site_$($SiteCode)&quot; -Query &quot;Select * From SMS_DistributionPoint WHERE PackageID=&#39;$PkgID&#39; and serverNALPath like &#39;%$Servername%&#39;&quot; | Select-Object ServerNALPath <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($distpoints.ServerNALPath.length -eq 0) { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #echo &quot;This is a BootImage&quot; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Start-CMContentDistribution -BootImageID&nbsp; &quot;$pkgID&quot; -DistributionPointName &quot;$serverName&quot; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host &quot;Distributing Package :&quot;&nbsp; $pkgID &quot;of type &quot; $PackageType &quot;to DP:&quot; $serverName <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host &quot;Re-Distribting Package :&quot;&nbsp; $pkgID &quot;of type &quot; $PackageType &quot;to DP:&quot; $serverName <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ar=$PkgID,$SiteCode,$Servername <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Refresh-SpecificDP ($ar)} <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #For OSImage <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; If($PackageType -eq &quot;OSImage&quot;) <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { $distpoints = Get-WmiObject -Namespace &quot;root\SMS\Site_$($SiteCode)&quot; -Query &quot;Select * From SMS_DistributionPoint WHERE PackageID=&#39;$PkgID&#39; and serverNALPath like &#39;%$Servername%&#39;&quot; | Select-Object ServerNALPath <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if ($distpoints.ServerNALPath.length -eq 0) { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #echo &quot;This is a OSimage&quot; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Start-CMContentDistribution –OperatingSystemImageID&nbsp; &quot;$pkgID&quot; -DistributionPointName &quot;$serverName&quot; <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host &quot;Distributing Package :&quot;&nbsp; $pkgID &quot;of type &quot; $PackageType &quot;to DP:&quot; $serverName <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; else { <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; write-host &quot;Re-Distribting Package :&quot;&nbsp; $pkgID &quot;of type &quot; $PackageType &quot;to DP:&quot; $serverName <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $ar=$PkgID,$SiteCode,$Servername <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Refresh-SpecificDP ($ar)} <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <br />&nbsp;&nbsp;&nbsp; } <br />}  <p>&nbsp;</p> <p>Hope this helps </p> <p>Sudheesh Narayanaswamy </p> <p><strong>This posting /Script&nbsp; is provided &quot;AS IS&quot; with no warranties and confers no rights</strong></p></p>]]></content:encoded>
    </item>
    <item>
      <title>PowerShell Script to decline all Superseded Updates in WSUS</title>
      <link>https://docs.microsoft.com/archive/blogs/sudheesn/powershell-script-to-decline-all-superseded-updates-in-wsus</link>
      <pubDate>Tue, 24 Mar 2015 10:30:16 GMT</pubDate>
      <dc:creator><![CDATA[Sudheesh N]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.technet.microsoft.com/sudheesn/2015/03/24/powershell-script-to-decline-all-superseded-updates-in-wsus/</guid>
      <description><![CDATA[At time troubleshooting on cases we had to decline&nbsp;updates which are superseded &nbsp;from the...]]></description>
      <content:encoded><![CDATA[<p>At time troubleshooting on cases we had to decline&nbsp;updates which are superseded &nbsp;from the WSUS and hence help to make sure that the no of updates the update agent scan is&nbsp;reduced.</p>
<p></p>
<p>=========================================================</p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;">#Change server name and port number and $True if it is on SSL </span></span></span></p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"> </span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">[</span></span></span><span style="color:#008080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#008080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#008080;font-family:Lucida Console;font-size:xx-small;">String</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">]</span></span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$updateServer1</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">=</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="text-decoration:line-through;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;">&quot;CMCAS&quot;</span></span></span></span></p>
<p><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"> </span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">[</span></span></span><span style="color:#008080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#008080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#008080;font-family:Lucida Console;font-size:xx-small;">Boolean</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">]</span></span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$useSecureConnection</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">=</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$False</span></span></span></p>
<p><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"> </span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">[</span></span></span><span style="color:#008080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#008080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#008080;font-family:Lucida Console;font-size:xx-small;">Int32</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">]</span></span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$portNumber</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">=</span></span></span><span style="text-decoration:line-through;"><span style="color:#800080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#800080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#800080;font-family:Lucida Console;font-size:xx-small;">8530</span></span></span></span></p>
<p><span style="color:#800080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#800080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#800080;font-family:Lucida Console;font-size:xx-small;"> </span></span></span></p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"></span></span></p>
<p></p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p></p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p># Load .NET assembly</p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p></p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p></p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">[</span></span></span><span style="color:#008080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#008080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#008080;font-family:Lucida Console;font-size:xx-small;">void</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">][</span></span></span><span style="color:#008080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#008080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#008080;font-family:Lucida Console;font-size:xx-small;">reflection.assembly</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">]::</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;">LoadWithPartialName(</span></span><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;">&quot;Microsoft.UpdateServices.Administration&quot;</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;">)</span></span></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$count</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">=</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#800080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#800080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#800080;font-family:Lucida Console;font-size:xx-small;">0</span></span></span></p>
<p><span style="color:#800080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#800080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#800080;font-family:Lucida Console;font-size:xx-small;"> </span></span></span></p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"></span></span></p>
<p></p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p></p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p># Connect to WSUS Server</p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p></p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p></p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$updateServer</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">=</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">[</span></span></span><span style="color:#008080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#008080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#008080;font-family:Lucida Console;font-size:xx-small;">Microsoft.UpdateServices.Administration.AdminProxy</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">]::</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;">getUpdateServer(</span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$updateServer1</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">,</span></span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$useSecureConnection</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">,</span></span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$portNumber</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;">)</span></span></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;">write-host</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;">&quot;&lt;&lt;&lt;Connected sucessfully &gt;&gt;&gt;&quot;</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#000080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#000080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#000080;font-family:Lucida Console;font-size:xx-small;">-foregroundcolor</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;">&quot;yellow&quot;</span></span></span></p>
<p><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"> </span></span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$updatescope</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">=</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;">New-Object</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;">Microsoft.UpdateServices.Administration.UpdateScope</span></span></span></p>
<p><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;"> </span></span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$u</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">=</span></span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$updateServer</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">.</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;">GetUpdates(</span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$updatescope</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> )</span></span></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;">foreach</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> (</span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$u1</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;">in</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$u</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> )</span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p>{</p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;">if</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> (</span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$u1</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">.</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;">IsSuperseded </span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">-eq</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;">&#39;True&#39;</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;">)</span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p>{</p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;">write-host</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;">Decline</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;">Update</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;">:</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$u1</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">.</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;">Title</span></span></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$u1</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">.</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;">Decline()</span></span></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$count</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">=</span></span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$count</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">+</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#800080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#800080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#800080;font-family:Lucida Console;font-size:xx-small;">1</span></span></span></p>
<p><span style="color:#800080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#800080;font-family:Lucida Console;font-size:xx-small;"><span style="color:#800080;font-family:Lucida Console;font-size:xx-small;"> </span></span></span></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p>}</p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p>}</p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;">write-host</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;">Total</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;">Declined</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8a2be2;font-family:Lucida Console;font-size:xx-small;">Updates:</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$count</span></span></span></p>
<p><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"> </span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span></p>
<p><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"></span></span></p>
<p></p>
<p><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p></p>
<p><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p>trap</p>
<p><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p></p>
<p><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p></p>
<p><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p>{</p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;">write-host</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;">&quot;Error Occurred&quot;</span></span></span></p>
<p><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"> </span></span></span><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;">write-host</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;"><span style="color:#8b0000;font-family:Lucida Console;font-size:xx-small;">&quot;Exception Message: &quot;</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;">write-host</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$_</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">.</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;">Exception</span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">.</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;">Message</span></span></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;"><span style="color:#0000ff;font-family:Lucida Console;font-size:xx-small;">write-host</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;"><span style="color:#ff4500;font-family:Lucida Console;font-size:xx-small;">$_</span></span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">.</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;">Exception</span></span><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;"><span style="color:#a9a9a9;font-family:Lucida Console;font-size:xx-small;">.</span></span></span><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;">StackTrace</span></span></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"> </span></span></p>
<p><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"></span></span></p>
<p></p>
<p><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p></p>
<p><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p>exit</p>
<p><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p></p>
<p><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p></p>
<p><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"><span style="color:#00008b;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p>}</p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p># EOF</p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p></p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"></span></span></span></span></p>
<p></p>
<p><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"><span style="color:#006400;font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"><span style="font-family:Lucida Console;font-size:xx-small;"></span></span></span></p>
<p></p>
<p>==========================================================</p>
<p><strong>This posting /Script&nbsp; is provided &quot;AS IS&quot; with no warranties and confers no rights</strong></p>
<p></p>]]></content:encoded>
    </item>
  </channel>
</rss>