Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Server > Update Services > Re: When the WSUS isn't available

Reply
Thread Tools Display Modes

Re: When the WSUS isn't available

 
 
PA Bear [MS MVP]
Guest
Posts: n/a

 
      06-18-2009
[[ Right pew, wrong church. Forwarded to WSUS newsgroup
(microsoft.public.windows.server.update_services) via crosspost as a
convenience to OP.

On the web:
http://www.microsoft.com/communities...pdate_services

In your newsreader:
news://msnews.microsoft.com/microsof...pdate_services
]]

Q wrote:
> Hi there,
>
> On our domain we have a WSUS server and a policy setup to "Automatically
> download recommended updates for my computer and install them" at a
> particular time.
>
> My question is if a person takes their laptop off the domain for 6 months,
> will XP detect there is no access to the WSUS server and get the updates
> from Microsoft?
>
> Thanks
> Quinton


 
Reply With Quote
 
 
 
 
Harry Johnston [MVP]
Guest
Posts: n/a

 
      06-19-2009
> Q wrote:

>> Hi there,
>>
>> On our domain we have a WSUS server and a policy setup to "Automatically
>> download recommended updates for my computer and install them" at a
>> particular time.
>>
>> My question is if a person takes their laptop off the domain for 6
>> months,
>> will XP detect there is no access to the WSUS server and get the updates
>> from Microsoft?


No, it won't.

Harry.
 
Reply With Quote
 
Dave Mills
Guest
Posts: n/a

 
      06-19-2009
On Fri, 19 Jun 2009 12:24:36 +1200, "Harry Johnston [MVP]"
<> wrote:

>> Q wrote:

>
>>> Hi there,
>>>
>>> On our domain we have a WSUS server and a policy setup to "Automatically
>>> download recommended updates for my computer and install them" at a
>>> particular time.
>>>
>>> My question is if a person takes their laptop off the domain for 6
>>> months,
>>> will XP detect there is no access to the WSUS server and get the updates
>>> from Microsoft?

>
>No, it won't.


But it would be a nice enhancement to the product to be able to configure a
timeout (in days say) after which the client would revert to using WU/MU when
the WSUS server is still not contactable. For example if the WSUS server is not
contactable and the time since the last contact with the WSUS server is greater
than x days then go to WU/MU.

