Results 1 to 5 of 5

Thread: Force WSUS Client to Poll WSUS Server

  1. #1
    Join Date
    Feb 2006
    Posts
    126

    Force WSUS Client to Poll WSUS Server

    Can anyone tell me a way after an update is approved to force the Wsus client to check in and pull down the updates on demand instead of waiting for the specified time interval? Thanks for the reply.

  2. #2
    Join Date
    Aug 2006
    Posts
    221

    Re: Force WSUS Client to Poll WSUS Server

    You will need to run wuauclt.exe /detectnow by opening a command prompt on the client, that will fix the issue for you.

  3. #3
    Join Date
    Feb 2006
    Posts
    126

    Re: Force WSUS Client to Poll WSUS Server

    Thanks but the command that you have given does not seem to work, is there any other solution?

  4. #4
    Join Date
    Sep 2005
    Posts
    226

    Re: Force WSUS Client to Poll WSUS Server

    You can try to do that by using the below script:

    Code:
    Set updateSession = CreateObject("Microsoft.Update.Session")
    
    Set updateSearcher = updateSession.CreateUpdateSearcher()
    Set updateDownloader = updateSession.CreateUpdateDownloader()
    Set updateInstaller = updateSession.CreateUpdateInstaller()
    
    Do
    
      WScript.Echo
      WScript.Echo "Searching for approved updates ..."
      WScript.Echo
    
      Set updateSearch = updateSearcher.Search("IsInstalled=0")
    
      If updateSearch.ResultCode <> 2 Then
    
        WScript.Echo "Search failed with result code", updateSearch.ResultCode
        WScript.Quit 1
    
      End If
    
      If updateSearch.Updates.Count = 0 Then
    
        WScript.Echo "There are no updates to install."
        WScript.Quit 2
    
      End If
    
      Set updateList = updateSearch.Updates
    
      For I = 0 to updateSearch.Updates.Count - 1
    
        Set update = updateList.Item(I)
    
        WScript.Echo "Update found:", update.Title
    
      Next
    
      WScript.Echo
    
      updateDownloader.Updates = updateList
      updateDownloader.Priority = 3
    
      Set downloadResult = updateDownloader.Download()
    
      If downloadResult.ResultCode <> 2 Then
    
        WScript.Echo "Download failed with result code", downloadResult.ResultCode
        WScript.Echo
    
        WScript.Quit 1
    
      End If
    
      WScript.Echo "Download complete.  Installing updates ..."
      WScript.Echo
    
      updateInstaller.Updates = updateList
    
      Set installationResult = updateInstaller.Install()
    
      If installationResult.ResultCode <> 2 Then
    
        WScript.Echo "Installation failed with result code", installationResult.ResultCode
    
        For I = 0 to updateList.Count - 1
    
          Set updateInstallationResult = installationResult.GetUpdateResult(I)
          WScript.Echo "Result for " & updateList.Item(I).Title & " is " & installationResult.GetUpdateResult(I).ResultCode
    
        Next
    
        WScript.Quit 1
    
      End If
    
      If installationResult.RebootRequired Then
    
        WScript.Echo "The system must be rebooted to complete installation."
    
        WScript.Quit 3
    
      End If
    
      WScript.Echo "Installation complete."
    
    Loop

  5. #5
    Join Date
    Dec 2004
    Posts
    420
    Did you try using the following:
    bitsadmin /monitor /allusers

    And checked if that is working for you or not?

Similar Threads

  1. WSUS Client not receiving updates from WSUS server
    By plee61 in forum Server Update Service
    Replies: 12
    Last Post: 02-03-2012, 03:06 PM
  2. WSUS 3.0 client computers not populating WSUS console
    By Hardik in forum Active Directory
    Replies: 4
    Last Post: 25-09-2009, 01:05 PM
  3. How To Force Client To Show Yellow Shield When Using WSUS
    By Andrew Hayes in forum Windows Update
    Replies: 9
    Last Post: 25-01-2009, 04:11 AM
  4. WSUS client unable to connect WSUS server
    By BoanHed in forum Server Update Service
    Replies: 3
    Last Post: 28-10-2007, 03:29 AM
  5. Force WSUS Client to Poll WSUS Server
    By Andrew in forum Windows Update
    Replies: 8
    Last Post: 15-09-2007, 10:20 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,444,865.26254 seconds with 18 queries