Exclude a KB number from a Windows update Powershell Script.

I am having a heck of a time removing a patch from the $updates patch collection. We have one that we do not want to install. Using attempts like $updates.remove are not working. Has anyone accomplished this before?
thanks
$updateSession = new-object -com "Microsoft.Update.Session"
Write-Host("Searching for applicable updates...") -Fore Green
$updates=$updateSession.CreateupdateSearcher().Search($criteria).Updates
$downloader = $updateSession.CreateUpdateDownloader()         
$downloader.Updates = $Updates
foreach ($y in $updates){$y.kbarticleIDs}
(section to remove a KB from $updates, based on KB)

Here is a little script that will create a hash table of all applicable updates, and their associated UUID's.  This can be used to look up the UUID, to use as a criteria when searching again:
$upids = @{}
$Searcher = New-Object -ComObject Microsoft.Update.Searcher
$results = $searcher.search("Type='software' AND IsInstalled = 0")
$Results.Updates |
ForEach-Object { $upids.Add($_.Title, $_.Identity.UpdateID) }
$upids
([string](0..9|%{[char][int](32+("39826578846355658268").substring(($_*2),2))})).replace(' ','')
What's new in Powershell 3.0 (Technet Wiki)

Similar Messages

  • Exclude Excel 2013 interop from Lync 2013 updates

    Is it possible to Exclude Excel 2013 interop from Lync 2013 updates? We have Excel 2010 installed and have custom COM applications that use Excel 2010 interop to automate it. When Lync 2013 is installed/updated it installs Excel 2013 interop and causes
    the COM application to not recognize the Excel 2010 interop without manually deleting the Excel 2013 interop from the registry.

    When you run setup.exe from Office 2013 installation media, you can customize installation and make Excel 201 not available to install.
    Lisa Zheng
    TechNet Community Support

  • Seeking Windows Update PowerShell Module user experience concerning failure to reboot automatically.

    I am currently using  Windows Update PowerShell Module to updates several machines. I notice that on identically configured windows 2003 and windows 2008 servers some nodes do not reboot on their own and wait for a user confirmation. This keeps them from finishing their update cycle and requires manual intervention. This happens even if no user is logged on.
    Is there a way to get reliable reboots upon reaching conclusion of a patch cycle? I notice that on windows 8 and windows 2012 there is additional support to force reboot http://support.microsoft.com/kb/2835627/en-usBut we have a lot of older platforms (thousands) and I am frustrated that I can't determine why some nodes do not complete their patch cycle by rebooting on their own while other identically built nodes do so.
    Thanks.
    Gautam

    some nodes do not reboot on their own and wait for a user confirmation.
    This happens even if no user is logged on.
    This is technologically impossible, so we need to find out what else is going on in this scenario. For starters, you'll need to show us the WindowsUpdate.log entries where this update was installed and the system restarted.
    Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
    SolarWinds Head Geek
    Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
    My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
    http://www.solarwinds.com/gotmicrosoft
    The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds.

  • How may I exclude one add-on from checking for updates, while allowing all others to be able to check for updates?

    I have an add-on that I do not wish to update; as I am satisfied with the version I am using, and I am dissatisfied with the updated version.

    @cor-el, et al,
    I have set the Automatic Updates to 'off'. That is not helping.
    Perhaps I am not clearly explaining what I wish to accomplish?
    I '''''NEVER''''' allow any automatic updates on this machine; not Windows, not my AV, and certainly not Firefox or any of the extensions.
    Therefore, I hope that everyone understands that I want to exclude a certain extension from updating, '''''period'''''.
    No automatic update, no manual update, no update of any kind what-so-ever, at all, in perpetuity.

  • Disable USB driver installation from searching Windows Updates for software

    Hello,
    When a plug-n-play device is connected to a Windows 7 system, the system by default tries to search Windows update for compatible drivers.  I have a preconfigured driver store on each system that will have the drivers for all of the USB devices we care
    about so I'd like to search the local driver store first before searching for Windows updates.  
    I found the option that controls this under System Properties > Advanced system settings > Hardware tab > Device Installation Settings.  I have set this option before my machines run through sysprep, however, sysprep appears to be resetting
    the option back to the Windows default (Yes, do this automatically) and ignores what I set it to.
    I have a reg key that I'm running post-sysprep, but I'd like to avoid this as it's an extra step and I don't want to have to account for it long-term.  My question is, is there a way to set this option in my sysprep unattend file?  

    If this is a domain joined machine, this can be set by a Group Policy Object;
    Open Group Policy Management Editor.
    In the navigation pane, open Computer Configuration\Administrative Templates\System\Internet Communication Management\Internet
    Communication settings.
    In the details pane, double-click Turn off Windows Update device driver searching.
    Do one of the following:
    To turn off searching Windows Update, click Enabled.
    To allow searching Windows Update, click Disabled.
    Click OK to save your settings.
    Instructions taken from: http://technet.microsoft.com/en-us/library/cc730606(v=ws.10).aspx
    If this PC is not on the domain (but is Pro) you may be able to set the same option on the Local Group Policy (GPEDIT.MSC).
    Kind Regards
    Barry

  • Windows Update PowerShell Remoting

    I am working on a script to do Windows Updates on a remote machine. I am using the runspace and powershell objects. I can query and recieve the list of updates, but as I go to download and install them I can an error which indicates that these methods cannot be run from remote computers. Should the object creation and everything be happening on the remote computer? I thought this was the whole idea of the remoting. Am I doing something wrong?

    This script works great but I would like to make a suggestion.
    Add $VerbosePreference = "Continue" to the top and then change all Write-Host with Write-Progress.  It has the same effect except instead of saying that it is downloading an update it is giving you a progress bar as well.  Updated script below. 
    $VerbosePreference = "Continue"
    $DebugPreference = "Stop"
    function Get-WIAStatusValue($value)
       switch -exact ($value)
          0   {"NotStarted"}
          1   {"InProgress"}
          2   {"Succeeded"}
          3   {"SucceededWithErrors"}
          4   {"Failed"}
          5   {"Aborted"}
    $needsReboot = $false
    $UpdateSession = New-Object -ComObject Microsoft.Update.Session
    $UpdateSearcher = $UpdateSession.CreateUpdateSearcher()
    Write-Progress " - Searching for Updates"
    $SearchResult = $UpdateSearcher.Search("IsAssigned=1 and IsHidden=0 and IsInstalled=0")
    Write-Verbose " - Found [$($SearchResult.Updates.count)] Updates to Download and install"
    foreach($Update in $SearchResult.Updates)
       # Add Update to Collection
       $UpdatesCollection = New-Object -ComObject Microsoft.Update.UpdateColl
       if ( $Update.EulaAccepted -eq 0 ) { $Update.AcceptEula() }
       $UpdatesCollection.Add($Update) | out-null
       # Download
       Write-Progress " + Downloading Update $($Update.Title)"
       $UpdatesDownloader = $UpdateSession.CreateUpdateDownloader()
       $UpdatesDownloader.Updates = $UpdatesCollection
       $DownloadResult = $UpdatesDownloader.Download()
       $Message = "   - Download {0}" -f (Get-WIAStatusValue $DownloadResult.ResultCode)
       Write-Verbose $message   
       # Install
       Write-Progress "   - Installing Update"
       $UpdatesInstaller = $UpdateSession.CreateUpdateInstaller()
       $UpdatesInstaller.Updates = $UpdatesCollection
       $InstallResult = $UpdatesInstaller.Install()
       $Message = "   - Install {0}" -f (Get-WIAStatusValue $DownloadResult.ResultCode)
       Write-Verbose $message
       $needsReboot = $installResult.rebootRequired   
    if($needsReboot)
        Write-Debug "Restarting Computer please close all open apps"
        restart-computer

  • Regarding Number of MAIN Windows in SAP Script.

    Hi,
    SAP Script allows to place a maximum of 99 MAIN Windows. Is it possible to have different content in different MAIN Windows i.e., if i have 2 MAIN Windows in SAP Script with numbers 00 and 01 can i have different contents in these two windows. If possible please give us an example for the same.
    Thanks in advance for your esteemed help.
    Regards,
    Raghavendra Goutham.

    HI All,
    Thanks for your esteemed replies.
    But i want to frame my question exactly.
    In my script there are two main windows with number
    MAIN 00 and MAIN 01.
    MAIN 00
    Content:
    /E  data
      abc,,def
    In MAIN 01 i want to have only XYZ, some thing like this
    MAIN 01
    /E total
    XYZ
    My problem is: whenever i am changing the content in MAIN 01, the content in MAIN 00 is also getting changed.
    I do not want this to change, i want different content in both of them. Is this possibel if so how.
    Thanks and Regards,
    Raghavendra Goutham.
    MAIN 01

  • Compliance Settings Adobe flash Player disable Automatic Updates Powershell Scripts fail

    Hello,
    I have setup compliance to check and remediate if Adobe flash Player automatic updates is enabled by using PowerShell scripts.
    If I run the scripts below manually on my pc they work fine, but if I run in sccm 2012 compliance I get:
    Setting Discovery Error
    0x87d00327
    Script is not signed
    CCM
    I tried contacting the person that created the scripts, but didn't get a response.
    Discovery Script
    Set-ExecutionPolicy Unrestricted -force
    <#
      This script will check if automatic updates is disabled and return a Compliant/Non-Compliant string.
      Created:     04.08.2014
      Version:     1.0
      Author:      Odd-Magne Kristoffersen
      Homepage:    https://sccmguru.wordpress.com/
      References:
      - Configure auto-update notification Flash Player
    http://helpx.adobe.com/flash-player/kb/administration-configure-auto-update-notification.html
      - Adobe Flash Player Administration Guide for Flash Player 14
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/flashplayer/pdfs/flash_player_14_0_admin_guide.pdf
      - Adobe Flash Player Administration Guide for Microsoft Windows 8
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/flashplayer/pdfs/flash_player_13_0_admin_guide.pdf
    #>
    $OSArchitecture = Get-WmiObject -Class Win32_OperatingSystem | Select-Object OSArchitecture
    If($OSArchitecture.OSArchitecture -ne "32-bit")
        $CFGExists = Test-Path -Path "$Env:WinDir\SysWow64\Macromed\Flash\mms.cfg"
             if($CFGExists -eq $True)
             {$UpdateCheck = Select-String "$Env:WinDir\SysWow64\Macromed\Flash\mms.cfg" -pattern "AutoUpdateDisable=1" | Select-Object Line}
                if($UpdateCheck.Line -eq 'AutoUpdateDisable=1') {Write-Host 'Compliant'}
                else {Write-Host 'Non-Compliant'}
    else
        $CFGExists = Test-Path -Path "$Env:WinDir\System32\Macromed\Flash\mms.cfg"
             if($CFGExists -eq $True)
             {$UpdateCheck = Select-String "$Env:WinDir\System32\Macromed\Flash\mms.cfg" -pattern "AutoUpdateDisable=1" | Select-Object Line}
                if($UpdateCheck.Line -eq 'AutoUpdateDisable=1') {Write-Host 'Compliant'}
                else {Write-Host 'Non-Compliant'}
    Remediation Script
    Set-ExecutionPolicy Unrestricted -force
    <#
      This script will check if automatic updates is disabled and return a Compliant/Non-Compliant string.
      Created:     04.08.2014
      Version:     1.0
      Author:      Odd-Magne Kristoffersen
      Homepage:    https://sccmguru.wordpress.com/
      References:
      - Configure auto-update notification Flash Player
    http://helpx.adobe.com/flash-player/kb/administration-configure-auto-update-notification.html
      - Adobe Flash Player Administration Guide for Flash Player 14
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/flashplayer/pdfs/flash_player_14_0_admin_guide.pdf
      - Adobe Flash Player Administration Guide for Microsoft Windows 8
    http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/flashplayer/pdfs/flash_player_13_0_admin_guide.pdf
    #>
    $OSArchitecture = Get-WmiObject -Class Win32_OperatingSystem | Select-Object OSArchitecture
    If($OSArchitecture.OSArchitecture -ne "32-bit")
        $CFGExists = Test-Path -Path "$Env:WinDir\SysWow64\Macromed\Flash\mms.cfg"
             if($CFGExists -eq $True)
             {$UpdateCheck = Select-String "$Env:WinDir\SysWow64\Macromed\Flash\mms.cfg" -pattern "AutoUpdateDisable=1" | Select-Object Line}
                if($UpdateCheck.Line -eq 'AutoUpdateDisable=1') {Write-Host 'Compliant'}
                else {Write-Host 'Non-Compliant'}
    else
        $CFGExists = Test-Path -Path "$Env:WinDir\System32\Macromed\Flash\mms.cfg"
             if($CFGExists -eq $True)
             {$UpdateCheck = Select-String "$Env:WinDir\System32\Macromed\Flash\mms.cfg" -pattern "AutoUpdateDisable=1" | Select-Object Line}
                if($UpdateCheck.Line -eq 'AutoUpdateDisable=1') {Write-Host 'Compliant'}
                else {Write-Host 'Non-Compliant'}
    Thanks,
    Mark

    Hi Jeff,
    You were correct, Default client settings was set to All signed and once I set to bypass, PowerShell Scripts executed.  But now I am getting:    If I run them both from PowerShell, they work fine. Thanks again for your help, Mark
    Error Type
    Error Code
    Error Description
    Error Source
     Enforcement Error
    0x87d00329
    Application requirement evaluation or detection failed
    CCM

  • How to Turn On/Off Airplane mode in windows through powershell script

    I want to turn on and off Airplane mode through powershell script, any way for this?
    I know that there are some exe files that can be used, but still I want to do this from powershell script.

    Hi,
    According to your description, I would like to share the link with you:
    Airplane Mode On or Off Shortcuts - Create in Windows 8
    http://www.eightforums.com/tutorials/24541-airplane-mode-off-shortcuts-create-windows-8-a.html
    If you want to the detail of the script, I suggest to post the question on Script Center forum for further help.
    Script Center forum:
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/home
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    Regards,
    Kelvin_Hsu
    TechNet Community Support

  • Make progressbar appear on buttonclick in Windows Forms Powershell script?

    Hello.
    I am not very good at Powershell, so please bear with me if I ask questions which are easy to Powershell experts.
    I have a Powershell script with 4 buttons, which each calls different .bat files I've written, to automatically backup my pictures and music and such, to my external harddrive and all that works perfectly.
    Is there a way to make a marquee progressbar appear inside the window when a button is clicked? (strictly for good looks)
    I have a code for a progressbar which works fine by itself, but can I make it appear when I click each button? Here is the code for the progressbar:
    $progStrip = New-Object System.Windows.Forms.ProgressBar
    $progStrip.Top = 70
    $progStrip.Left = 10
    $progStrip.Width = 515
    $progStrip.Value = 0
    $progStrip.Style="Marquee"
    $progStrip.MarqueeAnimationSpeed = 50
    $form.Controls.Add($progStrip)**
    And here is my Powershell script with the button, that I want to trigger a progress bar, Marquee style for simplicity. Thank you very much in advance
    Add-Type -AssemblyName System.Windows.Forms
    [System.Windows.Forms.Application]::EnableVisualStyles()
    $form = New-Object System.Windows.Forms.Form
    $form.Size = New-Object System.Drawing.Size(550,210)
    $form.Text = "System Backup"
    $form.FormBorderStyle = "FixedDialog"
    $form.StartPosition = "CenterScreen"
    $form.KeyPreview = $True
    $form.Add_KeyDown({if ($_.KeyCode -eq "Escape")
    {$form.Close()}})
    $icon = [system.drawing.icon]::ExtractAssociatedIcon('D:\Documents\Andet\Icons\icon1 (3).ico')
    $form.Icon = $icon
    $statStrip = New-Object System.Windows.Forms.StatusStrip
    $statStrip.Items.Add("Backup via Powershell") | Out-Null
    $form.Controls.Add($statStrip)
    $1Button = New-Object System.Windows.Forms.Button
    $1Button.Location = New-Object System.Drawing.Size(10,100)
    $1Button.Size = New-Object System.Drawing.Size(125,40)
    $1Button.Text = "Saved games backup"
    $1Button.Add_Click({Start-Process "C:\Backup\Backup1.bat"})
    $form.Controls.Add($1Button)
    $2Button = New-Object System.Windows.Forms.Button
    $2Button.Location = New-Object System.Drawing.Size(140,100)
    $2Button.Size = New-Object System.Drawing.Size(125,40)
    $2Button.Text = "Fuld backup til ekstern harddisk"
    $2Button.Add_Click({Start-Process "C:\Backup\Backup2.bat"})
    $form.Controls.Add($2Button)
    $3Button = New-Object System.Windows.Forms.Button
    $3Button.Location = New-Object System.Drawing.Size(270,100)
    $3Button.Size = New-Object System.Drawing.Size(125,40)
    $3Button.Text = "Slet og omdøb filer/mapper"
    $3Button.Add_Click({Start-Process "C:\Backup\Delete.bat"})
    $form.Controls.Add($3Button)
    $4Button = New-Object System.Windows.Forms.Button
    $4Button.Location = New-Object System.Drawing.Size(400,100)
    $4Button.Size = New-Object System.Drawing.Size(125,40)
    $4Button.Text = "Afslut"
    $4Button.Add_Click({$form.Close()})
    $form.Controls.Add($4Button)
    $objLabel = New-Object System.Windows.Forms.Label
    $objLabel.Location = New-Object System.Drawing.Size(185,15)
    $objLabel.Size = New-Object System.Drawing.Size(200,50)
    $objLabel.Font = New-Object System.Drawing.Font("Arial",15)
    $objLabel.Text = "Vælg backup type:"
    $form.Controls.Add($objLabel)
    $form.Topmost = $True
    $form.ShowDialog()

    Thank you very much for your detailed reply.
    Can you please show me a quick example, of how I can run multiple xcopy after one another, like "xcopy c:\test1 c:\test2" and then "xcopy c:\test3 c:\test4" when I click button 1, how would I write this bit then:
    Thank you in advance.
    $1Button = New-Object System.Windows.Forms.Button
    $1Button.Location = New-Object System.Drawing.Size(10,100)
    $1Button.Size = New-Object System.Drawing.Size(125,40)
    $1Button.Text = "Saved games backup"
    $1Button.Add_Click({Start-Process "C:\Backup\Backup1.bat"})
    $form.Controls.Add($1Button)

  • Is there any "contraindication" about installing every updates from Windows Update (and Intel drivers)?

    Hello!
    The question is in the title.
    I decided to reinstall Windows 7 on my MacBook Air using Boot Camp and I'm trying to play a video game which is quite laggy. I downloaded and installed the lastest driver for HD Graphics 4000 and my computer didn't explode. Can I also download all the optional updates with Windows Update, including the ones concerning drivers? I read somewhere that we shouldn't install other drivers than the ones on the Boot Camp x.x Support Software installer... Is it true?
    Thanks!

    Peter,
    From what I read, I thought Internet based clients always download from Microsoft Windows Update first?
    "New in System Center 2012 Configuration Manager, when you have a software update point that is configured to accept connections from the Internet, Configuration Manager Internet-based clients on the Internet always scan against
    this software update point, to determine which software updates are required.
    However, when these clients are on the Internet, they first try to download the software updates from Microsoft Update, rather than from an Internet-based distribution point. Only if this fails, will they then try to download the required software updates from
    an Internet-based distribution point. Clients that are not configured for Internet-based client management never try to download the software updates from Microsoft Update, but always use Configuration Manager distribution points."
    https://technet.microsoft.com/en-us/library/gg712701.aspx

  • Windows Updates not working

    We are having a problem with Windows update not wanting to work with the
    filters up and running.
    When I drop the filtering Windows Update from the workstations works just
    fine. When I have the filters up we get an error code of Error number:
    0x80072EFE from the windows update which is only identified as
    ERROR_INTERNET_CONNECTION_ABORTED Some network problem or the server/proxy
    reset the socket connection.
    Any ideas on what filter exceptions I need to put in BM to allow this
    traffic??
    TIA!

    Do what I did.
    Installed Windows System Update Service on a Windows 2003 Server. It's free.
    Then I added a rule to bypass the proxy for the WSUS server only.
    So WSUS server downloads direct from MS and stores them locally
    The Clients download from the WSUS Server saving on bandwidth on the
    Internet Connection
    It's another work around.
    Rgds
    Simon.
    "Dave Burek" <[email protected]> wrote in message
    news:[email protected]..
    > Thank You Craig but, Ug! that's ugly. :-)
    >
    > I tried the quick easy workaround and just like you stated it works on
    > some
    > systems but not others. I still haven't had time to try adding the list
    > of
    > addresses but have that on my to do list.
    >
    >
    >>>> On 6/27/2007 at 10:04 PM, in message
    > <[email protected]>,
    > Craig Johnson<[email protected]> wrote:
    >> In article <[email protected]>, Dave Burek wrote:
    >>> Any ideas on what filter exceptions I need to put in BM to allow this
    >>> traffic??
    >>>
    >> Please check tip #29 at the URL below before you spend much more time
    >> on this. If this is an issue with the proxycfg setting, you can't
    >> really filter your way around this - at least not easily.
    >>
    >> Craig Johnson
    >> Novell Support Connection SysOp
    >> *** For a current patch list, tips, handy files and books on
    >> BorderManager, go to http://www.craigjconsulting.com ***

  • Windows update error 0x80070BC9 with windows 7

    Hi,
    I have only one Windows 7 machine which has started to show 80070BC9 in Windowsupdate.log file when trying to install Windows updates KB2478662. I believe this refers to a "pending update" which needs to be completed before other updates can follow (normally
    after a reboot).
    I restarted the computer many times, tried to install this update manually, tried .Net cleanup tool, strated the computer in selective startup mode (without load startup items) and reset Windows update components. unfortunately I still
    have the same problem.
    I get the following in Windowsupdate.log file:
    2012-02-07 15:42:17:069  328 e9c Setup WARNING: CBS EvaluateApplicability returned error, error = 0x80070BC9
    2012-02-07 15:42:17:069  328 e9c Setup FATAL: Applicability evaluation for setup package "WUClient-SelfUpdate-ActiveX~31bf3856ad364e35~amd64~~7.4.7600.226" failed, error = 0x80070BC9
    2012-02-07 15:42:17:069  328 e9c Setup FATAL: SelfUpdate check failed, err = 0x80070BC9
    2012-02-07 15:42:17:069  328 e9c Agent   * WARNING: Skipping scan, self-update check returned 0x80070BC9
    2012-02-07 15:42:17:069  328 e9c Agent   * WARNING: Exit code = 0x80070BC9
    2012-02-07 15:42:17:069  328 e9c Agent *********
    2012-02-07 15:42:17:069  328 e9c Agent **  END  **  Agent: Finding updates [CallerId = AutomaticUpdates]
    2012-02-07 15:42:17:069  328 e9c Agent *************
    2012-02-07 15:42:17:069  328 e9c Agent WARNING: WU client failed Searching for update with error 0x80070bc9
    2012-02-07 15:42:17:069  328 430 AU AU setting pending client directive to 'Reboot Pending'
    2012-02-07 15:42:17:069  328 430 AU Changing existing AU client directive from 'Install Approval' to 'Reboot Pending', session id = 0x1
    2012-02-07 15:42:17:069  328 3b4 AU >>##  RESUMED  ## AU: Search for updates [CallId = {87044891-5208-4538-8A04-FC019AE09325}]
    2012-02-07 15:42:17:069  328 3b4 AU   # WARNING: Search callback failed, result = 0x80070BC9
    2012-02-07 15:42:17:069  328 3b4 AU   # WARNING: Failed to find updates with error code 80070BC9
    It's very important for me to fiind a solution without reinstalling Windows 7.
    Your help would be very much appreciated.
    Thanks a lot,
    William

    Hi,
    I understand that the issue persists after registering the Windows Update files and removing incorrect Registry values that may exist. And before that
    you have tried manually installation, disable antivirus, checksur but the update still cannot be installed.
    Based on my experience, the update fail issue may occur when there are problems with winsxs folder, disk or Software Distribution folder. Please try the steps below and check the
    result.
    ===========================================
    1.
     Rename Pending.xml
    1). Open an elevated command prompt
    2). At the command prompt type the following command:
    takeown /f C:\Windows\winsxs\pending.xml
    3). Rename c:\windows\winsxs\pending.xml using the following command:
    Ren c:\windows\winsxs\pending.xml pending.old
    2. Run Check disk (chkdsk) on the OS partition
    1). Open an elevated command prompt
    2). At the command prompt type the following command:
    Chkdsk volume: /f /r
    3. Rename the Software Distribution folder
    To rename the Windows Update temporary SoftwareDistribution directory follow these steps:
    1). Start an administrative command prompt.
    2). Run the following commands hitting enter after each line:
    Net stop wuauserv
    cd %systemroot%
    Ren SoftwareDistribution SoftwareDistribution.old
    Net start wuauserv
    3). Try to install updates again
    Important The following issues occur when you do this:
    • Updates that are currently downloaded but that have not yet been installed have to be downloaded again by using Windows Update or Microsoft Update.
    • When you delete the Software Distribution folder, your download history is removed.
    • If you currently receive updates from Microsoft Update and from Windows Update, you will have to re-select this option from the Windows Update Web site.
    Note: If the issue is resolved and you can successfully download and install updates, you can safely delete the SoftwareDistribution.old directory to recover disk space.
    Best regards,
    Ruby Cheng
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Problem with Clean Access Agent and Windows Updater

    I have a problem with a laptop when using Cisco Clean Access Agent. The agent keeps directing the laptop to get updates from the Windows Update site, but when I have connected the laptop via cable, windows updates tells me there are no updates either essential or optional. The laptop is a Sony VIVO VGN-FJ270 running XP Home Edition SP2 and the Clean Access Agent is version 4.0.2.1
    Any help is appreciated!!

    Verify the allowed hosts in CCA agent.
    Try these link:
    http://www.cisco.com/en/US/products/ps6128/tsd_products_support_series_home.html
    http://www.cisco.com/en/US/products/ps6128/products_qanda_item09186a00803b7a81.shtml

  • Windows Update Errors

    Good Evening I constantly keep getting Windows update errors when trying to update the OS.  I have tried allsorts from the windows update fixer to clearing out the Windows Update cache yet to no joy. Im starting to think that ive got possibly corrupt files somewhere...? A screenshot is below..  I have also used the Windows Resource Protection but it was unable to fix issues it found. Pic below..  PLease help!

    Hi lincro40,
    The main issue is that the windows update will work incorrectly ,right ?If it is possible ,please share us the error code you have got ?
    We can take the following step to have a troubleshoot .
    If there is any antivirus software installed ,please turn them off temporarily to have a check:
    1.Run the built-in troubleshoot tool to have  a diagnostic :
     Control Panel\All Control Panel Items\Troubleshooting\All Categories\Windows Update.
    2.Clear the windows update cache.
     net stop wuauserv
      cd %systemroot%\SoftwareDistribution
      ren Download Download.old
      net start wuauserv
      Restart the machine and manually check for updates again
    3.Try the fixit tool to reset Windows update Components as S.Sengupta posted.
     How do I reset Windows Update components?
    https://support.microsoft.com/en-us/kb/971058
    If the issue persists ,please check the Event Viewer (Event Viewer \Windows Logs \Application ,System ,Setup )and the "Windowsupdate.log" (Search it directly) for more information to troubleshoot this issue .If you have troubles in analyzing this
    issue ,we can upload them to the OneDrive and paste the link here
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

Maybe you are looking for

  • My iphone 4 is not working and I cant reset it from the computer either because it wont connect to it I need help!!!

    My iphone 4 is not working and I cant reset it from the computer either because it wont connect to it I need help!!! 1. I tried connecting it to itunes for a system reset and it didnt work. 2. The phone wont even turn on!!!

  • Programmatically list the fonts used in a PDF

    Hello. I want to make a list of all the fonts used in a PDF. After reading (again) the ISO-32000 standard, I tend to think that the only way is to cycle through the pages and list the fonts used in each one. Is there any other (and faster) way to do

  • How to export/import new SCV and products?

    Hi, I have created a new product, product version, software component and software component version in the SLD. Now I need to import that to another XI system with a different SLD. The product, product version etc. is unknown in the target XI system

  • UCCX 8.5.1 SU3 agent get license error on signon

    Hi, Having an intermintent issue on UCCX 8.5.1 SU3  w/CUCM 8.6.2 SU2. From the agent debug logs, the day before the closing of CAD doesn't shutdown nicely it looks like (user did not report any errors at end of day when they shut down). The next morn

  • Problem importing photos from nikon D3100 to MacBookPro

    I am trying to import photos from my Nikon D3100 onto my MacBookPro, but can't do it either using iPhoto or Image Capture. iPhoto detects the images but doesn't display them. When I try to import them it says they are in an unrecognisable format. Ima