Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Update > WSUS client Fails

Reply
Thread Tools Display Modes

WSUS client Fails

 
 
Rob
Guest
Posts: n/a

 
      07-15-2005
I just read the KB555351 article. It appears I have about 600 existing PCs
that the WSUS client will not report correctly to the WSUS server because the
PCs were imaged using Ghost. I understand how to prevent future
reoccurences, but how do I correct the existing PCs?
--
Rob J
 
Reply With Quote
 
 
 
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a

 
      07-15-2005
Rob wrote:

> I just read the KB555351 article. It appears I have about 600
> existing PCs that the WSUS client will not report correctly to
> the WSUS server because the PCs were imaged using Ghost. I
> understand how to prevent future reoccurences, but how do I
> correct the existing PCs?

Hi,

If the computers are in an Active Directory domain:

You can do it in a computer startup script (with a GPO) that runs as
part of the boot up process (before the user logs in). It runs under
the system context and has admin rights.

The VBScript below will only delete the values once even if the script
is run multiple times, by setting a registry marker.


'--------------------8<----------------------
Set oShell = CreateObject("WScript.Shell")

sRegKey = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Wi ndowsUpdate"

' suppress error in case values does not exist
On Error Resume Next

' check for marker
sIDDeleted = oShell.RegRead( sRegKey & "\IDDeleted")

' to be sure values is only deleted once, test on marker
If sIDDeleted <> "yes" Then
' delete values
oShell.RegDelete sRegKey & "\AccountDomainSid"
oShell.RegDelete sRegKey & "\PingID"
oShell.RegDelete sRegKey & "\SusClientId"

' Stop and start the Automatic updates service
oShell.Run "%SystemRoot%\system32\net.exe stop wuauserv", 0, True
oShell.Run "%SystemRoot%\system32\net.exe start wuauserv", 0, True

' Run wuauclt.exe with resetauthorization
sCmd = "%SystemRoot%\system32\wuauclt.exe /resetauthorization /detectnow"
oShell.Run sCmd, 0, True

' create marker
oShell.RegWrite sRegKey & "\IDDeleted", "yes"
End If
'--------------------8<----------------------


WSH 5.6 documentation (local help file) can be downloaded from here
if you haven't got it already:
http://msdn.microsoft.com/downloads/list/webdev.asp


FYI:

Please post WSUS questions to the new newsgroup
microsoft.public.windows.server.update_services


WebNews link to the WSUS newsgroup:
http://www.microsoft.com/communities...pdate_services


Or use a newsgroup reader (default Outlook Express) to access this new
group:

Clicking on this link should open this group in OE:

news://msnews.microsoft.com/microsof...pdate_services





--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx
 
Reply With Quote
 
Rob
Guest
Posts: n/a

 
      07-16-2005
Excellent, I deployed it this morning and it is working great! You're a life
saver!!!!
--
Rob J


"Torgeir Bakken (MVP)" wrote:

> Rob wrote:
>
> > I just read the KB555351 article. It appears I have about 600
> > existing PCs that the WSUS client will not report correctly to
> > the WSUS server because the PCs were imaged using Ghost. I
> > understand how to prevent future reoccurences, but how do I
> > correct the existing PCs?

> Hi,
>
> If the computers are in an Active Directory domain:
>
> You can do it in a computer startup script (with a GPO) that runs as
> part of the boot up process (before the user logs in). It runs under
> the system context and has admin rights.
>
> The VBScript below will only delete the values once even if the script
> is run multiple times, by setting a registry marker.
>
>
> '--------------------8<----------------------
> Set oShell = CreateObject("WScript.Shell")
>
> sRegKey = "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Wi ndowsUpdate"
>
> ' suppress error in case values does not exist
> On Error Resume Next
>
> ' check for marker
> sIDDeleted = oShell.RegRead( sRegKey & "\IDDeleted")
>
> ' to be sure values is only deleted once, test on marker
> If sIDDeleted <> "yes" Then
> ' delete values
> oShell.RegDelete sRegKey & "\AccountDomainSid"
> oShell.RegDelete sRegKey & "\PingID"
> oShell.RegDelete sRegKey & "\SusClientId"
>
> ' Stop and start the Automatic updates service
> oShell.Run "%SystemRoot%\system32\net.exe stop wuauserv", 0, True
> oShell.Run "%SystemRoot%\system32\net.exe start wuauserv", 0, True
>
> ' Run wuauclt.exe with resetauthorization
> sCmd = "%SystemRoot%\system32\wuauclt.exe /resetauthorization /detectnow"
> oShell.Run sCmd, 0, True
>
> ' create marker
> oShell.RegWrite sRegKey & "\IDDeleted", "yes"
> End If
> '--------------------8<----------------------
>
>
> WSH 5.6 documentation (local help file) can be downloaded from here
> if you haven't got it already:
> http://msdn.microsoft.com/downloads/list/webdev.asp
>
>
> FYI:
>
> Please post WSUS questions to the new newsgroup
> microsoft.public.windows.server.update_services
>
>
> WebNews link to the WSUS newsgroup:
> http://www.microsoft.com/communities...pdate_services
>
>
> Or use a newsgroup reader (default Outlook Express) to access this new
> group:
>
> Clicking on this link should open this group in OE:
>
> news://msnews.microsoft.com/microsof...pdate_services
>
>
>
>
>
> --
> torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
> Administration scripting examples and an ONLINE version of
> the 1328 page Scripting Guide:
> http://www.microsoft.com/technet/scr...r/default.mspx
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
WSUS Client are not listed leo Windows Update 2 06-11-2005 01:45 PM
WSUS Client Dean Windows Update 0 06-03-2005 07:46 PM
WSUS Client Updates Don Windows Update 0 05-25-2005 10:21 AM
Client WSUS Error In WSUS Console 0x8024400a Don Windows Update 0 05-23-2005 02:37 PM
WSUS Client ??? abraham Windows Update 2 04-28-2005 04:55 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59