WUAUCLT

29 11 2007

Client Troubleshooting Tool Requirement

I’d like to see either one tool (i.e wuauclt.exe) that does “everything”, or two tools:
wuauclt (that runs client stuff) and waucltLINT (that sorts out issues, ala DNSLINT, etc). I can live with either, although there might be value in having 2. But in what follows, I’ve assumed that JUST wuauclt.exe is to be used.

The following feartures/switches are needed.

1. /? – list parameters and usage


/? – describes usage of wuauclt.exe

The /? switch should be supported and give details of wuauclt usage. If client options are in error, this summary is displayed following an explanation of why the error occured. ALL command line tools should support this option.

2. Verbose mode console logging, with multiple levels


/v – verbose mode
/vv – very verbose mode


Both switches cause wuauclt to output normal log information to the command line (STDIO). /v provides basic information, while /vv logs greater detail. /vv is what is logged in normal logs. While wuauclt can log to a log file, it’s more work for the admin when troubleshooting, The admin has to run the command, then navigate over to another folder, find the log, the navigate to the end of it, to find out where the run began. This is harder than it needs to be, and the /v, /vv options could just pipe log entries to stdio.

3. List client configuration

/configlist – lists WUAUCLT configuration.


This option lists all configuration items current by the client, and includes the client version number, AU policy/registry settings and provide details of all AU clients files, version numbers, file dates, etc.

This helps admins (and MS) to ensure that the right client versions are loaded.

4. Install the correct AU client by force

/installAUclient
/installAUclientFromMicrosoft


This option causes the system to contact either the confiugred WSUS server, or Microsoft’s WU server, and to reinstall forefully the latest version of the AU client.

This enables admins (and MS) to ensure that the latest client versions are loaded, and enables download from Microsoft for roaming systems.

5. Make /DetectNow a little less silent

/DetectNow – forces a client AU detection and logs details


The /detectnow option should log to stdio what it is doing. This includes what WU server is it contacting, how many updates are on the WU server, and how many are needed by the client, etc, and any information being sent back the server. This is really no change, just requesing some level of output to stdio. This makes troubleshooting quicker.

6. Clear Log File

/clearlogfile – clears the client update log file
/clearandsaveogfile – saves the current client update log file to a named file, then clears the update log.


Currently, the client log appears to be non deletableand just grows. This is a potential DOS vector. Also, for troubleshooting, it’s helpful to be able to clear the log (possibly saving it first for later detailed exam).

7. Download Updates Now

/downloadnow – initiates an immiate downoad of any requried update using BITS
/downloanowfast – initiates an initiates an immiate downoad of any requried update using HTTP.

This option forces the AU client to start downloading of any outstanding updates. the secton version downloads using HTTP, and is therefore much faster in elapsed time and is mainly used for troubleshooting isues (or possibly to speed up larger updates). Often, expecially for laptops that have been ‘abroad’ for awhile, you want to just get all the approved updates NOW, and not wait for the next detection time.

8. Stop Downloading AU Updates

/stopdownload – stops any AU updates being downloaded (either using HTTP, or BITS).


This option stops the downloading of any AU updates either queued, or in progress. Just as you can invoke a download, you need to be able to stop it.

9. Test WSUS Server Connecttion

/TestWSUSServer – checks connection with configured WU Server


This option attempts to coonect to the WSUS server configured, and checks that a connection can be made, and that communcations between AU client and WSUS server is working. This would be useful for example, to diagnose network communications failures, or an internal firewall that might be accientally blocking some traffic between client and server.

 

 

ictpociar.wordpress.com non è responsabile per l’utilizzo improprio di questo articolo e per i danni che le informazioni contenute in questo blog possono arrecare al vostro sistema.





Troubleshooting WSUS 3.0

19 11 2007

Introduzione

Il seguente articolo analizza alcune situazioni che possono insorgere durante il deployment di WSUS (Windows Server Update Services) e descrive quali strumenti si hanno a disposizione per risolvere le problematiche e monitorare la funzionalità del servizio.

Sommario

SID duplicati

Nel caso in cui nella rete si abbiano computer con SID (Security ID) identici, dovuto al fatto che l’installazione è stata eseguite tramite il restore di un’immagine identica su più computer si riscontreranno malfunzionamenti dovuti al fatto che WSUS distribuirà gli aggiornamenti solo ad una macchina in quanto non sarà in grado di distinguerle.

Se ci si trova in questa situazione la cosa migliore è quella di modificare il SID su computer prima che questi vengano assegnati al server WSUS utilizzando il tool SysPrep (a riguardo si faccia riferimento al seguente articolo Utilizzo dello strumento Sysprep per automatizzare la corretta distribuzione di Windows XP) oppure tramite l’utility NewSID che permette l’operazione in modo più agevole, ma che non gode del supporto tecnico Microsoft. Se i computer appartengono ad un dominio occorrerà rimuoverli dal dominio prima di rigenerare il SID e quindi aggiungerli successivamente. Per controllare il SID assegnato ad un computer è possibile utilizzare l’utility PSGetSID.

Se invece i computer con SID identico sono già stati assegnati al server WSUS oltre a modificare il Security ID come descritto precedentemente occorrerà arrestare il servizio wuauserv (Aggiornamenti automatici), eliminare il riferimento al SID utilizzato da WSUS e memorizzato nel registro, riavviare il servizio wuauserv quindi resettare l’Authorization Cookie di WSUS e avviare il processo di rilevamento. Uno script che esegue le operazioni descritte è disponibile al seguente link Delete Duplicate SUS Client IDs.

In allegato all’articolo è disponibile un esempio di applicazione scritta utilizzando il .NET Framework 1.1 che mediante l’uso della API LookupAccountName ottiene il SID del computer e lo memorizza in un database access e consente di visualizzare in forma tabellare i SID raccolti evidenziando quelli duplicati come mostrato in figura 1. E’ anche possibile avviare l’applicazione con il parametro /q per registrare il sid della macchina corrente senza visualizzare alcuna interfaccia grafica in modo da porla inserire ad esempio in uno script di avvio per fare un’analisi di computer che dovranno essere gestiti da WSUS. Scarica l’utility da qui!

 

 

ictpociar.wordpress.com non è responsabile per l’utilizzo improprio di questo documento e per i danni che le informazioni contenute in questo blog possono arrecare al vostro sistema.