Client update request fails


platform: xpembedded sp3

server: ws2003 r2 sp2, wsus 3.1 sp2

i'm trying set wsus server update xp embedded client.  i had working on domain environment, need implement in standalone workgroup.  i've set server, , think it's working.  when try update client using vbscript shown below, fails, , see in log:

 

2011-08-29 14:49:36-0400 1464 740 wu client succeeds cclientcallrecorder::beginfindupdates  with call id {e1a04a01-7ca3-4f55-be68-ec3302b53c51}

2011-08-29 14:49:36-0400 1464 5cc wu client executing call {e1a04a01-7ca3-4f55-be68-ec3302b53c51} of type search call

2011-08-29 14:49:36-0400 1588 668 trying make out of proc datastore active

2011-08-29 14:49:36-0400 1588 668 out of proc datastore active

2011-08-29 14:49:36-0400 1464 5cc pt: using serverid {3da21691-e39d-4da6-8a4b-b43877bcb1b7}

2011-08-29 14:49:36-0400 1464 5cc wu client failed searching update error 0x80248008

2011-08-29 14:49:36-0400 1464 5cc successfully opened event cache file @ c:\windows\softwaredistribution\eventcache\{f8e18cd8-baa6-4b03-a653-b6817ba1d913}.bin reading.

2011-08-29 14:49:36-0400 1464 5cc pt: using serverid {3da21691-e39d-4da6-8a4b-b43877bcb1b7}

2011-08-29 14:49:36-0400 1464 5cc failed obtain cached cookie hr = 80248008.

2011-08-29 14:49:36-0400 1464 5cc failed upload events hr = 80248008.

2011-08-29 14:49:36-0400 1464 5cc wu client calls search call  with code call failed , error 0x80248008 

2011-08-29 14:49:36-0400 1464 5cc wu client completed , deleted call {e1a04a01-7ca3-4f55-be68-ec3302b53c51}

2011-08-29 14:49:36-0400 212 520 operation completed due earlier error. (hr=80248008)

2011-08-29 14:49:36-0400 212 520 unable perform synchronous search. (hr=80248008)

2011-08-29 14:49:36-0400 1464 7d8 isusinternal api failed cclientcallrecorder::disconnectcall error 0x8024000c

2011-08-29 14:49:36-0400 212 520 isusinternal::disconnectcall failed, hr=8024000c

2011-08-29 14:49:41-0400 1464 7b8 report event: {d9458309-a655-4e80-9a15-00b71f5091f8} 9 2011-08-29 14:49:36-0400 1 148 101 {00000000-0000-0000-0000-000000000000} 0 80248008 failure software synchronization error: agent failed detecting reason: 0x80248008

2011-08-29 14:49:41-0400 1464 7b8 created new event cache file @ c:\windows\softwaredistribution\eventcache\{3fa997eb-d897-4c9d-b7c0-8d74b8797c44}.bin writing.

here's update script i'm using:
'windows update session
set updatesession = createobject("microsoft.update.session")
set updatesearcher = updatesession.createupdatesearcher()
wscript.echo "searching updates..." & vbcrlf
set searchresult = _
updatesearcher.search("isinstalled=0 , type='software'")
wscript.echo "list of applicable items on machine:"
for = 0 searchresult.updates.count-1
    set update = searchresult.updates.item(i)
    wscript.echo + 1 & "> " & update.title
next
if searchresult.updates.count = 0 then
wscript.echo "there no applicable updates."
wscript.quit
end if
wscript.echo vbcrlf & "creating collection of updates download:"
set updatestodownload = createobject("microsoft.update.updatecoll")
for = 0 searchresult.updates.count-1
    set update = searchresult.updates.item(i)
    wscript.echo + 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 = 0 searchresult.updates.count-1
    set update = searchresult.updates.item(i)
    if update.isdownloaded then
       wscript.echo + 1 & "> " & update.title 
    end if
next
set updatestoinstall = createobject("microsoft.update.updatecoll")
wscript.echo  vbcrlf & _
"creating collection of downloaded updates install:" 
for = 0 searchresult.updates.count-1
    set update = searchresult.updates.item(i)
    if update.isdownloaded = true then
       wscript.echo + 1 & "> adding:  " & update.title 
       updatestoinstall.add(update)
    end if
next
wscript.echo  vbcrlf & "would 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 = 0 updatestoinstall.count - 1
wscript.echo + 1 & "> " & _
updatestoinstall.item(i).title & _
": " & installationresult.getupdateresult(i).resultcode
next
end if
any getting me on track appreciated.
thanks,
dpm

 

is there way force wuagent perform update/install?
not on embedded os machine, typically on systems have defined maintenance window , updates need installed specified scheduled event. using script install updates if need them on demand fine -- need aware script not needs done manage windows updates on system. (e.g. selfupdate, diagnostics, repair).
also, os version have has no explorer shell, cmd.exe. agent automatically download , install updates no manual input?
automatically detect/download updates based on configured detection interval , availabilty of approved updates on wsus server. if auoptions='4', install downloaded updates @ specified time in policy setting.
lawrence garvin, m.s., mcitp:ea, mcdba, mcsa
principal/cto, onsite technology solutions, houston, texas
microsoft mvp - software distribution (2005-2011)
mvp profile: http://mvp.support.microsoft.com/profile/lawrence.garvin
blog: http://onsitechsolutions.spaces.live.com


Windows Server  >  WSUS



Comments

Popular posts from this blog

for loop and start-job from cmd.exe

Edit Group Policy

File Share Witness is not a valid File share path