Ask a questionAsk a question
 

AnswerCore Server WSUS Updates

  • Monday, May 05, 2008 6:14 PMlostgoose Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

     

    I know, I've read the other posts but am still unable to update my virtual server.  All I have managed to do so far is install 2008 Standard Core Server, add the admin password, rename the server, join the domain, and spend unbelieveable amounts of time trying to figure out how to get the updates.  WSUS sees the server and says there are 7 updates, but I can't make them talk to each other.

     

    I was really having fun with this sucker until I got to this point.  Please someone tell me "what to type" to get the updates.  Thank you soooooooooo much!

Answers

All Replies

  • Monday, May 05, 2008 8:00 PMlostgoose Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I should have specified that I did try enabling automatic updates by running the cscript scregedit.wsf /AU 4 command, yet when I run the command to verify the current setting type it states "value not set".  If I run the systeminfo command it shows N/A for hotfixes.  Please help.

     

  • Monday, May 05, 2008 9:56 PMlostgoose Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Found it FINALLY!  Nothing seemed to work until I found Nathan, thank goodness for these people that have been through it and make it easy.  I'll be back though, who wants to place a bet?

     

    http://nathan.thenovaks.net/

     

    Updates are done!

     

  • Monday, May 05, 2008 10:06 PMTim Cerling Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Wuauclt /detectnow

     

    to force a check for updates from your Windows update server.

     

    tgc

  • Tuesday, May 06, 2008 2:54 PMlostgoose Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I really should have been more specific in my initial post.  I had tried that and it didn't work, none of the things I found on the step by step's seemed to work and that's how I wound up here.  Thank you so much for your reply though, it's good to know someone is on top of things.

     

  • Monday, May 26, 2008 4:21 AMStephen Edgar Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Thanks LostGoose, A handy script to keep around. Smile

     

    For those looking for the VBS Script this is the code :-

     

    ServerCoreMU.VBS

    Code Snippet

    Set updateSession = CreateObject("Microsoft.Update.Session")
    Set updateSearcher = updateSession.CreateupdateSearcher()

    WScript.Echo "Searching for updates..." & vbCRLF

    Set searchResult = _
    updateSearcher.Search("IsInstalled=0 and Type='Software'")


    WScript.Echo "List of applicable items on the machine:"

    For I = 0 To searchResult.Updates.Count-1
        Set update = searchResult.Updates.Item(I)
        WScript.Echo I + 1 & "> " & update.Title
    Next

    If searchResult.Updates.Count = 0 Then
     WScript.Echo "There are no applicable updates."
     WScript.Quit
    End If

    WScript.Echo vbCRLF & "Creating collection of updates to download:"

    Set updatesToDownload = CreateObject("Microsoft.Update.UpdateColl")

    For I = 0 to searchResult.Updates.Count-1
        Set update = searchResult.Updates.Item(I)
        WScript.Echo I + 1 & "> adding: " & update.Title
        updatesToDownload.Add(update)
    Next

    WScript.Echo vbCRLF & "Downloading updates..."

    Set downloader = updateSession.CreateUpdateDownloader()
    downloader.Updates = updatesToDownload
    downloader.Download()

    WScript.Echo  vbCRLF & "List of downloaded updates:"

    For I = 0 To searchResult.Updates.Count-1
        Set update = searchResult.Updates.Item(I)
        If update.IsDownloaded Then
           WScript.Echo I + 1 & "> " & update.Title
        End If
    Next

    Set updatesToInstall = CreateObject("Microsoft.Update.UpdateColl")

    WScript.Echo  vbCRLF & _
    "Creating collection of downloaded updates to install:"

    For I = 0 To searchResult.Updates.Count-1
        set update = searchResult.Updates.Item(I)
        If update.IsDownloaded = true Then
           WScript.Echo I + 1 & "> adding:  " & update.Title
           updatesToInstall.Add(update) 
        End If
    Next

    WScript.Echo  vbCRLF & "Would you like to install updates now? (Y/N)"
    strInput = WScript.StdIn.Readline
    WScript.Echo

    If (strInput = "N" or strInput = "n") Then
     WScript.Quit
    ElseIf (strInput = "Y" or strInput = "y") Then
     WScript.Echo "Installing updates..."
     Set installer = updateSession.CreateUpdateInstaller()
     installer.Updates = updatesToInstall
     Set installationResult = installer.Install()
     
     'Output results of install
     WScript.Echo "Installation Result: " & _
     installationResult.ResultCode
     WScript.Echo "Reboot Required: " & _
     installationResult.RebootRequired & vbCRLF
     WScript.Echo "Listing of updates installed " & _
      "and individual installation results:"
     
     For I = 0 to updatesToInstall.Count - 1
      WScript.Echo I + 1 & "> " & _
      updatesToInstall.Item(i).Title & _
      ": " & installationResult.GetUpdateResult(i).ResultCode   
     Next
    End If

     

     

    Cheers,

     

    Stephen

  • Tuesday, November 03, 2009 1:37 PMSonny V Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    Found it FINALLY!  Nothing seemed to work until I found Nathan, thank goodness for these people that have been through it and make it easy.  I'll be back though, who wants to place a bet?

     

    http://nathan.thenovaks.net/

     

    Updates are done!

     


    So... Where in that webpage did you find your answer?