Maybe two timeouts would be even better. The short timeout would trigger a
download from WU/MU of previously approved updates that are simply waiting to
download the content. So if a laptop is connected for say 5 minutes and gets
told to download a lot of updates (SP's etc) but is then removed from the
network after a few days it would get the downloads from WU/MU and install them.
The long timeout would also go the WU/MU but set different approval options such
as 3. Download and Notify instead of 4. Scheduled install.
>
> Harry.

--
Dave Mills
There are 10 types of people, those that understand binary and those that don't.
 
Reply With Quote
 
Q
Guest
Posts: n/a

 
      06-19-2009
* PA Bear, thanks for the move. This is only my 2nd time here, so I'm a bit
lost on where to post...
* Harry, thanks for the info!

Hey Dave, I've been given the task of coming up with a way to fix this issue
of laptops not getting updates when the professors go away for months at a
time.

I've basically created a start up script that detects if the IP address is
from our network or not.
If the laptop is not on the network then I delete 3 reg values.

reg delete
"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Wi ndows\WindowsUpdate" /V
WUServer /f
reg delete
"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Wi ndows\WindowsUpdate" /v
WUStatusServer /f
reg delete
"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Wi ndows\WindowsUpdate\AU" /V
UseWUServer /f

When the laptop comes back on the domain it will get a gpupdate and the
laptop will receive the policy for WSUS.

It's still in the testing phase, but here is the script.


IPCONFIG > %temp%\TEMPIP.txt
findstr XXX.XXX %temp%\tempip.txt
IF errorlevel 1 GOTO :AWAY

ECHO On site!
GOTO :END

:AWAY
echo Off site
reg delete
"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Wi ndows\WindowsUpdate" /V
WUServer /f
reg delete
"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Wi ndows\WindowsUpdate" /v
WUStatusServer /f
reg delete
"HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Wi ndows\WindowsUpdate\AU" /V
UseWUServer /f

:END


I welcome any input anyone may have. I'm a beginner at scripting.

Thanks
Quinton
 
Reply With Quote
 
Lawrence Garvin [MVP]
Guest
Posts: n/a

 
      06-19-2009
"Dave Mills" <> wrote in message
news:...

>>> My question is if a person takes their laptop off the domain for 6
>>> months,
>>> will XP detect there is no access to the WSUS server and get the updates
>>> from Microsoft?


>>No, it won't.


> But it would be a nice enhancement to the product to be able to configure
> a
> timeout (in days say) after which the client would revert to using WU/MU
> when
> the WSUS server is still not contactable.


This is easily implemented. Create a scheduled task to run every 'x' days
that resets the registry value UseWUServer to dword:0x0. If group policy is
not being refreshed (as a result of a non-existent network/domain
connection), then the registry setting will remain in force, and the system
will revert to using Automatic Updates until the next group policy refresh
reverts that value to true, resetting the connection to the WSUS Server.

Or, perhaps the inverse is a better solution. Don't use group policy to
configure highly-mobile notebooks at all. Use a locally-stored startup
script that populates the registry conditionally based on whether the
machine is connected to the domain (a simple ping/response to the DC can
establish that). If not connected, set UseWUServer=dword:0x0 (Automatic
Updates), if it is connected, set UseWUServer=dword:0x1 (WSUS).

> So if a laptop is connected for say 5 minutes and gets
> told to download a lot of updates (SP's etc) but is then removed from the
> network after a few days it would get the downloads from WU/MU and install
> them.


The "best practice" for notebooks with a high probability of disconnects
from the corporate network is to configure a second WSUS Server with no
content store, thus forcing the notebook(s) to always obtain content from
microsoft.com.


--
Lawrence Garvin, M.S., MCITP:EA, MCDBA
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/pro...awrence.Garvin

 
Reply With Quote
 
Lawrence Garvin [MVP]
Guest
Posts: n/a

 
      06-19-2009
"Q" <> wrote in message
news:E562BB60-77B9-43E2-8CC9-...
>* PA Bear, thanks for the move. This is only my 2nd time here, so I'm a bit
> lost on where to post...
> * Harry, thanks for the info!
>
> Hey Dave, I've been given the task of coming up with a way to fix this
> issue
> of laptops not getting updates when the professors go away for months at a
> time.
>
> I've basically created a start up script that detects if the IP address is
> from our network or not.
> If the laptop is not on the network then I delete 3 reg values.


The concept is valid....

> reg delete
> "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Wi ndows\WindowsUpdate" /V
> WUServer /f
> reg delete
> "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Wi ndows\WindowsUpdate" /v
> WUStatusServer /f
> reg delete
> "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Wi ndows\WindowsUpdate\AU"
> /V
> UseWUServer /f


But the execution is flawed.

The *correct* response in this code block should be merely to CHANGE the
value of UseWUServer to FALSE, thus "turning off" the use of WSUS. When
UseWUServer=dword:0x0, the values WUServer and WUStatusServer will be
ignored. Restoring use of WSUS is as simple as setting this value back to
true (dword:0x1).


> When the laptop comes back on the domain it will get a gpupdate and the
> laptop will receive the policy for WSUS.


Or, using Group Policy to reset the registry. :-)


--
Lawrence Garvin, M.S., MCITP:EA, MCDBA
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/pro...awrence.Garvin

 
Reply With Quote
 
Harry Johnston [MVP]
Guest
Posts: n/a

 
      06-20-2009
Lawrence Garvin [MVP] wrote:

> This is easily implemented. Create a scheduled task to run every 'x'
> days that resets the registry value UseWUServer to dword:0x0. If group
> policy is not being refreshed (as a result of a non-existent
> network/domain connection), then the registry setting will remain in
> force, [...]


I'm not certain of this - group policy does get cached locally under some
circumstances, although I'm not sure of the details.

Harry.
 
Reply With Quote
 
Dave Mills
Guest
Posts: n/a

 
      06-23-2009

On Sun, 21 Jun 2009 11:53:37 +1200, "Harry Johnston [MVP]"
<> wrote:

>Lawrence Garvin [MVP] wrote:
>
>> This is easily implemented. Create a scheduled task to run every 'x'
>> days that resets the registry value UseWUServer to dword:0x0. If group
>> policy is not being refreshed (as a result of a non-existent
>> network/domain connection), then the registry setting will remain in
>> force, [...]

>
>I'm not certain of this - group policy does get cached locally under some
>circumstances, although I'm not sure of the details.
>

I would also expect that you would need to set the GPO to be applied even if not
changed. This would cause additional processing on every refresh. Without this
it would be easy to think the registry setting can be changed, some testing
would be necessary. I use this technique for setting the Proxy IP in IE and even
though the GPO is enforced if the registry is change it is not enforced until
back on the network. What the WSUS GPO wo9uld do would need to be determined by
testing.

Still not as neat as a WSUS configuration option though. I hate "smart" setups
as I assume they the ones most likely to change behaviour unexpectedly in a
future system implementation.

> Harry.

--
Dave Mills
There are 10 types of people, those that understand binary and those that don't.
 
Reply With Quote
 
Q
Guest
Posts: n/a

 
      06-24-2009

Thanks so much for your responses!

I've got it working (in a test environment) now, but it looks like I can
tweak some things as well.

Thanks again!
Quinton
 
Reply With Quote
 
Q
Guest
Posts: n/a

 
      06-26-2009

Hi Lawrence, is there a way just to edit the dword via reg command? I've been
trying but I'm unsuccessful. I don't want to import anything...just alter the
value. Can you provide me with the correct syntax?

Thanks
Quinton.


"Lawrence Garvin [MVP]" wrote:

> "Q" <> wrote in message
> news:E562BB60-77B9-43E2-8CC9-...
> >* PA Bear, thanks for the move. This is only my 2nd time here, so I'm a bit
> > lost on where to post...
> > * Harry, thanks for the info!
> >
> > Hey Dave, I've been given the task of coming up with a way to fix this
> > issue
> > of laptops not getting updates when the professors go away for months at a
> > time.
> >
> > I've basically created a start up script that detects if the IP address is
> > from our network or not.
> > If the laptop is not on the network then I delete 3 reg values.

>
> The concept is valid....
>
> > reg delete
> > "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Wi ndows\WindowsUpdate" /V
> > WUServer /f
> > reg delete
> > "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Wi ndows\WindowsUpdate" /v
> > WUStatusServer /f
> > reg delete
> > "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Wi ndows\WindowsUpdate\AU"
> > /V
> > UseWUServer /f

>
> But the execution is flawed.
>
> The *correct* response in this code block should be merely to CHANGE the
> value of UseWUServer to FALSE, thus "turning off" the use of WSUS. When
> UseWUServer=dword:0x0, the values WUServer and WUStatusServer will be
> ignored. Restoring use of WSUS is as simple as setting this value back to
> true (dword:0x1).
>
>
> > When the laptop comes back on the domain it will get a gpupdate and the
> > laptop will receive the policy for WSUS.

>
> Or, using Group Policy to reset the registry. :-)
>
>
> --
> Lawrence Garvin, M.S., MCITP:EA, MCDBA
> 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/pro...awrence.Garvin
>
>

 
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
Re: WSUS 2.0 SP1 master WSUS on W2K3 SP1 -- will it sync with WSUS 2.0 PA Bear Update Services 0 11-21-2007 05:59 AM
WSUS 2.0 SP1 master WSUS on W2K3 SP1 -- will it sync with WSUS 2.0 Bob Windows Update 1 11-21-2007 05:59 AM
RE: MOVE b:\wsus \MSSQL$WSUS to d:\wsus \MSSQL$WSUS using SBS 2K3-2 (SQL 2005) (move SQL WSUS databse) chace zhang Windows Small Business Server 0 11-14-2006 06:36 AM
OT WSUS Question - Will Unchecking the Box IE 7.0 Dynamic Installer make sure WSUS won't install it? Russ - SBITS.Biz \(MCP SBS\) Windows Small Business Server 8 10-25-2006 06:53 PM
WSUS client didn´t download/install Updates from WSUS Server Remi Windows Server 3 07-12-2005 03:24 AM



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