Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.update_services
Thread: 100 PC's not in WSUS (Batch File included)

HTVi
TV Discussion Newsgroups

100 PC's not in WSUS (Batch File included)
Kit 11/4/2008 10:00:05 PM
I currently have 100 missing workstations in WSUS. I have a script that I
have been running manually on workstations that are not in WSUS (. I want to
do this automatically. Does anyone have any suggestions on making the batch
file silent so I can run it by GPO?



ECHO OFF
C:
CLS
ECHO ------WRITTEN BY MONKEY BOYS
ECHO -------------------------------------------------------------
ECHO ------------------ Unknown Issue ----------------------
regsvr32 /u wuaueng.dll
regsvr32 wuaueng.dll
ECHO -------------------STOPING UPDATE SERVICES-------------------
NET STOP BITS
NET STOP "AUTOMATIC UPDATES"
ECHO -------------------DELETING SOFTWARE DISTRO FILES -----------
RMDIR /S /Q %WINDIR%\SOFTWAREDISTRIBUTION\Download\
RMDIR /S /Q %WINDIR%\SOFTWAREDISTRIBUTION\Eventcache\
ECHO -------------------CREATING SOFTWARE DISTRO FILES -----------
mkdir %WINDIR%\SOFTWAREDISTRIBUTION\Eventcache\
mkdir %WINDIR%\SOFTWAREDISTRIBUTION\Download\
NET START BITS
NET STOP "AUTOMATIC UPDATES"
cls
ECHO --------- REMOVING Wsus Client Entries AccountDomainSID, SusClientID,
PindID
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v
AccountDomainSid /f
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v
PingID /f
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v
SusClientId /f
reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v
SusClientIdValidation /f
COPY \\SERVER-XXXX\SHARED-FILES\WSUS Problem\WSUSServer.reg
COPY \\SERVER-XXXX\SHARED-FILES\MSOFFICE\scripts\sid\WSUSServer.reg
WSUSServer.reg
ECHO --------- RESTARTING THE AUTOMATIC UPDATE SERVICE -----------
net stop "Automatic Updates"
net start "Automatic Updates"
ECHO --------- RE-CONNECTING THE CORRECT WSUS CLIENT TO THE WSUS SERVER
wuauclt.exe /resetauthorization /detectnow
ECHO ------------------ MANUAL REBOOT REQUIRED -------------------
ECHO ------------------ CALLING POWER SETTINGS SCRIPT-------------
H:\MSOFFICE\SCRIPTS\SID\powercfgsettings.exe
ECHO ------------------ PERFORMING GPUPDATE-----------------------
GPUPDATE /FORCE
PAUSE
EXIT




Re: 100 PC's not in WSUS (Batch File included)
"Lawrence Garvin \(MVP\)" <lawrence[ at ]news.postalias> 11/5/2008 1:58:55 AM
"Kit" <Kit[ at ]discussions.microsoft.com> wrote in message
news:BFC2594A-E03C-4313-8E52-5A00297BCDC2[ at ]microsoft.com...
[Quoted Text]
>I currently have 100 missing workstations in WSUS. I have a script that I
> have been running manually on workstations that are not in WSUS

Does this include the machine you just posted about in the previous message?

Can you verify that this script is *not* being run on that machine?

> I want to
> do this automatically. Does anyone have any suggestions on making the
> batch
> file silent so I can run it by GPO?

This script only needs to be run ONCE...
... 90% of the lines in this script don't mean squat (I've given you a
streamlined version below)...
... and it only needs to be run *IF* your machines are sporadically
appearing in WSUS, and then disappearing.

If they're not appearing at all......

this script won't help anything!

Required commands from script

reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v
SusClientId /f

reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate /v
SusClientIdValidation /f

net stop wuauserv
net start wuauserv
wuauclt.exe /resetauthorization /detectnow

To determine why the client is not appearing in the WSUS console..

1. Run the Client Diagnostic Tool on the client.
2. Inspect the %windir%\WindowsUpdate.log for error codes indicating reasons
for failures.


Under CERTAIN conditions, based on CERTAIN error codes, it may be necessary
to trash the local WUA database.

To do that, you should:

1. net stop wuauserv
2. rename %windir%\SoftwareDistribution SoftwareDistribution.old
3. net start wuauserv




--
Lawrence Garvin, M.S., MCITP(x2), MCTS(x5), MCP(x7), MCBMSP
Principal/CTO, Onsite Technology Solutions, Houston, Texas
Microsoft MVP - Software Distribution (2005-2009)

MS WSUS Website: http://www.microsoft.com/wsus
My Websites: http://www.onsitechsolutions.com;
http://wsusinfo.onsitechsolutions.com
My MVP Profile: http://mvp.support.microsoft.com/profile/Lawrence.Garvin

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen