<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.technet.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Approve or Decline WSUS Updates by Using PowerShell</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/18/approve-or-decline-wsus-updates-by-using-powershell.aspx</link><description>Guest blogger, Boe Prox, shows how to use Windows PowerShell to approve or to decline updates for WSUS.</description><dc:language>en-US</dc:language><generator>Telligent Evolution Platform Developer Build (Build: 5.6.50428.7875)</generator><item><title>re: Approve or Decline WSUS Updates by Using PowerShell</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/18/approve-or-decline-wsus-updates-by-using-powershell.aspx#3540611</link><pubDate>Thu, 13 Dec 2012 11:06:36 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3540611</guid><dc:creator>Andre</dc:creator><description>&lt;p&gt;how do I get a list of needed updates for a computer or a computer group?&lt;/p&gt;
&lt;p&gt;and then how do I approve those updates for the computer or the group?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3540611" width="1" height="1"&gt;</description></item><item><title>re: Approve or Decline WSUS Updates by Using PowerShell</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/18/approve-or-decline-wsus-updates-by-using-powershell.aspx#3508376</link><pubDate>Tue, 10 Jul 2012 20:51:52 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3508376</guid><dc:creator>Boe Prox</dc:creator><description>&lt;p&gt;@Andrew&lt;/p&gt;
&lt;p&gt;Can you elaborate more on what you mean by &amp;quot;starting from scratch&amp;quot;?&lt;/p&gt;
&lt;p&gt;You can run the following code to decline all updates in WSUS:&lt;/p&gt;
&lt;p&gt;[void][reflection.assembly]::LoadWithPartialName(&amp;quot;Microsoft.UpdateServices.Administration&amp;quot;)&lt;/p&gt;
&lt;p&gt;$wsus = [Microsoft.UpdateServices.Administration.AdminProxy]::getUpdateServer(“WSUSServer”,$False)&lt;/p&gt;
&lt;p&gt;$wsus.GetUpdates() | ForEach {&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;Write-Verbose (&amp;quot;Declining {0}&amp;quot; -f $_.Title) -Verbose&lt;/p&gt;
&lt;p&gt; &amp;nbsp; &amp;nbsp;$_.Decline()&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;Hope this helps...&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3508376" width="1" height="1"&gt;</description></item><item><title>re: Approve or Decline WSUS Updates by Using PowerShell</title><link>http://blogs.technet.com/b/heyscriptingguy/archive/2012/01/18/approve-or-decline-wsus-updates-by-using-powershell.aspx#3507915</link><pubDate>Sat, 07 Jul 2012 11:35:19 GMT</pubDate><guid isPermaLink="false">d5e57398-b9ef-4490-9955-07cbb4e4a80d:3507915</guid><dc:creator>Andrew</dc:creator><description>&lt;p&gt;How do I decline all updates and start from scratch my initial sync did not finish becase it ran out of disk space &lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://blogs.technet.com/aggbug.aspx?PostID=3507915" width="1" height="1"&gt;</description></item></channel></rss>